CVE-2026-18503
Super-linear CPU usage for unbounded input to csv.Sniffer.sniff()
Mitigation
- Upgrade CPython to 3.16.0 or later.
Who should check
- Anyone running Python Software Foundation CPython < 3.10.21; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.15; >= 3.14.0, < 3.14.7; >= 3.15.0a1, < 3.15.0rc1; >= 3.16.0a1, < 3.16.0
Vulnerability facts
- Affected
- Python Software Foundation CPython < 3.10.21; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.15; >= 3.14.0, < 3.14.7; >= 3.15.0a1, < 3.15.0rc1; >= 3.16.0a1, < 3.16.0
- Fixed in
- Python Software Foundation CPython 3.10.21, Python Software Foundation CPython 3.11.16, Python Software Foundation CPython 3.12.14, Python Software Foundation CPython 3.13.15, Python Software Foundation CPython 3.14.7, Python Software Foundation CPython 3.15.0rc1, Python Software Foundation CPython 3.16.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 2.4 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: None
- Privileges required: Low
- User interaction: Passive
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.17% chance of exploitation in 30 days (percentile 4, 2026-11-26)
- CWE
- CWE-1176
- Modified
Description
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().
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Python Software Foundation CPython | < 3.10.21; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.15; >= 3.14.0, < 3.14.7; >= 3.15.0a1, < 3.15.0rc1; >= 3.16.0a1, < 3.16.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-18503. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-18503.md Affected: Python Software Foundation CPython < 3.10.21; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.15; >= 3.14.0, < 3.14.7; >= 3.15.0a1, < 3.15.0rc1; >= 3.16.0a1, < 3.16.0 Fixed in: Python Software Foundation CPython 3.10.21, Python Software Foundation CPython 3.11.16, Python Software Foundation CPython 3.12.14, Python Software Foundation CPython 3.13.15, Python Software Foundation CPython 3.14.7, Python Software Foundation CPython 3.15.0rc1, Python Software Foundation CPython… Steps: 1. Search this machine and project for Python Software Foundation CPython: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/python/cpython/pull/153694
- https://github.com/python/cpython/commit/063d4555c94ef412c731527dbf30193327f2ee82
- https://github.com/python/cpython/commit/476fb09cdb0d73e645849d98c610e7e5697ce7c9
- https://github.com/python/cpython/commit/89f29c760c02774b099ddd6863268eb13fa3946a
- https://github.com/python/cpython/commit/b30c7fa9edd921a118f286e9f90f560777fa693b
- https://github.com/python/cpython/commit/b09a67a20c464f8288c9f9a6b9c7082a74560024
- https://github.com/python/cpython/commit/fd78b565d7c326f96ae903ab945b47f35d829cf4
FAQ
Is CVE-2026-18503 being exploited?
There is no confirmed exploitation: CVE-2026-18503 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-18503?
Low: CVSS 2.4 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-18503?
Python Software Foundation CPython < 3.10.21; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.15; >= 3.14.0, < 3.14.7; >= 3.15.0a1, < 3.15.0rc1; >= 3.16.0a1, < 3.16.0.
Is there a fix for CVE-2026-18503?
Yes. Fixed in Python Software Foundation CPython 3.10.21, Python Software Foundation CPython 3.11.16, Python Software Foundation CPython 3.12.14, Python Software Foundation CPython 3.13.15, Python Software Foundation CPython 3.14.7, Python Software Foundation CPython 3.15.0rc1, Python Software Foundation CPython 3.16.0. Upgrade CPython to 3.16.0 or later.
How do I check if I'm affected by CVE-2026-18503?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.