CVE-2025-1795
Mishandling of comma during folding and unicode-encoding of email headers
Mitigation
- Upgrade CPython to 3.13.0a5 or later.
Who should check
- Anyone running Python Software Foundation CPython < 3.9.23; >= 3.10.0, < 3.10.17; >= 3.11.0, < 3.11.9; >= 3.12.0, < 3.12.3; >= 3.13.0a1, < 3.13.0a5
Vulnerability facts
- Affected
- Python Software Foundation CPython < 3.9.23; >= 3.10.0, < 3.10.17; >= 3.11.0, < 3.11.9; >= 3.12.0, < 3.12.3; >= 3.13.0a1, < 3.13.0a5
- Fixed in
- Python Software Foundation CPython 3.9.23, Python Software Foundation CPython 3.10.17, Python Software Foundation CPython 3.11.9, Python Software Foundation CPython 3.12.3, Python Software Foundation CPython 3.13.0a5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 2.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Attack requirements: Present
- Privileges required: Low
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.97% chance of exploitation in 30 days (percentile 61, 2026-11-26)
- CWE
- CWE-116
- Modified
Description
During an address list folding when a separating comma ends up on a folded line and that line is to be unicode-encoded then the separator itself is also unicode-encoded. Expected behavior is that the separating comma remains a plan comma. This can result in the address header being misinterpreted by some mail servers.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Python Software Foundation CPython | < 3.9.23; >= 3.10.0, < 3.10.17; >= 3.11.0, < 3.11.9; >= 3.12.0, < 3.12.3; >= 3.13.0a1, < 3.13.0a5 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-1795. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-1795.md Affected: Python Software Foundation CPython < 3.9.23; >= 3.10.0, < 3.10.17; >= 3.11.0, < 3.11.9; >= 3.12.0, < 3.12.3; >= 3.13.0a1, < 3.13.0a5 Fixed in: Python Software Foundation CPython 3.9.23, Python Software Foundation CPython 3.10.17, Python Software Foundation CPython 3.11.9, Python Software Foundation CPython 3.12.3, Python Software Foundation CPython 3.13.0a5 Steps: 1. Search this machine and project for Python Software Foundation CPython: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/python/cpython/pull/100885
- https://github.com/python/cpython/pull/119099
- https://github.com/python/cpython/commit/09fab93c3d857496c0bd162797fab816c311ee48
- https://github.com/python/cpython/commit/70754d21c288535e86070ca7a6e90dcb670b8593
- https://github.com/python/cpython/commit/9148b77e0af91cdacaa7fe3dfac09635c3fe9a74
- https://github.com/python/cpython/commit/a4ef689ce670684ec132204b1cd03720c8e0a03d
- https://github.com/python/cpython/commit/d4df3c55e4c5513947f907f24766b34d2ae8c090
FAQ
Is CVE-2025-1795 being exploited?
There is no confirmed exploitation: CVE-2025-1795 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.97% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-1795?
Low: CVSS 2.3 (v4.0, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-1795?
Python Software Foundation CPython < 3.9.23; >= 3.10.0, < 3.10.17; >= 3.11.0, < 3.11.9; >= 3.12.0, < 3.12.3; >= 3.13.0a1, < 3.13.0a5.
Is there a fix for CVE-2025-1795?
Yes. Fixed in Python Software Foundation CPython 3.9.23, Python Software Foundation CPython 3.10.17, Python Software Foundation CPython 3.11.9, Python Software Foundation CPython 3.12.3, Python Software Foundation CPython 3.13.0a5. Upgrade CPython to 3.13.0a5 or later.
How do I check if I'm affected by CVE-2025-1795?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.