cve.bz

CVE-2026-18503 python software foundation cpython: Inefficient CPU Computation

2.4 lowEPSS 0.1%

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

On this page
Attacker-controlled CSV samples can trigger super-linear regular-expression work during dialect sniffing and consume significant CPU when applications pass unbounded input to csv.Sniffer.sniff().

Severity

CVSS 4.0

2.4 low
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 2nd 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 2026-08-10. 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-1176 Inefficient CPU Computation
Published
Modified
Assigned by
PSF (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-18503 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-18503?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-18503?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-2026-18503 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.10.21
Python Software Foundation CPythonfrom 3.11.0 before 3.11.16
Python Software Foundation CPythonfrom 3.12.0 before 3.12.14
Python Software Foundation CPythonfrom 3.13.0 before 3.13.15
Python Software Foundation CPythonfrom 3.14.0 before 3.14.7
Python Software Foundation CPythonfrom 3.15.0a1 before 3.15.0rc1
Python Software Foundation CPythonfrom 3.16.0a1 before 3.16.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12pypy3no fix listedDEBIAN-CVE-2026-18503
Debian12python3.113.11.2-6+deb12u9DEBIAN-CVE-2026-18503 DLA-4827-1
Debian13pypy3, python3.13no fix listedDEBIAN-CVE-2026-18503
Debian14pypy38.0.1+dfsg-1DEBIAN-CVE-2026-18503
Debian14python3.143.14.7-1DEBIAN-CVE-2026-18503
Debian14python3.153.15.0~rc1-1DEBIAN-CVE-2026-18503
Ubuntu22.04:LTSpython3.10no fix listedUBUNTU-CVE-2026-18503
Ubuntu24.04:LTSpython3.12no fix listedUBUNTU-CVE-2026-18503
Ubuntu26.04:LTS, 26.10python3.14no fix listedUBUNTU-CVE-2026-18503
UbuntuPro:14.04:LTSpython2.7, python3.4, python3.5no fix listedUBUNTU-CVE-2026-18503
UbuntuPro:16.04:LTSpython2.7, python3.5no fix listedUBUNTU-CVE-2026-18503
UbuntuPro:18.04:LTSpython2.7, python3.6, python3.7 and 1 moreno fix listedUBUNTU-CVE-2026-18503
UbuntuPro:20.04:LTSpython2.7, python3.8, python3.9no fix listedUBUNTU-CVE-2026-18503
UbuntuPro:22.04:LTSpython2.7, python3.11no fix listedUBUNTU-CVE-2026-18503
Red Hathummingbird:1python3, python3.14, python3-idle and 13 more0:3.14.7-1.hum1RHSA-2026:54534
Red Hathummingbird:1python3.10, python3.10-idle, python3.10-libs and 4 more0:3.10.21-1.hum1RHSA-2026:57010
Red Hathummingbird:1python3.11, python3.11-idle, python3.11-libs and 4 more0:3.11.16-1.hum1RHSA-2026:57660
Red Hathummingbird:1python3.12, python3.12-idle, python3.12-libs and 4 more0:3.12.14-1.hum1RHSA-2026:58420
Red Hathummingbird:1python3.13, python3.13-idle, python3.13-libs and 6 more0:3.13.15-1.hum1RHSA-2026:54554
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 11 morepython3, python3-core3.6.15-150300.10.129.1SUSE-SU-2026:4754-1
SUSELinux Enterprise Module for Development Tools 15 SP7python3-core3.6.15-150300.10.129.1SUSE-SU-2026:4754-1
SUSELinux Enterprise Module for Package Hub 15 SP7python, python-base2.7.18-150000.133.1SUSE-SU-2026:4411-1
SUSELinux Enterprise Module for Python 3 15 SP7python313, python313-core3.13.15-150700.4.56.1SUSE-SU-2026:4401-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5python3, python3-base3.4.10-25.199.1SUSE-SU-2026:4744-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5python36, python36-core3.6.15-125.1SUSE-SU-2026:4743-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5python, python-doc, python-base2.7.18-33.88.1SUSE-SU-2026:4633-1
openSUSETumbleweedpython3133.13.15-1.1openSUSE-SU-2026:11817-1
openSUSETumbleweedpython3153.15.0~rc2-1.1openSUSE-SU-2026:11748-1
Azure Linux3docbook5-style-xslno fix listedAZL-95586
Azure Linux3python33.12.14-1AZL-95619
Alpaquita23python33.11.16-r0BELL-CVE-2026-18503
Alpaquita25python33.12.14-r0BELL-CVE-2026-18503
BellSoft Hardened Containers23python33.11.16-r0BELL-CVE-2026-18503
BellSoft Hardened Containers25python33.12.14-r0BELL-CVE-2026-18503

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

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat has evaluated this issue and determined it has a Low security impact. The csv.Sniffer.sniff() function in Python's standard library is vulnerable to excessive CPU consumption when processing specially crafted CSV input, due to quadratic time complexity in the dialect sniffing regex. Most applications are not affected as they use csv.reader() or csv.DictReader() directly without invoking the sniffing functionality.

Red Hat's mitigation

Do not pass untrusted or unbounded CSV input to csv.Sniffer.sniff(). If dialect detection is needed, limit the size of the sample passed to sniff() or use a known dialect directly with csv.reader().

ProductPackageStateAdvisory
Red Hat Hardened Imagespython3-14-main-3.14.7-1.hum1Fixed 2026-08-13RHSA-2026:54534
Red Hat Hardened Imagespython3-13-main-3.13.15-1.hum1Fixed 2026-08-13RHSA-2026:54554
Red Hat Hardened Imagespython3-10-main-3.10.21-1.hum1Fixed 2026-08-19RHSA-2026:57010
Red Hat Hardened Imagespython3-11-main-3.11.16-1.hum1Fixed 2026-08-20RHSA-2026:57660
Red Hat Hardened Imagespython3-12-main-3.12.14-1.hum1Fixed 2026-08-21RHSA-2026:58420
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Fix deferred
Red Hat Enterprise Linux 10python3.12Fix deferred
Red Hat Enterprise Linux 6pythonFix deferred
Red Hat Enterprise Linux 7pythonFix deferred
Red Hat Enterprise Linux 8python3Fix deferred
Red Hat Enterprise Linux 8python3.12Fix deferred
Red Hat Enterprise Linux 8python36Fix deferred
Red Hat Enterprise Linux 9python3.9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Fix deferred
Red Hat Enterprise Linux command line assistantrhel-cla/rhel-knowledge-bridge-rhel10Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9Fix deferred
Red Hat OpenShift Dev Spacesdevspaces/code-rhel9Fix deferred
Red Hat OpenShift Virtualization 4container-native-virtualization/ocp-virt-validation-checkup-rhel9Fix deferred
Self-service automation portal 2ansible-automation-platform/bootc-automation-portal-rhel9Fix deferred

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-2026-18503.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-295-11Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP2026-10-13Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.7, SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.7, SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.7 and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON