USN-7244-1

Source
https://ubuntu.com/security/notices/USN-7244-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7244-1.json
JSON Data
https://api.test.osv.dev/v1/vulns/USN-7244-1
Related
Published
2025-01-30T01:13:07.738764Z
Modified
2025-01-30T01:13:07.738764Z
Summary
jinja2 vulnerabilities
Details

It was discovered that Jinja2 incorrectly handled certain filenames when compiling template content. An attacker could possibly use this issue to execute arbitrary code. (CVE-2024-56201)

It was discovered that Jinja2 incorrectly handled string formatting calls. An attacker could possibly use this issue to execute arbitrary code. (CVE-2024-56326)

References

Affected packages

Ubuntu:Pro:18.04:LTS / jinja2

Package

Name
jinja2
Purl
pkg:deb/ubuntu/jinja2@2.10-1ubuntu0.18.04.1+esm3?arch=source&distro=esm-infra/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.10-1ubuntu0.18.04.1+esm3

Affected versions

2.*

2.9.6-1
2.10-1
2.10-1ubuntu0.18.04.1
2.10-1ubuntu0.18.04.1+esm1
2.10-1ubuntu0.18.04.1+esm2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_version": "2.10-1ubuntu0.18.04.1+esm3",
            "binary_name": "python-jinja2"
        },
        {
            "binary_version": "2.10-1ubuntu0.18.04.1+esm3",
            "binary_name": "python-jinja2-doc"
        },
        {
            "binary_version": "2.10-1ubuntu0.18.04.1+esm3",
            "binary_name": "python3-jinja2"
        }
    ]
}

Ubuntu:20.04:LTS / jinja2

Package

Name
jinja2
Purl
pkg:deb/ubuntu/jinja2@2.10.1-2ubuntu0.4?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.10.1-2ubuntu0.4

Affected versions

2.*

2.10-2ubuntu1
2.10-2ubuntu2
2.10.1-1ubuntu1
2.10.1-2
2.10.1-2ubuntu0.2
2.10.1-2ubuntu0.3

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "2.10.1-2ubuntu0.4",
            "binary_name": "python-jinja2"
        },
        {
            "binary_version": "2.10.1-2ubuntu0.4",
            "binary_name": "python-jinja2-doc"
        },
        {
            "binary_version": "2.10.1-2ubuntu0.4",
            "binary_name": "python3-jinja2"
        }
    ]
}

Ubuntu:22.04:LTS / jinja2

Package

Name
jinja2
Purl
pkg:deb/ubuntu/jinja2@3.0.3-1ubuntu0.3?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.3-1ubuntu0.3

Affected versions

2.*

2.11.3-1

3.*

3.0.1-2
3.0.3-1
3.0.3-1ubuntu0.1
3.0.3-1ubuntu0.2

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "3.0.3-1ubuntu0.3",
            "binary_name": "python-jinja2-doc"
        },
        {
            "binary_version": "3.0.3-1ubuntu0.3",
            "binary_name": "python3-jinja2"
        }
    ]
}

Ubuntu:24.10 / jinja2

Package

Name
jinja2
Purl
pkg:deb/ubuntu/jinja2@3.1.3-1ubuntu1.24.10.1?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.3-1ubuntu1.24.10.1

Affected versions

3.*

3.1.2-1ubuntu1
3.1.3-1
3.1.3-1ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "3.1.3-1ubuntu1.24.10.1",
            "binary_name": "python-jinja2-doc"
        },
        {
            "binary_version": "3.1.3-1ubuntu1.24.10.1",
            "binary_name": "python3-jinja2"
        }
    ]
}

Ubuntu:24.04:LTS / jinja2

Package

Name
jinja2
Purl
pkg:deb/ubuntu/jinja2@3.1.2-1ubuntu1.2?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.2-1ubuntu1.2

Affected versions

3.*

3.1.2-1
3.1.2-1ubuntu1
3.1.2-1ubuntu1.1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "3.1.2-1ubuntu1.2",
            "binary_name": "python-jinja2-doc"
        },
        {
            "binary_version": "3.1.2-1ubuntu1.2",
            "binary_name": "python3-jinja2"
        }
    ]
}