Skip to content

[3.11] gh-119342: Fix a potential denial of service in plistlib (GH-119343)#142150

Open
serhiy-storchaka wants to merge 1 commit intopython:3.11from
serhiy-storchaka:backport-694922c-3.11
Open

[3.11] gh-119342: Fix a potential denial of service in plistlib (GH-119343)#142150
serhiy-storchaka wants to merge 1 commit intopython:3.11from
serhiy-storchaka:backport-694922c-3.11

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Dec 1, 2025

Reading a specially prepared small Plist file could cause OOM because file's read(n) preallocates a bytes object for reading the specified amount of data. Now plistlib reads large data by chunks, therefore the upper limit of consumed memory is proportional to the size of the input file. (cherry picked from commit 694922c)

…pythonGH-119343)

Reading a specially prepared small Plist file could cause OOM because file's
read(n) preallocates a bytes object for reading the specified amount of
data. Now plistlib reads large data by chunks, therefore the upper limit of
consumed memory is proportional to the size of the input file.
(cherry picked from commit 694922c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app bedevere-app bot added the type-security A security issue label Dec 1, 2025
vivian-rook pushed a commit to wolfi-dev/advisories that referenced this pull request Dec 11, 2025
github-merge-queue bot pushed a commit to wolfi-dev/advisories that referenced this pull request Dec 11, 2025
@swivelmargarita
Copy link

Hello, is it reasonable to think that this will be merged soon? I see that the PR for 3.12 is merged.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants