Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-56326

7.8 · HIGH
Published Dec 23, 2024 palletsprojects CWE-693 EPSS 0.52% (42th pctl)

Overview

CVE-2024-56326 is a high-severity vulnerability affecting palletsprojects jinja. It was published on December 23, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from palletsprojects. Update jinja to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
palletsprojects jinja >= 0, < 3.1.5 Affected

Frequently Asked Questions

What is CVE-2024-56326?

CVE-2024-56326 is a high-severity vulnerability affecting palletsprojects jinja. It was published on December 23, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-56326?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-56326?

Check the references section for vendor advisories and patches from palletsprojects. Update jinja to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-56326?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-56326 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.