CVE-2025-1795: Libpython · Mishandling of comma during folding and unicode-encoding of email headers
Affects libpythonSource GCVE Database
Not known to be exploited · CVSS 2.3 Low · fixed in 3.12.3 : update libpython when convenient.
Data as of 25 Nov 2026, 03:33 UTC
- Patch
- Available – fixed in 3.12.3, 3.11.9, 3.10.17 +1
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 28 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade libpython to 3.12.3, 3.11.9, 3.10.17 or 3.9.23.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Bitnamilibpythonpkg:bitnami/libpythonOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and has been released in libpython versions 3.9.23, 3.10.17, 3.11.9, and 3.12.3. Users should upgrade to these fixed versions to resolve the issue. No additional mitigation steps are indicated.
Description
A vulnerability in libpython causes the mishandling of commas during folding and unicode-encoding of email headers. Specifically, when a separating comma is placed at the start of a folded line and that line is unicode-encoded, the comma itself is incorrectly unicode-encoded instead of remaining a plain comma. This can lead to misinterpretation of the address header by some mail servers. The issue affects multiple libpython versions and has been fixed in recent releases.
References
- github.com/python/cpython/commit/09fab93c3d857496c0bd162797fab816c311ee48 (opens in a new tab)
- github.com/python/cpython/commit/70754d21c288535e86070ca7a6e90dcb670b8593 (opens in a new tab)
- github.com/python/cpython/commit/9148b77e0af91cdacaa7fe3dfac09635c3fe9a74 (opens in a new tab)
- github.com/python/cpython/issues/100884 (opens in a new tab)
- github.com/python/cpython/pull/100885 (opens in a new tab)
- github.com/python/cpython/pull/119099 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/MB62IZMEC3UM6SGHP5LET5JX2Y7H4ZUR/ (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-1795 (opens in a new tab)
- github.com/python/cpython/commit/a4ef689ce670684ec132204b1cd03720c8e0a03d (opens in a new tab)
- github.com/python/cpython/commit/d4df3c55e4c5513947f907f24766b34d2ae8c090 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/03/msg00013.html (opens in a new tab)