BIT-python-min-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 significant CPU consumption during dialect detection.
What must an attacker do to trigger the issue?
An attacker needs to provide a CSV sample crafted to cause super-linear regular-expression processing and have the application submit that sample to csv.Sniffer.sniff(). The vector is local and requires low privileges and user interaction according to the supplied severity data.
What can be done if patching is not immediately possible?
Avoid passing unbounded attacker-controlled input to csv.Sniffer.sniff(). Limit the size of CSV samples before dialect sniffing to reduce the CPU work an attacker can induce.