ALPINE-CVE-2024-56201

Source
https://security.alpinelinux.org/vuln/CVE-2024-56201
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-56201.json
JSON Data
https://api.test.osv.dev/v1/vulns/ALPINE-CVE-2024-56201
Upstream
Published
2024-12-23T16:15:07Z
Modified
2025-09-26T00:37:11.434774Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Jinja is an extensible templating engine. In versions on the 3.x branch prior to 3.1.5, a bug in the Jinja compiler allows an attacker that controls both the content and filename of a template to execute arbitrary Python code, regardless of if Jinja's sandbox is used. To exploit the vulnerability, an attacker needs to control both the filename and the contents of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates where the template author can also choose the template filename. This vulnerability is fixed in 3.1.5.

References

Affected packages

Alpine:v3.18 / py3-jinja2

Package

Name
py3-jinja2
Purl
pkg:apk/alpine/py3-jinja2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.5-r0

Affected versions

2.*

2.5.5-r0
2.5.5-r1
2.5.5-r2
2.5.5-r3
2.6-r0
2.7-r0
2.7-r1
2.7.1-r0
2.7.2-r0
2.7.3-r0
2.8-r0
2.8-r1
2.9.4-r0
2.9.4-r1
2.9.6-r0
2.10-r0
2.10-r1
2.10-r2
2.10-r3
2.10.1-r0
2.10.3-r0
2.11.0-r0
2.11.1-r0
2.11.2-r0
2.11.3-r0
2.11.3-r1

3.*

3.0.0-r0
3.0.1-r0
3.0.1-r1
3.0.3-r0
3.0.3-r1
3.1.1-r0
3.1.2-r0
3.1.2-r1
3.1.2-r2
3.1.4-r0

Alpine:v3.19 / py3-jinja2

Package

Name
py3-jinja2
Purl
pkg:apk/alpine/py3-jinja2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.5-r0

Affected versions

2.*

2.5.5-r0
2.5.5-r1
2.5.5-r2
2.5.5-r3
2.6-r0
2.7-r0
2.7-r1
2.7.1-r0
2.7.2-r0
2.7.3-r0
2.8-r0
2.8-r1
2.9.4-r0
2.9.4-r1
2.9.6-r0
2.10-r0
2.10-r1
2.10-r2
2.10-r3
2.10.1-r0
2.10.3-r0
2.11.0-r0
2.11.1-r0
2.11.2-r0
2.11.3-r0
2.11.3-r1

3.*

3.0.0-r0
3.0.1-r0
3.0.1-r1
3.0.3-r0
3.0.3-r1
3.1.1-r0
3.1.2-r0
3.1.2-r1
3.1.2-r2
3.1.2-r3
3.1.4-r0

Alpine:v3.20 / py3-jinja2

Package

Name
py3-jinja2
Purl
pkg:apk/alpine/py3-jinja2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.5-r0

Affected versions

2.*

2.5.5-r0
2.5.5-r1
2.5.5-r2
2.5.5-r3
2.6-r0
2.7-r0
2.7-r1
2.7.1-r0
2.7.2-r0
2.7.3-r0
2.8-r0
2.8-r1
2.9.4-r0
2.9.4-r1
2.9.6-r0
2.10-r0
2.10-r1
2.10-r2
2.10-r3
2.10.1-r0
2.10.3-r0
2.11.0-r0
2.11.1-r0
2.11.2-r0
2.11.3-r0
2.11.3-r1

3.*

3.0.0-r0
3.0.1-r0
3.0.1-r1
3.0.3-r0
3.0.3-r1
3.1.1-r0
3.1.2-r0
3.1.2-r1
3.1.2-r2
3.1.2-r3
3.1.3-r0
3.1.3-r1
3.1.4-r0

Alpine:v3.21 / py3-jinja2

Package

Name
py3-jinja2
Purl
pkg:apk/alpine/py3-jinja2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.5-r0

Affected versions

2.*

2.5.5-r0
2.5.5-r1
2.5.5-r2
2.5.5-r3
2.6-r0
2.7-r0
2.7-r1
2.7.1-r0
2.7.2-r0
2.7.3-r0
2.8-r0
2.8-r1
2.9.4-r0
2.9.4-r1
2.9.6-r0
2.10-r0
2.10-r1
2.10-r2
2.10-r3
2.10.1-r0
2.10.3-r0
2.11.0-r0
2.11.1-r0
2.11.2-r0
2.11.3-r0
2.11.3-r1

3.*

3.0.0-r0
3.0.1-r0
3.0.1-r1
3.0.3-r0
3.0.3-r1
3.1.1-r0
3.1.2-r0
3.1.2-r1
3.1.2-r2
3.1.2-r3
3.1.3-r0
3.1.3-r1
3.1.4-r0

Alpine:v3.22 / py3-jinja2

Package

Name
py3-jinja2
Purl
pkg:apk/alpine/py3-jinja2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.5-r0

Affected versions

2.*

2.5.5-r0
2.5.5-r1
2.5.5-r2
2.5.5-r3
2.6-r0
2.7-r0
2.7-r1
2.7.1-r0
2.7.2-r0
2.7.3-r0
2.8-r0
2.8-r1
2.9.4-r0
2.9.4-r1
2.9.6-r0
2.10-r0
2.10-r1
2.10-r2
2.10-r3
2.10.1-r0
2.10.3-r0
2.11.0-r0
2.11.1-r0
2.11.2-r0
2.11.3-r0
2.11.3-r1

3.*

3.0.0-r0
3.0.1-r0
3.0.1-r1
3.0.3-r0
3.0.3-r1
3.1.1-r0
3.1.2-r0
3.1.2-r1
3.1.2-r2
3.1.2-r3
3.1.3-r0
3.1.3-r1
3.1.4-r0