CVE-2024-56326
Last modified
CVE-2024-56326 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. Jinja is an extensible templating engine. Prior to 3.1.5, An oversight in how the Jinja sandboxed environment detects calls to str.format allows an attacker that controls the content of a template to execute arbitrary Python code. EPSS estimates a 0.50% chance of exploitation in the next 30 days.
Description
Jinja is an extensible templating engine. Prior to 3.1.5, An oversight in how the Jinja sandboxed environment detects calls to str.format allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content 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. Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to store a reference to a malicious string's format method, then pass that to a filter that calls it. No such filters are built-in to Jinja, but could be present through custom filters in an application. After the fix, such indirect calls are also handled by the sandbox. This vulnerability is fixed in 3.1.5.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Palletsprojects | Jinja | < 3.1.5 |
References
- https://github.com/pallets/jinja/releases/tag/3.1.5Release Notes
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-56326?
How severe is CVE-2024-56326?
How do I fix CVE-2024-56326?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-56320GoCD is a continuous deliver server. GoCD versions prior to …8.8
- CVE-2024-56321GoCD is a continuous deliver server. GoCD versions 18.9.0 th…3.8
- CVE-2024-56322GoCD is a continuous deliver server. GoCD versions 16.7.0 th…7.2
- CVE-2024-56323OpenFGA is an authorization/permission engine. IN OpenFGA v1…9.8
- CVE-2024-56324GoCD is a continuous deliver server. GoCD versions prior to …7.1
- CVE-2024-56325Authentication Bypass Issue If the path does not contain / …9.8
- CVE-2024-56327pyrage is a set of Python bindings for the rage file encrypt…9.8
- CVE-2024-56328Discourse is an open source platform for community discussio…6.1
- CVE-2024-56329Socialstream is a third-party package for Laravel Jetstream.…8.9
- CVE-2024-5633Longse model LBH30FE200W cameras, as well as products based …7.5
- CVE-2024-56330Stardust is a platform for streaming isolated desktop contai…9.3
- CVE-2024-56331Uptime Kuma is an open source, self-hosted monitoring tool. …6.8
Are you affected by CVE-2024-56326?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
