CVE-2025-27516 in Debian Linux and 1 more product
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 templa...
Affects 2 products from 2 vendors. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 11.0 |
| Palletsprojects | Jinja | < 3.1.6 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-27516 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-249115-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Published | 2025-03-05 |
| Last modified | 2025-11-03 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-1336: CWE-1336
Analysis AI-written, not human-reviewed
A high severity vulnerability affects Debian systems (CVE-2025-27516). No public exploit code is currently available. Apply available vendor patches promptly.
Vulnerability details: 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 c CVSS vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
Questions
What is CVE-2025-27516?
A high severity vulnerability affects Debian systems (CVE-2025-27516). No public exploit code is currently available. Apply available vendor patches promptly.
What is the CVSS score for CVE-2025-27516?
CVE-2025-27516 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.6%.
Is CVE-2025-27516 actively exploited?
No confirmed active exploitation of CVE-2025-27516 as of 2026-05-30.
How do I remediate CVE-2025-27516?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2025-27516?
CVE-2025-27516 affects Debian Debian Linux; Palletsprojects Jinja.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-11-03.