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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Python Software Foundation CPython
Default version status: unaffected
0 to < 3.10.21affected3.11.0 to < 3.11.16affected3.12.0 to < 3.12.14affected3.13.0 to < 3.13.15affected3.14.0 to < 3.14.7affected3.15.0a1 to < 3.15.0rc1affected3.16.0a1 to < 3.16.0affected
References
- https://mail.python.org/archives/list/security-announce@python.org/thread/KQ7NBMCPAZJHRROQXJQE4GMXGLD5KHBS/ ↗
- https://github.com/python/cpython/pull/153694 ↗
- https://github.com/python/cpython/issues/98820 ↗
- 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 ↗