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.

Severity (CVSS 4.0)2.3Low
Exploit odds (30 days)0.6%top 49.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12pypy3no fix listedDEBIAN-CVE-2025-1795
Debian:13pypy37.3.18+dfsg-1DEBIAN-CVE-2025-1795
Debian:14pypy37.3.18+dfsg-1DEBIAN-CVE-2025-1795
Debian:12python3.113.11.2-6+deb12u6DEBIAN-CVE-2025-1795
Debian:13python3.133.13.0~b1-1DEBIAN-CVE-2025-1795
Ubuntu:22.04:LTSpython3.103.10.12-1~22.04.10USN-7570-1
Ubuntu:22.04:LTSpython3.103.10.12-1~22.04.10UBUNTU-CVE-2025-1795
Ubuntu:24.04:LTSpython3.123.12.3-1ubuntu0.6UBUNTU-CVE-2025-1795
Ubuntu:24.04:LTSpython3.123.12.3-1ubuntu0.6USN-7570-1

Affected products (as reported)

VendorProductVersions
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