Out-of-bounds read In jinja2
Description
Jinja has a sandbox breakout through malicious filenames 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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
alpine v3.18 | 3.1.5-r0 | ||
alpine v3.21 | 3.1.5-r0 | ||
alpine v3.22 | 3.1.5-r0 | ||
alpine v3.19 | 3.1.5-r0 | ||
alpine v3.20 | 3.1.5-r0 | ||
debian 12 | 3.1.2-1+deb12u2 | ||
debian 13 | 3.1.5-1 | ||
debian 14 | 3.1.5-1 | ||
pypi | 3.1.5 | ||
alpine v3.23 | 3.1.5-r0 |
1-10 of 15
10
Aliases
References