Vulnerability · Published Feb 28, 2025 · Assigned by PSF
CVE-2025-1795Mishandling of comma during folding and unicode-encoding of email headers
Low 2.3
In plain English
A low-severity security flaw in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pypy3 | no fix listed | DEBIAN-CVE-2025-1795 |
| Debian:13 | pypy3 | 7.3.18+dfsg-1 | DEBIAN-CVE-2025-1795 |
| Debian:14 | pypy3 | 7.3.18+dfsg-1 | DEBIAN-CVE-2025-1795 |
| Debian:12 | python3.11 | 3.11.2-6+deb12u6 | DEBIAN-CVE-2025-1795 |
| Debian:13 | python3.13 | 3.13.0~b1-1 | DEBIAN-CVE-2025-1795 |
| Ubuntu:22.04:LTS | python3.10 | 3.10.12-1~22.04.10 | USN-7570-1 |
| Ubuntu:22.04:LTS | python3.10 | 3.10.12-1~22.04.10 | UBUNTU-CVE-2025-1795 |
| Ubuntu:24.04:LTS | python3.12 | 3.12.3-1ubuntu0.6 | UBUNTU-CVE-2025-1795 |
| Ubuntu:24.04:LTS | python3.12 | 3.12.3-1ubuntu0.6 | USN-7570-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0 – before 3.9.233.10.0 – before 3.10.173.11.0 – before 3.11.93.12.0 – before 3.12.33.13.0a1 – before 3.13.0a5 |
Weakness: CWE-116 · Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/python/cpython/issues/100884 issue-tracking
- https://github.com/python/cpython/pull/100885 patch
- https://github.com/python/cpython/pull/119099 patch
- https://github.com/python/cpython/commit/09fab93c3d857496c0bd162797fab816c311ee48 patch
- https://github.com/python/cpython/commit/70754d21c288535e86070ca7a6e90dcb670b8593 patch
- https://github.com/python/cpython/commit/9148b77e0af91cdacaa7fe3dfac09635c3fe9a74 patch
- https://mail.python.org/archives/list/security-announce@python.org/thread/MB62IZMEC3UM6SGHP5LET5JX2Y7H4ZUR/ vendor-advisory
- https://github.com/python/cpython/commit/a4ef689ce670684ec132204b1cd03720c8e0a03d patch
- https://github.com/python/cpython/commit/d4df3c55e4c5513947f907f24766b34d2ae8c090 patch
- https://lists.debian.org/debian-lts-announce/2025/03/msg00013.html