cve.bz

CVE-2025-1795 python software foundation cpython: Improper Encoding or Escaping of Output

2.3 lowEPSS 0.6%

Low (2.3) in python software foundation cpython. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-02-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-116 Improper Encoding or Escaping of Output
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-1795 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-1795?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-1795?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-1795 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Python Software Foundation CPythonbefore 3.9.23
Python Software Foundation CPythonfrom 3.10.0 before 3.10.17
Python Software Foundation CPythonfrom 3.11.0 before 3.11.9
Python Software Foundation CPythonfrom 3.12.0 before 3.12.3
Python Software Foundation CPythonfrom 3.13.0a1 before 3.13.0a5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11pypy37.3.5+dfsg-2+deb11u5DLA-4354-1
Debian11python3.93.9.2-1+deb11u3DLA-4087-1
Debian12pypy3no fix listedDEBIAN-CVE-2025-1795
Debian12python3.113.11.2-6+deb12u6DEBIAN-CVE-2025-1795
Debian13python3.133.13.0~b1-1DEBIAN-CVE-2025-1795
Debian13, 14pypy37.3.18+dfsg-1DEBIAN-CVE-2025-1795
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.10UBUNTU-CVE-2025-1795 USN-7570-1
Ubuntu24.04:LTSpython3.123.12.3-1ubuntu0.6UBUNTU-CVE-2025-1795 USN-7570-1
UbuntuPro:14.04:LTSpython3.4, python3.5no fix listedUBUNTU-CVE-2025-1795
UbuntuPro:16.04:LTSpython3.5no fix listedUBUNTU-CVE-2025-1795
UbuntuPro:18.04:LTSpython3.63.6.9-1~18.04ubuntu1.13+esm5UBUNTU-CVE-2025-1795 USN-7570-1
UbuntuPro:18.04:LTSpython3.73.7.5-2ubuntu1~18.04.2+esm6UBUNTU-CVE-2025-1795 USN-7570-1
UbuntuPro:18.04:LTSpython3.83.8.0-3ubuntu1~18.04.2+esm5UBUNTU-CVE-2025-1795 USN-7570-1
UbuntuPro:20.04:LTSpython3.83.8.10-0ubuntu1~20.04.18+esm1UBUNTU-CVE-2025-1795 USN-7570-1
UbuntuPro:20.04:LTSpython3.93.9.5-3ubuntu0~20.04.1+esm5UBUNTU-CVE-2025-1795 USN-7570-1
UbuntuPro:22.04:LTSpython3.113.11.0~rc1-1~22.04.1~esm4UBUNTU-CVE-2025-1795 USN-7570-1
SUSELinux Enterprise Module for Basesystem 15 SP6python311-core3.11.11-150600.3.21.1SUSE-SU-2025:0982-1
SUSELinux Enterprise Module for Public Cloud 15 SP4python311, python311-core3.11.11-150400.9.49.1SUSE-SU-2025:0981-1
SUSELinux Enterprise Module for Python 3 15 SP6python311, python311-core3.11.11-150600.3.21.1SUSE-SU-2025:0982-1
SUSELinux Enterprise Module for Python 3 15 SP6python312, python312-core3.12.9-150600.3.21.1SUSE-SU-2025:0883-1
SUSELinux Enterprise Module for Python 3 15 SP7python313, python313-core3.13.5-150700.4.11.1SUSE-SU-2025:02074-1
SUSELinux Micro 6.0python311, python311-core3.11.11-1.1SUSE-SU-2025:20154-1
SUSELinux Micro 6.1python311, python311-core3.11.12-slfo.1.1_1.1SUSE-SU-2025:20374-1
openSUSELeap 15.6python311, python311-core, python311-documentation3.11.11-150600.3.21.1SUSE-SU-2025:0982-1
openSUSELeap 15.6python312, python312-core, python312-documentation3.12.9-150600.3.21.1SUSE-SU-2025:0883-1
openSUSETumbleweedpython3113.11.11-4.1openSUSE-SU-2025:14872-1
openSUSETumbleweedpython3123.12.9-2.1openSUSE-SU-2025:14873-1
openSUSETumbleweedpython3133.13.2-3.1openSUSE-SU-2025:14885-1
Azure Linux2python33.9.19-13AZL-57675

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10python3.12Fix deferred
Red Hat Enterprise Linux 6pythonFix deferred
Red Hat Enterprise Linux 7pythonFix deferred
Red Hat Enterprise Linux 7python3Fix deferred
Red Hat Enterprise Linux 8python3Fix deferred
Red Hat Enterprise Linux 8python3.11Fix deferred
Red Hat Enterprise Linux 8python3.12Fix deferred
Red Hat Enterprise Linux 8python36:3.6/python36Fix deferred
Red Hat Enterprise Linux 8python39:3.9/python39Fix deferred
Red Hat Enterprise Linux 8python39-devel:3.9/python39Fix deferred
Red Hat Enterprise Linux 9python3.11Fix deferred
Red Hat Enterprise Linux 9python3.12Not affected
Red Hat Enterprise Linux 9python3.9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel9Under investigation

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-1795.

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON