Improper Neutralization Affecting jinja2 package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-JINJA2-8549105
  • published6 Jan 2025
  • disclosed23 Dec 2024

Introduced: 23 Dec 2024

NewCVE-2024-56201  (opens in a new tab)
CWE-150  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:20.04 jinja2.

NVD Description

Note: Versions mentioned in the description apply only to the upstream jinja2 package and not the jinja2 package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

Jinja is an extensible templating engine. In versions on the 3.x branch 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.

CVSS Scores

version 3.1