{"id":"CVE-2025-1795","state":"PUBLISHED","title":"Mishandling of comma during folding and unicode-encoding of email headers","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.","publishedAt":"2025-02-28T18:59:31.784Z","updatedAt":"2026-07-31T14:03:23.564Z","severity":{"score":2.3,"label":"Low","version":"4.0","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","source":"PSF"},"assigner":"PSF","products":["Python Software Foundation CPython"],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.9.23","versionType":"python"},{"version":"3.10.0","status":"affected","lessThan":"3.10.17","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.9","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.3","versionType":"python"},{"version":"3.13.0a1","status":"affected","lessThan":"3.13.0a5","versionType":"python"}],"modules":["email"],"repo":"https://github.com/python/cpython"}],"references":["https://github.com/python/cpython/issues/100884","https://github.com/python/cpython/pull/100885","https://github.com/python/cpython/pull/119099","https://github.com/python/cpython/commit/09fab93c3d857496c0bd162797fab816c311ee48","https://github.com/python/cpython/commit/70754d21c288535e86070ca7a6e90dcb670b8593","https://github.com/python/cpython/commit/9148b77e0af91cdacaa7fe3dfac09635c3fe9a74","https://mail.python.org/archives/list/security-announce@python.org/thread/MB62IZMEC3UM6SGHP5LET5JX2Y7H4ZUR/","https://github.com/python/cpython/commit/a4ef689ce670684ec132204b1cd03720c8e0a03d","https://github.com/python/cpython/commit/d4df3c55e4c5513947f907f24766b34d2ae8c090","https://lists.debian.org/debian-lts-announce/2025/03/msg00013.html"],"weaknesses":["CWE-116"],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/1xxx/CVE-2025-1795.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-1795","state":"PUBLISHED","datePublished":"2025-02-28T18:59:31.784Z","dateUpdated":"2026-07-31T14:03:23.564Z","assignerShortName":"PSF","assignerOrgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateReserved":"2025-02-28T18:49:37.957Z"},"containers":{"cna":{"title":"Mishandling of comma during folding and unicode-encoding of email headers","descriptions":[{"lang":"en","value":"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":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.9.23","versionType":"python"},{"version":"3.10.0","status":"affected","lessThan":"3.10.17","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.9","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.3","versionType":"python"},{"version":"3.13.0a1","status":"affected","lessThan":"3.13.0a5","versionType":"python"}],"modules":["email"],"repo":"https://github.com/python/cpython"}],"references":[{"url":"https://github.com/python/cpython/issues/100884","tags":["issue-tracking"]},{"url":"https://github.com/python/cpython/pull/100885","tags":["patch"]},{"url":"https://github.com/python/cpython/pull/119099","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/09fab93c3d857496c0bd162797fab816c311ee48","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/70754d21c288535e86070ca7a6e90dcb670b8593","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/9148b77e0af91cdacaa7fe3dfac09635c3fe9a74","tags":["patch"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/MB62IZMEC3UM6SGHP5LET5JX2Y7H4ZUR/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/a4ef689ce670684ec132204b1cd03720c8e0a03d","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/d4df3c55e4c5513947f907f24766b34d2ae8c090","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"HIGH","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":2.3,"baseSeverity":"LOW","exploitMaturity":"NOT_DEFINED","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"providerMetadata":{"shortName":"PSF","orgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateUpdated":"2026-07-31T14:03:23.564Z"},"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-02-28T20:30:47.670593Z","id":"CVE-2025-1795","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-116","type":"CWE","lang":"en","description":"CWE-116 Improper Encoding or Escaping of Output"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-28T20:32:56.849Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00013.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:57:12.370Z"}}]}}}