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

Published Feb 28, 2025
·
Updated

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.

Other sources

Mishandling of comma during folding and unicode-encoding of email headers

— Microsoft

Affected Software

21 affected componentsFixes available
Microsoft cbl2 python3 3.9.19-13<3.9.19-12
3.9.19-12
Microsoft cbl2 python3 3.9.19-12<3.9.19-12
3.9.19-12
debian/pypy3*
debian/pypy3<7.3.18+dfsg-1
7.3.18+dfsg-1
debian/pypy3<7.3.18+dfsg-1
7.3.18+dfsg-1
debian/python3.11<3.11.2-6+deb12u6
3.11.2-6+deb12u6
debian/python3.13<3.13.0~b1-1
3.13.0~b1-1
debian/pypy3<=7.3.11+dfsg-2+deb12u3
7.3.19+dfsg-28.0.1+dfsg-1
debian/python3.11
3.11.2-6+deb12u83.11.2-6+deb12u9
debian/python3.13
3.13.5-2+deb13u53.13.18-1
ubuntu/python3.4*
ubuntu/python3.5*
ubuntu/python3.5*
ubuntu/python3.6<3.6.9-1~18.04ubuntu1.13+esm5
3.6.9-1~18.04ubuntu1.13+esm5
ubuntu/python3.7<3.7.5-2ubuntu1~18.04.2+esm6
3.7.5-2ubuntu1~18.04.2+esm6
ubuntu/python3.8<3.8.0-3ubuntu1~18.04.2+esm5
3.8.0-3ubuntu1~18.04.2+esm5
ubuntu/python3.8<3.8.10-0ubuntu1~20.04.18+esm1
3.8.10-0ubuntu1~20.04.18+esm1
ubuntu/python3.9<3.9.5-3ubuntu0~20.04.1+esm5
3.9.5-3ubuntu0~20.04.1+esm5
ubuntu/python3.10<3.10.12-1~22.04.10
3.10.12-1~22.04.10
ubuntu/python3.11<3.11.0~rc1-1~22.04.1~esm4
3.11.0~rc1-1~22.04.1~esm4
ubuntu/python3.12<3.12.3-1ubuntu0.6
3.12.3-1ubuntu0.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.9.19-12
  2. Upgrade

    Upgrade debian/pypy3 to a version that resolves this vulnerability.

    Fixed in 7.3.18+dfsg-1
  3. Upgrade

    Upgrade debian/python3.11 to a version that resolves this vulnerability.

    Fixed in 3.11.2-6+deb12u6
  4. Upgrade

    Upgrade debian/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.0~b1-1
  5. Upgrade

    Upgrade debian/pypy3 to a version that resolves this vulnerability.

    Fixed in 7.3.19+dfsg-2Fixed in 8.0.1+dfsg-1
  6. Upgrade

    Upgrade debian/python3.11 to a version that resolves this vulnerability.

    Fixed in 3.11.2-6+deb12u8Fixed in 3.11.2-6+deb12u9
  7. Upgrade

    Upgrade debian/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.5-2+deb13u5Fixed in 3.13.18-1
  8. Upgrade

    Upgrade ubuntu/python3.6 to a version that resolves this vulnerability.

    Fixed in 3.6.9-1~18.04ubuntu1.13+esm5
  9. Upgrade

    Upgrade ubuntu/python3.7 to a version that resolves this vulnerability.

    Fixed in 3.7.5-2ubuntu1~18.04.2+esm6
  10. Upgrade

    Upgrade ubuntu/python3.8 to a version that resolves this vulnerability.

    Fixed in 3.8.0-3ubuntu1~18.04.2+esm5
  11. Upgrade

    Upgrade ubuntu/python3.8 to a version that resolves this vulnerability.

    Fixed in 3.8.10-0ubuntu1~20.04.18+esm1
  12. Upgrade

    Upgrade ubuntu/python3.9 to a version that resolves this vulnerability.

    Fixed in 3.9.5-3ubuntu0~20.04.1+esm5
  13. Upgrade

    Upgrade ubuntu/python3.10 to a version that resolves this vulnerability.

    Fixed in 3.10.12-1~22.04.10
  14. Upgrade

    Upgrade ubuntu/python3.11 to a version that resolves this vulnerability.

    Fixed in 3.11.0~rc1-1~22.04.1~esm4
  15. Upgrade

    Upgrade ubuntu/python3.12 to a version that resolves this vulnerability.

    Fixed in 3.12.3-1ubuntu0.6

Event History

Feb 28, 2025
CVE Published
via MITRE·06:59 PM
Data Sourced
via MITRE·06:59 PM
Description
Data Sourced
via OSV·06:59 PM
DescriptionSeverity
Data Sourced
via NVD·07:15 PM
DescriptionSeverity
Data Sourced
via NVD·09:15 PM
Weakness
Apr 11, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Affected Software
Nov 24, 2026
Data Sourced
via OSV·02:54 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-1795?

The severity of CVE-2025-1795 is currently classified as moderate due to the impact on email header processing.

2

How do I fix CVE-2025-1795?

To fix CVE-2025-1795, ensure you update to the latest versions of the affected software, including any provided patches.

3

What software is affected by CVE-2025-1795?

CVE-2025-1795 affects Microsoft cbl2 python3 versions 3.9.19-12 and 3.9.19-13.

4

What type of vulnerability is CVE-2025-1795?

CVE-2025-1795 is a vulnerability that involves the mishandling of commas during the folding and unicode-encoding of email headers.

5

What could happen if CVE-2025-1795 is exploited?

Exploitation of CVE-2025-1795 may lead to incorrect email header interpretation, potentially affecting email delivery and processing.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203