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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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 | 3.9.23 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pypy3 | 7.3.18+dfsg-1 | — |
| Debian 13 | pypy3 | 7.3.18+dfsg-1 | — |
| Debian 13 | python3.13 | 3.13.0~b1-1 | — |
| Debian 12 | pypy3 | No fix yet | — |
| Debian 12 | python3.11 | 3.11.2-6+deb12u6 | — |
| Debian 11 | pypy3 | 7.3.5+dfsg-2+deb11u5 | DLA-4354-1 |
| Debian 11 | python3.9 | 3.9.2-1+deb11u3 | DLA-4087-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | python3.12 | 3.12.3-1ubuntu0.6 | USN-7570-1 |
| Ubuntu 22.04 LTS | python3.10 | 3.10.12-1~22.04.10 | USN-7570-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | python3.11 | 3.11.0~rc1-1~22.04.1~esm4 | USN-7570-1 |
| Ubuntu Pro 20.04 LTS | python3.8 | 3.8.10-0ubuntu1~20.04.18+esm1 | USN-7570-1 |
| Ubuntu Pro 20.04 LTS | python3.9 | 3.9.5-3ubuntu0~20.04.1+esm5 | USN-7570-1 |
| Ubuntu Pro 18.04 LTS | python3.6 | 3.6.9-1~18.04ubuntu1.13+esm5 | USN-7570-1 |
| Ubuntu Pro 18.04 LTS | python3.7 | 3.7.5-2ubuntu1~18.04.2+esm6 | USN-7570-1 |
| Ubuntu Pro 18.04 LTS | python3.8 | 3.8.0-3ubuntu1~18.04.2+esm5 | USN-7570-1 |
| Ubuntu Pro 16.04 LTS | python3.5 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | python3.4 +1 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | python311-core | 3.11.11-150600.3.21.1 | SUSE-SU-2025:0982-1 |
| SLES 15 SP4 | python311 +1 | 3.11.11-150400.9.49.1 | SUSE-SU-2025:0981-1 |
| SLES 3 | python311 +1 | 3.11.11-150600.3.21.1 | SUSE-SU-2025:0982-1 |
| SLES 3 | python312 +1 | 3.12.9-150600.3.21.1 | SUSE-SU-2025:0883-1 |
| SLES 3 | python313 +1 | 3.13.5-150700.4.11.1 | SUSE-SU-2025:02074-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLE Micro 6.1 | python311 +1 | 3.11.12-slfo.1.1_1.1 | SUSE-SU-2025:20374-1 |
| SLE Micro 6.0 | python311 +1 | 3.11.11-1.1 | SUSE-SU-2025:20154-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python311 | 3.11.11-4.1 | openSUSE-SU-2025:14872-1 |
| openSUSE Tumbleweed | python312 | 3.12.9-2.1 | openSUSE-SU-2025:14873-1 |
| openSUSE Tumbleweed | python313 | 3.13.2-3.1 | openSUSE-SU-2025:14885-1 |
| openSUSE Leap 15.6 | python311 +2 | 3.11.11-150600.3.21.1 | SUSE-SU-2025:0982-1 |
| openSUSE Leap 15.6 | python312 +2 | 3.12.9-150600.3.21.1 | SUSE-SU-2025:0883-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | python3 +7 | 3.9.21-1.amzn2023.0.3 | ALAS2023-2025-917 |
| Amazon Linux 2023 | python3.11 +6 | 3.11.11-5.amzn2023.0.1 | ALAS2023-2025-871 |
| Amazon Linux 2 | python3 +6 | 3.7.16-1.amzn2.0.15 | ALAS2-2025-2808 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | python3 | 3.9.19-13 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | python-3.10 | 3.10.17-r0 | — |
Advisories 18
- WID-SEC-2025-1439 Dell Secure Connect Gateway: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Oct 11, 2026
- WID-SEC-2025-0471 Python: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Jul 9, 2026
- USN-7570-1 python3.13, python3.12, python3.11, python3.10, python3.9, python3.8, python3.7, python3.6 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- SUSE-SU-2025:20154-1 Security update for python311 SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:20374-1 Security update for python311 SUSE / openSUSE Security Updates · Mar 23, 2026
- DLA-4087-1 python3.9 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2025:14872-1 python311-3.11.11-4.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14873-1 python312-3.12.9-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14885-1 python313-3.13.2-3.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:0982-1 Security update for python311 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:02074-1 Security update for python313 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:0981-1 Security update for python311 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:0883-1 Security update for python312 SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2025-1850 Xerox FreeFlow Print Server: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 17, 2025
- DLA-4354-1 pypy3 - security update Debian Security (DSA / DLA) · Oct 31, 2025
- ALAS2-2025-2808 Low: python3 security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 1, 2025
- ALAS2023-2025-917 Low: python3.9 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Apr 1, 2025
- ALAS2023-2025-871 Moderate: python3.11 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Mar 21, 2025
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