# CVE-2025-1795: Mishandling of comma during folding and unicode-encoding of email headers

- Severity: Low 2.3 (CVSS:4.0, scored by PSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2025-02-28T18:59:31.784Z
- Modified: 2026-07-31T14:16:44.000Z
- Also known as: PSF-2025-3, BIT-LIBPYTHON-2025-1795, BIT-PYTHON-2025-1795, BIT-PYTHON-MIN-2025-1795
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## 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.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.9.23; from 3.10.0 before 3.10.17; from 3.11.0 before 3.11.9; from 3.12.0 before 3.12.3; from 3.13.0a1 before 3.13.0a5
- https://github.com/python/cpython: before 09fab93c3d857496c0bd162797fab816c311ee48; before 70754d21c288535e86070ca7a6e90dcb670b8593; before 9148b77e0af91cdacaa7fe3dfac09635c3fe9a74; before a4ef689ce670684ec132204b1cd03720c8e0a03d; before d4df3c55e4c5513947f907f24766b34d2ae8c090
- libpython (Bitnami): before 3.9.23; from 3.10.0 before 3.10.17; from 3.11.0 before 3.11.9; from 3.12.0 before 3.12.3
- python (Bitnami): before 3.9.23; from 3.10.0 before 3.10.17; from 3.11.0 before 3.11.9; from 3.12.0 before 3.12.3
- python-min (Bitnami): before 3.9.23; from 3.10.0 before 3.10.17; from 3.11.0 before 3.11.11; from 3.12.0 before 3.12.8

## Every score

- PSF: CVSS:4.0 2.3 Low `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`
- Bitnami Vulnerability Database: rating Low

## References

- <https://github.com/python/cpython/issues/100884> (issue-tracking, report, web)
- <https://github.com/python/cpython/pull/100885> (patch, web)
- <https://github.com/python/cpython/pull/119099> (patch, web)
- <https://github.com/python/cpython/commit/09fab93c3d857496c0bd162797fab816c311ee48> (fix, patch, web)
- <https://github.com/python/cpython/commit/70754d21c288535e86070ca7a6e90dcb670b8593> (fix, patch, web)
- <https://github.com/python/cpython/commit/9148b77e0af91cdacaa7fe3dfac09635c3fe9a74> (fix, patch, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/MB62IZMEC3UM6SGHP5LET5JX2Y7H4ZUR/> (advisory, vendor-advisory, web)
- <https://github.com/python/cpython/commit/a4ef689ce670684ec132204b1cd03720c8e0a03d> (fix, patch, web)
- <https://github.com/python/cpython/commit/d4df3c55e4c5513947f907f24766b34d2ae8c090> (fix, patch, web)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00013.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1795> (web)

## Sources

- CVE List: [CVE-2025-1795](https://www.cve.org/CVERecord?id=CVE-2025-1795), CVE Terms of Use, modified 2026-07-31
- Python Software Foundation: [PSF-2025-3](https://osv.dev/vulnerability/PSF-2025-3), CC-BY-4.0, modified 2025-11-03
- NVD: [CVE-2025-1795](https://nvd.nist.gov/vuln/detail/CVE-2025-1795), Public domain, modified 2026-07-31
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2025-1795](https://osv.dev/vulnerability/BIT-LIBPYTHON-2025-1795), Apache-2.0, modified 2025-12-04
- Bitnami Vulnerability Database: [BIT-PYTHON-2025-1795](https://osv.dev/vulnerability/BIT-PYTHON-2025-1795), Apache-2.0, modified 2025-12-04
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2025-1795](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2025-1795), Apache-2.0, modified 2025-12-04

---

Page: https://cve.day/CVE-2025-1795 · Whole record: https://cve.day/CVE-2025-1795.json · Rebuilt by cve.day 2026-11-25T22:58:54.820Z
