{"id":"PSF-2019-14","aliases":["PSF-2019-14"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service in http.cookiejar","summary":"The regex ``http.cookiejar.LOOSE_HTTP_DATE_RE`` is vulnerable to regular\nexpression denial of service (\"REDoS\"). ``LOOSE_HTTP_DATE_RE.match()`` is\ncalled when using ``http.cookiejar.CookieJar`` to parse ``Set-Cookie``\nheaders returned by a HTTP server. Processing a response from a malicious\nHTTP server can lead to extreme CPU usage and execution will be blocked\nfor a long time.","summaryFormat":"markdown","summarySource":"psf","descriptions":[{"lang":"en","text":"The regex ``http.cookiejar.LOOSE_HTTP_DATE_RE`` is vulnerable to regular\nexpression denial of service (\"REDoS\"). ``LOOSE_HTTP_DATE_RE.match()`` is\ncalled when using ``http.cookiejar.CookieJar`` to parse ``Set-Cookie``\nheaders returned by a HTTP server. Processing a response from a malicious\nHTTP server can lead to extreme CPU usage and execution will be blocked\nfor a long time.","format":"markdown","source":"psf"}],"published":"2019-11-14T00:00:00.000Z","modified":"2025-10-09T01:02:32.615Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"0716056c49e9505041e30386dad9b2e788f67aaf"},{"type":"git","status":"affected","fixed":"1b779bfb8593739b11cbb988ef82a883ec9d077e"},{"type":"git","status":"affected","fixed":"55a6a16a46239a71b635584e532feb8b17ae7fdf"},{"type":"git","status":"affected","fixed":"a1e1be4c4969c7c20c8c958e5ab5279ae6a66a16"},{"type":"git","status":"affected","fixed":"cb6085138a845f8324adc011b65754acc2086cc0"},{"type":"git","status":"affected","fixed":"e6499033032d5b647e43a3b49da0c1c64b151743"}],"repo":"https://github.com/python/cpython","source":"psf"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2019-16935","tags":["advisory"],"sources":["psf"]},{"url":"https://bugs.python.org/issue38804","tags":["report"],"sources":["psf"]}],"credits":[],"sources":[{"source":"psf","name":"Python Software Foundation","id":"PSF-2019-14","url":"https://osv.dev/vulnerability/PSF-2019-14","licence":"CC-BY-4.0","modified":"2025-10-09T01:02:32.615Z"}],"updatedAt":"2026-11-25T22:56:19.243Z"}