]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] 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:40:38 +0000 (17:40 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 15:40:38 +0000 (17:40 +0200)
commita77ab24427a18bff817025adb03ca920dc3f1a06
tree81dd30e41b36ecbc7a8322c2b6e2d632e13e3a29
parentb158a76ce094897c870fb6b3de62887b7ccc33f1
[3.8] gh-123067: Fix quadratic complexity in parsing "-quoted cookie values with backslashes (GH-123075) (#123108)

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]