Vulnerabilities in Jinja Templating Engine Affecting Application Security
CVE-2024-56201
What is CVE-2024-56201?
An issue was identified in the Jinja templating engine that poses a significant security risk to applications that execute untrusted templates. Before version 3.1.5, a flaw in the Jinja compiler could be exploited by an attacker who has the capability to control both the content and the filename of a template. This vulnerability allows for arbitrary Python code execution, even when using Jinja's sandbox features. The impact of this vulnerability is particularly relevant to applications that allow template authors to define both the content and filenames of templates. The issue has been rectified in Jinja version 3.1.5, making it critical for users to upgrade to this version to mitigate potential attacks.
Affected Version(s)
jinja >= 3.0.0, < 3.1.5
References
CVSS V4
Timeline
Vulnerability published
Vulnerability Reserved