ADVISORIES

Red Hat VEX

RHVEX-CVE-2024-56201

jinja2: Jinja has a sandbox breakout through malicious filenames

Important No fix available CVE-2024-56201

Details

A flaw was found in the Jinja2 package. 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 Jinja's sandbox being used. An attacker needs to be able 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 that execute untrusted templates where the template author can also choose the template filename.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:6python-jinja2
All versions, no fix (out of support scope)

References