CVE-2025-1795: Mishandling of comma during folding and unicode-encoding of email headers
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.
Security readout for executives and security teams
Plain-English summary
CPython can incorrectly encode a comma separating email addresses when a long Unicode header is folded across lines. Some mail servers may then interpret the recipient list incorrectly. The documented impact is limited to confidentiality, requires specific formatting conditions, and is rated low severity.
Executive priority
Treat this as routine remediation rather than an emergency. Address it during normal patching, with earlier attention for externally exposed mail-generation services or workflows handling sensitive recipients. Escalation is warranted if testing demonstrates recipient confusion or unintended disclosure in the organization’s mail path.
Technical view
During address-list header folding, a separating comma placed on a Unicode-encoded folded line may be encoded with the surrounding text instead of remaining a plain delimiter. This CWE-116 encoding error can change downstream mail-server parsing. CVSS 4.0 is 2.3, with high attack complexity, additional preconditions, and low confidentiality impact only.
Likely exposure
Exposure is most likely in CPython-based systems that generate folded email address headers containing Unicode and allow a low-privileged party to influence header content. The bundle does not provide clear normalized affected and fixed version ranges, so runtime exposure requires confirmation against Python or operating-system vendor advisories.
Exploitation context
CISA KEV status is false, and the supplied sources do not establish active exploitation. Exploitation requires a particular combination of address-list folding, comma placement, Unicode encoding, and mail-server interpretation, making broad or reliable abuse less likely.
Researcher notes
The core security question is whether malformed serialization causes unintended recipient interpretation by a specific downstream server. Preserve generated headers and receiving-server parsing results during validation. The supplied version data is insufficient to state precise vulnerable or fixed release ranges, although multiple CPython correction commits and a Debian LTS notice are referenced.
Mitigation direction
Inventory CPython runtimes used to construct or relay email address headers.
Apply vendor-supported Python or distribution updates containing the referenced corrections.
Confirm exact fixed versions through Python and operating-system vendor guidance.
Prioritize mail systems where low-privileged users influence recipient address headers.
Validation and detection
Record deployed Python versions and compare them with current vendor security advisories.
Test long Unicode address lists that trigger header folding in a controlled environment.
Verify folded separators remain plain commas rather than encoded header content.
Confirm representative receiving mail servers interpret every intended address consistently.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-116: User-session and phishing behavior lookup
Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-116 · source CWE mapping
Improper Encoding or Escaping of Output
Improper Encoding or Escaping of Output represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.