CVE-2024-56201
HIGH8.8EPSS 0.57%Jinja has a sandbox breakout through malicious filenames
發布日:2024/12/23修改日:2025/12/3
也稱為:ALPINE-CVE-2024-56201
描述
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.
受影響套件(3)
- Alpine/py3-jinja2from 0, < 3.1.5-r0
- Debian/jinja2from 0, < 3.1.2-1+deb12u2
- PyPI/jinja2>= 3.0.0, < 3.1.5
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
參考連結(8)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-56201
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2024-56201
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-56201
- PATCHhttps://github.com/pallets/jinja
- WEBhttps://github.com/pallets/jinja/commit/767b23617628419ae3709ccfb02f9602ae9fe51f
- WEBhttps://github.com/pallets/jinja/issues/1792
- WEBhttps://github.com/pallets/jinja/releases/tag/3.1.5
- WEBhttps://github.com/pallets/jinja/security/advisories/GHSA-gmj6-6f8f-6699