Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed payload can lead to infinite loops in zipfile.Path #122905

Closed
jaraco opened this issue Aug 11, 2024 · 1 comment · Fixed by #122906
Closed

Malformed payload can lead to infinite loops in zipfile.Path #122905

jaraco opened this issue Aug 11, 2024 · 1 comment · Fixed by #122906
Assignees
Labels
type-bug An unexpected behavior, bug, or error type-security A security issue

Comments

@jaraco
Copy link
Member

jaraco commented Aug 11, 2024

@jaraco jaraco self-assigned this Aug 11, 2024
@jaraco jaraco added type-bug An unexpected behavior, bug, or error type-security A security issue labels Aug 11, 2024
jaraco added a commit to jaraco/cpython that referenced this issue Aug 11, 2024
jaraco added a commit that referenced this issue Aug 11, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 11, 2024
Ported from zipp 3.19.1; ref jaraco/zippGH-119.
(cherry picked from commit 9cd0326)

Co-authored-by: Jason R. Coombs <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 11, 2024
Ported from zipp 3.19.1; ref jaraco/zippGH-119.
(cherry picked from commit 9cd0326)

Co-authored-by: Jason R. Coombs <[email protected]>
jaraco added a commit to jaraco/cpython that referenced this issue Aug 12, 2024
Ported from zipp 3.19.1; ref jaraco/zipp#119.

(cherry picked from commit 9cd0326)
jaraco added a commit to jaraco/cpython that referenced this issue Aug 12, 2024
)

Ported from zipp 3.19.1; ref jaraco/zippGH-119.
(cherry picked from commit 9cd0326)

Co-authored-by: Jason R. Coombs <[email protected]>
pablogsal pushed a commit that referenced this issue Aug 19, 2024
* gh-122905: Sanitize names in zipfile.Path. (#122906)

Ported from zipp 3.19.1; ref jaraco/zipp#119.

(cherry picked from commit 9cd0326)

* [3.11] gh-122905: Sanitize names in zipfile.Path. (GH-122906)

Ported from zipp 3.19.1; ref jaraco/zippGH-119.
(cherry picked from commit 9cd0326)

Co-authored-by: Jason R. Coombs <[email protected]>
jaraco added a commit to jaraco/cpython that referenced this issue Aug 19, 2024
…nGH-122906) (pythonGH-122925)

* pythongh-122905: Sanitize names in zipfile.Path. (pythonGH-122906)

Ported from zipp 3.19.1; ref jaraco/zippGH-119.

(cherry picked from commit 9cd0326)

* [3.11] pythongh-122905: Sanitize names in zipfile.Path. (pythonGH-122906)

Ported from zipp 3.19.1; ref jaraco/zippGH-119.
(cherry picked from commit 9cd0326)

(cherry picked from commit 795f259)

Co-authored-by: Jason R. Coombs <[email protected]>
jaraco added a commit to jaraco/cpython that referenced this issue Aug 19, 2024
…GH-122906) (pythonGH-122925)

* pythongh-122905: Sanitize names in zipfile.Path. (pythonGH-122906)

Ported from zipp 3.19.1; ref jaraco/zippGH-119.

(cherry picked from commit 9cd0326)

* [3.11] pythongh-122905: Sanitize names in zipfile.Path. (pythonGH-122906)

Ported from zipp 3.19.1; ref jaraco/zippGH-119.
(cherry picked from commit 9cd0326)

(cherry picked from commit 795f259)

Co-authored-by: Jason R. Coombs <[email protected]>
blhsing pushed a commit to blhsing/cpython that referenced this issue Aug 22, 2024
@obfusk
Copy link
Contributor

obfusk commented Aug 22, 2024

I provided some additional analysis here: https://www.openwall.com/lists/oss-security/2024/08/22/4
Edit: and here: https://www.openwall.com/lists/oss-security/2024/08/23/1

Also, the CVE and security announcement mistakenly say this affects methods of zipfile.ZipFile instead of zipfile.Path.

pablogsal pushed a commit that referenced this issue Aug 22, 2024
[3.10] [3.11] gh-122905: Sanitize names in zipfile.Path. (GH-122906) (GH-122925)

* gh-122905: Sanitize names in zipfile.Path. (GH-122906)

Ported from zipp 3.19.1; ref jaraco/zippGH-119.

(cherry picked from commit 9cd0326)

* [3.11] gh-122905: Sanitize names in zipfile.Path. (GH-122906)

Ported from zipp 3.19.1; ref jaraco/zippGH-119.
(cherry picked from commit 9cd0326)

(cherry picked from commit 795f259)
algitbot pushed a commit to alpinelinux/aports that referenced this issue Aug 23, 2024
algitbot pushed a commit to alpinelinux/aports that referenced this issue Aug 23, 2024
algitbot pushed a commit to alpinelinux/aports that referenced this issue Aug 23, 2024
stratakis pushed a commit to stratakis/cpython that referenced this issue Aug 23, 2024
stratakis pushed a commit to stratakis/cpython that referenced this issue Aug 23, 2024
bell-sw pushed a commit to bell-sw/alpaquita-aports that referenced this issue Aug 23, 2024
[ commit be30c12bfd365f7f008f53c6c1031560ef019bf1 ]

Add patch to fix CVE-2024-8088: Infinite loop when iterating over zip
archive entry names.

- python/cpython#122905
- https://mail.python.org/archives/list/[email protected]/thread/GNFCKVI4TCATKQLALJ5SN4L4CSPSMILU/
algitbot pushed a commit to alpinelinux/aports that referenced this issue Aug 27, 2024
algitbot pushed a commit to alpinelinux/aports that referenced this issue Aug 27, 2024
hroncok pushed a commit to fedora-python/cpython that referenced this issue Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error type-security A security issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants