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.
Published 2024-12-23 16:15:08
Updated 2024-12-27 18:15:39
Source GitHub, Inc.
View at NVD,   CVE.org

Products affected by CVE-2024-56326

Please log in to view affected product information.

Exploit prediction scoring system (EPSS) score for CVE-2024-56326

0.10%
Probability of exploitation activity in the next 30 days EPSS Score History
~ 29 %
Percentile, the proportion of vulnerabilities that are scored at or less

CVSS scores for CVE-2024-56326

Base Score Base Severity CVSS Vector Exploitability Score Impact Score Score Source First Seen
7.8
HIGH CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
1.8
5.9
134c704f-9b21-4f2e-91b3-4a467353bcc0 2024-12-27
10.0
CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
3.9
6.0
134c704f-9b21-4f2e-91b3-4a467353bcc0 2024-12-24
5.4
MEDIUM CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/V...
N/A
N/A
GitHub, Inc. 2024-12-23

CWE ids for CVE-2024-56326

  • The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.
    Assigned by: security-advisories@github.com (Secondary)
  • The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.
    Assigned by: security-advisories@github.com (Secondary)
Jump to
This web site uses cookies for managing your session, storing preferences, website analytics and additional purposes described in our privacy policy.
By using this web site you are agreeing to CVEdetails.com terms of use!