Advisory Published
Updated

REDHAT-BUG-2333854

First published: Mon Dec 23 2024(Updated: )

Jinja is an extensible templating engine. 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.

Affected SoftwareAffected VersionHow to fix
Jinja<3.1.5

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-2333854?

    The severity of REDHAT-BUG-2333854 is high due to the potential for arbitrary code execution.

  • How do I fix REDHAT-BUG-2333854?

    To fix REDHAT-BUG-2333854, upgrade Jinja to version 3.1.5 or later.

  • Who is affected by REDHAT-BUG-2333854?

    Users of Jinja versions prior to 3.1.5 are affected by REDHAT-BUG-2333854.

  • What type of vulnerability is REDHAT-BUG-2333854?

    REDHAT-BUG-2333854 is a code execution vulnerability in the Jinja templating engine.

  • What can an attacker do with REDHAT-BUG-2333854?

    An attacker exploiting REDHAT-BUG-2333854 can execute arbitrary Python code by controlling the template content and filename.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203