CVE-2024-22195
Apache Jinja XMLattr Filter Remote Code Execution (RCE)/Cross-Site Scripting (XSS)
Description
Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially leading to Cross-Site Scripting (XSS). The Jinja `xmlattr` filter can be abused to inject arbitrary HTML attribute keys and values, bypassing the auto escaping mechanism and potentially leading to XSS. It may also be possible to bypass attribute validation checks if they are blacklist-based.
INFO
Published Date :
Jan. 11, 2024, 3:15 a.m.
Last Modified :
Jan. 27, 2024, 3:15 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
2.7
Exploitability Score :
2.8
Public PoC/Exploit Available at Github
CVE-2024-22195 has a 3 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-22195
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Radisys Vulnerability Assessment and Management System
Rust Makefile
F-test is a simple web app test that handles a register format to send data into a MariaDB Database
Python C JavaScript CSS PowerShell Batchfile HTML
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-22195
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-22195
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Jan. 27, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/DELCVUUYX75I5K4Q5WMJG4MUZJA6VAIP/ [No types assigned] -
CVE Modified by [email protected]
Jan. 25, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/O7YWRBX6JQCWC2XXCTZ55C7DPMGICCN3/ [No types assigned] -
CVE Modified by [email protected]
Jan. 23, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.debian.org/debian-lts-announce/2024/01/msg00010.html [No types assigned] -
CVE Modified by [email protected]
Jan. 23, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/5XCWZD464AJJJUBOO7CMPXQ4ROBC6JX2/ [No types assigned] -
Initial Analysis by [email protected]
Jan. 16, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Changed Reference Type https://github.com/pallets/jinja/releases/tag/3.1.3 No Types Assigned https://github.com/pallets/jinja/releases/tag/3.1.3 Release Notes Changed Reference Type https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95 No Types Assigned https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95 Third Party Advisory Added CWE NIST CWE-79 Added CPE Configuration OR *cpe:2.3:a:palletsprojects:jinja:*:*:*:*:*:*:*:* versions up to (excluding) 3.1.3 -
CVE Received by [email protected]
Jan. 11, 2024
Action Type Old Value New Value Added Description Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially leading to Cross-Site Scripting (XSS). The Jinja `xmlattr` filter can be abused to inject arbitrary HTML attribute keys and values, bypassing the auto escaping mechanism and potentially leading to XSS. It may also be possible to bypass attribute validation checks if they are blacklist-based. Added Reference GitHub, Inc. https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95 [No types assigned] Added Reference GitHub, Inc. https://github.com/pallets/jinja/releases/tag/3.1.3 [No types assigned] Added CWE GitHub, Inc. CWE-79 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-22195
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-22195
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.10 }} 0.05%
score
0.40559
percentile