CVE-2025-27516
published medium CVSS 4.0 · 5.4Jinja sandbox breakout through attr filter selecting format method
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pallets | — | jinja< 3.1.6 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2792 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2793 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-893 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-894 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | python3-jinja2 | Advisory build | 3.1.6-1.el10_0 | ALSA-2025:7476 |
| Alpine Linux | edge | py3-jinja2 | Fixed | 3.1.6-r0 | Package fix record |
| Debian | bullseye | jinja2 | Advisory build | 2.11.3-1+deb11u3 | DLA-4126-1 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | python3-jinja2aarch64 | Advisory build | 0:3.1.6-1.el10_0 | ELSA-2025-7476 |
| AlmaLinux | 10 | python3-jinja2+i18n | Advisory build | 3.1.6-1.el10_0 | ALSA-2025:7476 |
| AlmaLinux | 8 | python3-jinja2 | Advisory build | 2.10.1-7.el8_10 | ALSA-2025:3388 |
| AlmaLinux | 9 | python3-jinja2 | Advisory build | 2.11.3-8.el9_5 | ALSA-2025:3406 |
| Alpine Linux | v3.18 | py3-jinja2 | Fixed | 3.1.6-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-jinja2 | Fixed | 3.1.6-r0 | Package fix record |
| Alpine Linux | v3.20 | py3-jinja2 | Fixed | 3.1.6-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-jinja2 | Fixed | 3.1.6-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-jinja2 | Fixed | 3.1.6-r0 | Package fix record |
| Alpine Linux | v3.23 | py3-jinja2 | Fixed | 3.1.6-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-jinja2 | Fixed | 3.1.6-r0 | Package fix record |
| Oracle Linux | 10 | python3-jinja2x86_64 | Advisory build | 0:3.1.6-1.el10_0 | ELSA-2025-7476 |
| Oracle Linux | 10 | python3-jinja2+i18naarch64 | Advisory build | 0:3.1.6-1.el10_0 | ELSA-2025-7476 |
| Oracle Linux | 10 | python3-jinja2+i18nx86_64 | Advisory build | 0:3.1.6-1.el10_0 | ELSA-2025-7476 |
| Oracle Linux | 8 | python3-jinja2aarch64 | Advisory build | 0:2.10.1-7.el8_10 | ELSA-2025-3388 |
| Oracle Linux | 8 | python3-jinja2x86_64 | Advisory build | 0:2.10.1-7.el8_10 | ELSA-2025-3388 |
| Oracle Linux | 9 | fence-agents-allaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-allx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-amt-wsaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-amt-wsx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-apcaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-apcx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-apc-snmpaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-apc-snmpx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-bladecenteraarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-bladecenterx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-brocadeaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-brocadex86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-cisco-mdsaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-cisco-mdsx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-cisco-ucsaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-cisco-ucsx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-commonaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-commonx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-computex86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-drac5aarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-drac5x86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-eaton-snmpaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-eaton-snmpx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-emersonaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-emersonx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-epsaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-epsx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-heuristics-pingaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-heuristics-pingx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-hpbladeaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-hpbladex86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ibm-powervsaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ibm-powervsx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ibm-vpcaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ibm-vpcx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ibmbladeaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ibmbladex86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ifmibaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ifmibx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ilo-moonshotaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ilo-moonshotx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ilo-mpaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ilo-mpx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ilo-sshaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ilo-sshx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ilo2aarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ilo2x86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-intelmodularaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-intelmodularx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ipduaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ipdux86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ipmilanaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-ipmilanx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-kdumpaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-kdumpx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-kubevirtaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-kubevirtx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-lparaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-lparx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-mpathaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-mpathx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-redfishaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-redfishx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-rhevmaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-rhevmx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-rsaaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-rsax86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-rsbaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-rsbx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-sbdaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-sbdx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-scsiaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-scsix86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-virshaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-virshx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-vmware-restaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-vmware-restx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-vmware-soapaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-vmware-soapx86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-wtiaarch64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
| Oracle Linux | 9 | fence-agents-wtix86_64 | Advisory build | 0:4.10.0-76.el9_5.6 | ELSA-2025-3113 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pallets | jinja | < 3.1.6 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-1336 CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
References
4Provider assertions
3GitHub_M · cna
Jinja sandbox breakout through attr filter selecting format method
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1fb9150057819dfb43544ccb2c670f35d18efe6fdf2983e889719168a7b31adb
- Ingested
- 23 Sep 2026, 08:42:52 UTC
- Source record
- Official CVE record