{"id":"CVE-2026-18503","state":"PUBLISHED","title":"Super-linear CPU usage for unbounded input to csv.Sniffer.sniff()","description":"Attacker-controlled CSV samples can trigger super-linear \nregular-expression work during dialect sniffing and consume significant \nCPU when applications pass unbounded input to csv.Sniffer.sniff().","publishedAt":"2026-08-10T13:45:31.618Z","updatedAt":"2026-10-14T00:34:46.583Z","severity":{"score":2.4,"label":"Low","version":"4.0","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","source":"PSF"},"assigner":"PSF","products":["Python Software Foundation CPython"],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.10.21","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.16","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.14","versionType":"python"},{"version":"3.13.0","status":"affected","lessThan":"3.13.15","versionType":"python"},{"version":"3.14.0","status":"affected","lessThan":"3.14.7","versionType":"python"},{"version":"3.15.0a1","status":"affected","lessThan":"3.15.0rc1","versionType":"python"},{"version":"3.16.0a1","status":"affected","lessThan":"3.16.0","versionType":"python"}],"modules":["csv"],"repo":"https://github.com/python/cpython"}],"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"],"weaknesses":["CWE-1176"],"ingestedAt":"2026-10-29T20:11:10.572Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/18xxx/CVE-2026-18503.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-18503","state":"PUBLISHED","datePublished":"2026-08-10T13:45:31.618Z","dateUpdated":"2026-10-14T00:34:46.583Z","assignerShortName":"PSF","assignerOrgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateReserved":"2026-07-31T16:35:42.902Z"},"containers":{"cna":{"title":"Super-linear CPU usage for unbounded input to csv.Sniffer.sniff()","descriptions":[{"lang":"en","value":"Attacker-controlled CSV samples can trigger super-linear \nregular-expression work during dialect sniffing and consume significant \nCPU when applications pass unbounded input to csv.Sniffer.sniff()."}],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.10.21","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.16","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.14","versionType":"python"},{"version":"3.13.0","status":"affected","lessThan":"3.13.15","versionType":"python"},{"version":"3.14.0","status":"affected","lessThan":"3.14.7","versionType":"python"},{"version":"3.15.0a1","status":"affected","lessThan":"3.15.0rc1","versionType":"python"},{"version":"3.16.0a1","status":"affected","lessThan":"3.16.0","versionType":"python"}],"modules":["csv"],"repo":"https://github.com/python/cpython"}],"references":[{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/KQ7NBMCPAZJHRROQXJQE4GMXGLD5KHBS/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/pull/153694","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/98820","tags":["issue-tracking"]},{"url":"https://github.com/python/cpython/commit/063d4555c94ef412c731527dbf30193327f2ee82","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/476fb09cdb0d73e645849d98c610e7e5697ce7c9","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/89f29c760c02774b099ddd6863268eb13fa3946a","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/b30c7fa9edd921a118f286e9f90f560777fa693b","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/b09a67a20c464f8288c9f9a6b9c7082a74560024","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/fd78b565d7c326f96ae903ab945b47f35d829cf4","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":2.4,"baseSeverity":"LOW","exploitMaturity":"NOT_DEFINED","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1176","description":"CWE-1176","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"PSF","orgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateUpdated":"2026-10-14T00:34:46.583Z"},"credits":[{"lang":"en","type":"remediation developer","value":"Serhiy Storchaka (https://github.com/serhiy-storchaka)"},{"lang":"en","type":"reporter","value":"Jack Desert (https://github.com/jackdesert)"},{"lang":"en","type":"reporter","value":"Sean Gilligan (https://github.com/sg3-141-592)"},{"lang":"en","type":"coordinator","value":"Seth Larson (https://github.com/sethmlarson)"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-10T17:56:17.853221Z","id":"CVE-2026-18503","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-10T17:56:28.336Z"}}]}}}