CVE-2026-18503

Super-linear CPU usage for unbounded input to csv.Sniffer.sniff()

Published Aug 10, 2026 CVSS 4.0 · 2.4 Low EPSS < 1% KEV · Not listed
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().

Analysis

AI-generated

Technical impact

The vulnerability resides in CPython’s csv.Sniffer.sniff() routine, which uses regular expressions to infer the dialect of CSV data. When supplied with attacker‑controlled, unbounded input, the regex engine can perform super‑linear work that consumes significant CPU cycles. This can lead to a denial‑of‑service condition for applications that parse large or malicious CSV files, causing performance degradation or unavailability for legitimate users.

Affected Systems

The issue affects the Python Software Foundation CPython implementation. No specific version range is listed, so any release that still uses the unpatched csv.Sniffer implementation may be vulnerable.

Risk and Exploitability

The CVSS score is 2.4, indicating a low overall severity, while the EPSS score is < 1%, indicating a very low exploitation probability, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector involves passing large, malicious CSV data to an application that calls csv.Sniffer.sniff() without bounds, such as through file uploads, network streams, or local IPC, which can trigger the CPU‑intensive regex processing. Although the exploitation probability is low, the high CPU footprint makes the flaw a viable denial‑of‑service vector.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest CPython release in which the csv.Sniffer.sniff super‑linear issue is fixed.
  • Validate and impose a reasonable size limit on CSV input before calling csv.Sniffer.sniff(), ensuring the data is bounded by a value appropriate for the application’s context.
  • Apply system‑level resource constraints (e.g., cgroups or CPU quotas) to services that process untrusted CSV input to prevent a single instance from exhausting CPU resources.

Generated by OpenCVE AI on August 22, 2026 at 11:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4827-1 python3.11 security update
History
Type Values Removed Values Added
Weaknesses CWE-1333
References
Metrics threat_severity

None

cvssV3_1

{'score': 2.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L'}

threat_severity

Low

Type Values Removed Values Added
First Time appeared Python
Python cpython
Vendors & Products Python
Python cpython
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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().
Title Super-linear CPU usage for unbounded input to csv.Sniffer.sniff()
Weaknesses CWE-1176
References
Metrics cvssV4_0

{'score': 2.4, 'vector': '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'}

Weaknesses
  • CWE-1176

    Inefficient CPU Computation

  • CWE-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
PSF
Published
Updated
Nov 10, 2026, 12:40 PM
Reserved
Jul 31, 2026, 4:35 PM
Status
Awaiting Analysis
Published
Aug 10, 2026, 2:17 PM
Modified
Nov 10, 2026, 1:18 PM
Severity
Low
Public date
Aug 10, 2026, 1:45 PM