# CVE-2024-7592: Quadratic complexity parsing cookies with backslashes

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.30%, higher than 83% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-08-19T19:06:45.311Z
- Modified: 2026-09-08T08:48:18.938Z
- Also known as: PSF-2024-9, BIT-LIBPYTHON-2024-7592, BIT-PYTHON-2024-7592, BIT-PYTHON-MIN-2024-7592
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: PSF

## Description

There is a LOW severity vulnerability affecting CPython, specifically the
'http.cookies' standard library module.


When parsing cookies that contained backslashes for quoted characters in
the cookie value, the parser would use an algorithm with quadratic
complexity, resulting in excess CPU resources being used while parsing the
value.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.6; from 3.13.0a1 before 3.13.0rc2
- python cpython: before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.6; from 3.13.0a1 before 3.13.0rc2
- https://github.com/python/cpython: before 391e5626e3ee5af267b97e37abc7475732e67621; before dcc3eaef98cd94d6cb6cb0f44bd1c903d04f33b1; before a77ab24427a18bff817025adb03ca920dc3f1a06; before b2f11ca7667e4d57c71c1c88b255115f16042d9a; before d4ac921a4b081f7f996a5d2b101684b67ba0ed7f; before d662e2db2605515a767f88ad48096b8ac623c774; before 44e458357fca05ca0ae2658d62c8c595b048b5ef
- python python: before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.6; 3.13.0
- libpython (Bitnami): before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.6
- python (Bitnami): before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.6
- python-min (Bitnami): before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.6

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python/cpython/issues/123067> (exploit, fix, issue-tracking, patch, report)
- <https://github.com/python/cpython/pull/123075> (fix, issue-tracking, patch, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/HXJAAAALNUNGCQUS2W7WR6GFIZIHFOOK/> (advisory, discussion, mailing-list, vendor-advisory)
- <https://github.com/python/cpython/commit/391e5626e3ee5af267b97e37abc7475732e67621> (fix, patch)
- <https://github.com/python/cpython/commit/dcc3eaef98cd94d6cb6cb0f44bd1c903d04f33b1> (fix, patch)
- <https://github.com/python/cpython/commit/a77ab24427a18bff817025adb03ca920dc3f1a06> (fix, patch)
- <https://github.com/python/cpython/commit/b2f11ca7667e4d57c71c1c88b255115f16042d9a> (fix, patch)
- <https://github.com/python/cpython/commit/d4ac921a4b081f7f996a5d2b101684b67ba0ed7f> (fix, patch)
- <https://github.com/python/cpython/commit/d662e2db2605515a767f88ad48096b8ac623c774> (fix, patch)
- <https://github.com/python/cpython/commit/44e458357fca05ca0ae2658d62c8c595b048b5ef> (fix, patch)
- <https://security.netapp.com/advisory/ntap-20241018-0006/> (advisory, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-7592> (web)

## Sources

- CVE List: [CVE-2024-7592](https://www.cve.org/CVERecord?id=CVE-2024-7592), CVE Terms of Use, modified 2025-11-03
- Python Software Foundation: [PSF-2024-9](https://osv.dev/vulnerability/PSF-2024-9), CC-BY-4.0, modified 2025-10-09
- NVD: [CVE-2024-7592](https://nvd.nist.gov/vuln/detail/CVE-2024-7592), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2024-7592](https://osv.dev/vulnerability/BIT-LIBPYTHON-2024-7592), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-2024-7592](https://osv.dev/vulnerability/BIT-PYTHON-2024-7592), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2024-7592](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2024-7592), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-7592 · Whole record: https://cve.day/CVE-2024-7592.json · Rebuilt by cve.day 2026-11-25T22:58:44.547Z
