Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

Security advisory

ALAS2-2024-2574

Active Moderate

ALAS2-2024-2574 (medium): python-jinja2

Published
24 Jun 2024
Updated
24 Jun 2024

Related CVEs

CVE identifiers linked by this publisher.

1
Publisher relationship details 1 records
Explicit publisher CVE relationships
CVERelationshipPublisher CVE fieldPublisher evidence
CVE-2024-34064Listed by advisory
Exact relationship valueadvisory_list
Publisher references
Exact field valuereferences
https://alas.aws.amazon.com/AL2/ALAS2-2024-2574.html

Description

Jinja is an extensible templating engine. The `xmlattr` filter in affected versions of Jinja accepts keys containing non-attribute characters. XML/HTML attributes cannot contain spaces, `/`, `>`, or `=`, as each would then be interpreted as starting a separate attribute. If an application accepts keys (as opposed to only values) as user input, and renders

Read full publisher description 885 characters

Jinja is an extensible templating engine. The `xmlattr` filter in affected versions of Jinja accepts keys containing non-attribute characters. XML/HTML attributes cannot contain spaces, `/`, `>`, or `=`, as each would then be interpreted as starting a separate attribute. If an application accepts keys (as opposed to only values) as user input, and renders these in pages that other users see as well, an attacker could use this to inject other attributes and perform XSS. The fix for CVE-2024-22195 only addressed spaces but not other characters. Accepting keys as user input is now explicitly considered an unintended use case of the `xmlattr` filter, and code that does so without otherwise validating the input should be flagged as insecure, regardless of Jinja version. Accepting _values_ as user input continues to be safe. This vulnerability is fixed in 3.1.4. (CVE-2024-34064)

Solution

Run yum update python-jinja2 or yum update --advisory ALAS2-2024-2574 to update your system.

Affected packages

Each item is one publisher package occurrence. Shared details are shown once; differences stay with the occurrence.

2

Shared package data

Applies to all 2 occurrences
  1. 1python-jinja2

    Occurrence-specific details
    Architecture
    noarch

    Replacement RPMs

    • python-jinja2-2.7.2-3.amzn2.0.2.noarch
  2. 2python-jinja2

    Occurrence-specific details
    Architecture
    src

    Replacement RPMs

    • python-jinja2-2.7.2-3.amzn2.0.2.src

CVSS assessments

Publisher supplied scores and vectors; these do not replace the advisory severity above.

0

No CVSS assessments were provided.

Publisher references

2
  • CVE-2024-34064 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2024-34064
  • CVE-2024-34064 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-34064

Provenance

Schema version
Unknown
Parser version
amazon-alas/1
Severity origin
publisher
Publisher document provenance records
KindLocatorSource commitDocument hashParserFetched
html_pagehttps://alas.aws.amazon.com/AL2/ALAS2-2024-2574.htmlUnknown57b59d96ff16404562a302a7904bc049c969f6d58a9b771331e3143b027431bdamazon-alas/12026-09-26T01:34:09Z
rss_entryhttps://alas.aws.amazon.com/AL2/ALAS2-2024-2574.htmlUnknownUnknownamazon-alas/12026-09-26T01:34:09Z
catalog_entryhttps://alas.aws.amazon.com/AL2/ALAS2-2024-2574.htmlUnknownUnknownamazon-alas/12026-09-26T01:34:09Z

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected