BIT-python-2026-18503: Super-linear CPU usage for unbounded input to csv.Sniffer.sniff()
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 Software
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications are exposed when they pass attacker-controlled, unbounded CSV samples to csv.Sniffer.sniff(). The impact is CPU consumption from super-linear regular-expression processing during dialect detection.
What must an attacker do to trigger the problem?
An attacker needs to supply a CSV sample that is processed by csv.Sniffer.sniff(). Exploitation depends on the application accepting attacker-controlled input without bounding the sample size.
What can be done if patching is not immediately possible?
Avoid passing unbounded input to csv.Sniffer.sniff(). Limit the size of CSV samples before dialect sniffing, particularly for data received from untrusted sources.