# PSF-2019-14: Regular Expression Denial of Service in http.cookiejar

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-11-14T00:00:00.000Z
- Modified: 2025-10-09T01:02:32.615Z

## Description

The regex ``http.cookiejar.LOOSE_HTTP_DATE_RE`` is vulnerable to regular
expression denial of service ("REDoS"). ``LOOSE_HTTP_DATE_RE.match()`` is
called when using ``http.cookiejar.CookieJar`` to parse ``Set-Cookie``
headers returned by a HTTP server. Processing a response from a malicious
HTTP server can lead to extreme CPU usage and execution will be blocked
for a long time.

(As written by Python Software Foundation.)

## Affected

- https://github.com/python/cpython: before 0716056c49e9505041e30386dad9b2e788f67aaf; before 1b779bfb8593739b11cbb988ef82a883ec9d077e; before 55a6a16a46239a71b635584e532feb8b17ae7fdf; before a1e1be4c4969c7c20c8c958e5ab5279ae6a66a16; before cb6085138a845f8324adc011b65754acc2086cc0; before e6499033032d5b647e43a3b49da0c1c64b151743

## References

- <https://access.redhat.com/security/cve/CVE-2019-16935> (advisory)
- <https://bugs.python.org/issue38804> (report)

## Sources

- Python Software Foundation: [PSF-2019-14](https://osv.dev/vulnerability/PSF-2019-14), CC-BY-4.0, modified 2025-10-09

---

Page: https://cve.day/PSF-2019-14 · Whole record: https://cve.day/PSF-2019-14.json · Rebuilt by cve.day 2026-11-25T22:56:19.243Z
