CVE-2024-56201
Jinja has a sandbox breakout through malicious filenames
CVE-2024-56201 affects rusbitech-astra Astra Linux Special Edition (CVSS 8.8, High).
No known exploitation. EPSS puts it in the 23rd percentile. Fixed in 3.1.5.
No public exploit knownFix3.1.5Upgrade to this build
e.g. OID 1.3.6.1.4.1.25623.1.0.127869
What to do
Find your product and version, then upgrade to the build on the right.
- Pallets JinjaAffected: >= 3.0.0, < 3.1.5Upgrade to: not statedStated by: CVE record
- PyPI jinja2Affected: ≥ 3.0.0, < 3.1.5Upgrade to: 3.1.5Stated by: GitHub advisory
- Palletsprojects JinjaAffected: ≥ 3.0.0, < 3.1.5Upgrade to: 3.1.5Stated by: NVD
- RED SOFT RED OSAffected: 7.3Upgrade to: not statedStated by: BDU
- RusBITech-Astra Astra Linux Special EditionAffected: 1.8Upgrade to: not statedStated by: BDU
Versions as the sources state them. 3 more products have version data. Full version matrix after sign-in
SeguriScan is made by IntruForce, a cybersecurity company in Madrid, Spain. Links open intruforce.com.
What it is
From the CVE record
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.
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
No public exploit or proof of concept found in the sources we track.
- EPSS
0.4% chance of exploitation activity in the next 30 days, which ranks it in the 23rd percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
5 events over 549 days, from the signal feeds we watch.
- OpenVAS check added
- Patch availablerecord updated
- Publishedweakness classified
Affected products
And 3 more affected products. See all after sign-in
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Scored 8.8 by NVD.
How it is reached
- Attack Vector LocalRequires local access to the vulnerable system (e.g. local login, malicious file)
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required LowRequires basic user-level privileges
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope ChangedThe exploit can affect other components (e.g. sandbox escape, host compromise from VM)
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability HighTotal denial of service — the component is completely unavailable
Weaknesses
Sources
References in the record
- github.com/pallets/jinja/commit/767b23617628419ae3709ccfb02f9602ae9fe51f
- github.com/pallets/jinja/issues/1792
- github.com/pallets/jinja/releases/tag/3.1.5
And 9 more references. See all after sign-in
Questions about CVE-2024-56201
- Is CVE-2024-56201 being exploited?
- No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 0.4%.
- Which versions are affected by CVE-2024-56201?
- Astra Linux Special Edition: 1.8. Jinja: >= 3.0.0, < 3.1.5. Jinja2: ≥ 3.0.0, < 3.1.5. 5 more products are listed in the record.
- How do I fix or mitigate CVE-2024-56201?
- Upgrade to 3.1.5 or later. The advisory is on github.com.
Last updated
Related articles
All articlesWatch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for RusBITech-Astra, not every advisory.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI