Skip to content

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

Merged
pablogsal merged 1 commit intopython:3.10from
serhiy-storchaka:backport-694922c-3.10
Mar 2, 2026
Merged

[3.10] gh-119342: Fix a potential denial of service in plistlib (GH-119343)#142151
pablogsal merged 1 commit intopython:3.10from
serhiy-storchaka:backport-694922c-3.10

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
@Kanishk-Bansal
Copy link

Hey @serhiy-storchaka Do you have an estimated time for when this will be merged?

@nikhilgv
Copy link

Hello @serhiy-storchaka, we would appreciate an ETA on when this would be merged :)

@encukou
Copy link
Member

encukou commented Mar 2, 2026

Expected before the next 3.10 release, but that isn't scheduled yet.
This'll be a source-only release. You can apply the patch manually if you need it.

@pablogsal pablogsal merged commit 568342c into python:3.10 Mar 2, 2026
15 checks passed
@pablogsal
Copy link
Member

Expected before the next 3.10 release, but that isn't scheduled yet.
This'll be a source-only release. You can apply the patch manually if you need it.

I am planning a 3.10 and 3.11 security release soon.

Thank you everyone for your patience!

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

Labels

Projects

Development

Successfully merging this pull request may close these issues.

6 participants