]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] gh-123067: Fix quadratic complexity in parsing "-quoted cookie values with...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 4 Sep 2024 15:49:40 +0000 (17:49 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 15:49:40 +0000 (17:49 +0200)
commitd662e2db2605515a767f88ad48096b8ac623c774
tree8af9689e5bd2aba76b2c8f8b133e51d222e692b8
parent962055268ed4f2ca1d717bfc8b6385de50a23ab7
[3.9] gh-123067: Fix quadratic complexity in parsing "-quoted cookie values with backslashes (GH-123075) (#123107)

This fixes CVE-2024-7592.
(cherry picked from commit 44e458357fca05ca0ae2658d62c8c595b048b5ef)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/http/cookies.py
Lib/test/test_http_cookies.py
Misc/NEWS.d/next/Library/2024-08-16-19-13-21.gh-issue-123067.Nx9O4R.rst [new file with mode: 0644]