ALAS2-2025-2792
Active ImportantALAS2-2025-2792 (important): python-jinja2
Related CVEs
CVE identifiers linked by this publisher.
Publisher relationship details 1 records
| CVE | Relationship | Publisher CVE field | Publisher evidence |
|---|---|---|---|
| CVE-2025-27516 | Listed by advisoryExact relationship valueadvisory_list | Publisher referencesExact field valuereferences | https://alas.aws.amazon.com/AL2/ALAS2-2025-2792.html |
Description
Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter 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
Read full publisher description 833 characters
Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter 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 use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup. This vulnerability is fixed in 3.1.6. (CVE-2025-27516)
Solution
Run yum update python-jinja2 or yum update --advisory ALAS2-2025-2792 to update your system.
Affected packages
Each item is one publisher package occurrence. Shared details are shown once; differences stay with the occurrence.
Shared package data
Applies to all 2 occurrences-
1python-jinja2
Occurrence-specific details
- Architecture
- noarch
Replacement RPMs
- python-jinja2-2.7.2-3.amzn2.0.4.noarch
-
2python-jinja2
Occurrence-specific details
- Architecture
- src
Replacement RPMs
- python-jinja2-2.7.2-3.amzn2.0.4.src
CVSS assessments
Publisher supplied scores and vectors; these do not replace the advisory severity above.
No CVSS assessments were provided.
Publisher references
2- CVE-2025-27516 https://access.redhat.com/security/cve/CVE-2025-27516
- CVE-2025-27516 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-27516
Provenance
- Schema version
- Unknown
- Parser version
- amazon-alas/1
- Severity origin
- publisher
| Kind | Locator | Source commit | Document hash | Parser | Fetched |
|---|---|---|---|---|---|
| html_page | https://alas.aws.amazon.com/AL2/ALAS2-2025-2792.html | Unknown | 0e6ea272990d6146c440a761a42830fc6c97d7c55fd6feba627ea85ddd33f511 | amazon-alas/1 | 2026-09-26T01:34:09Z |
| rss_entry | https://alas.aws.amazon.com/AL2/ALAS2-2025-2792.html | Unknown | Unknown | amazon-alas/1 | 2026-09-26T01:34:09Z |
| catalog_entry | https://alas.aws.amazon.com/AL2/ALAS2-2025-2792.html | Unknown | Unknown | amazon-alas/1 | 2026-09-26T01:34:09Z |