Skip to content

Local audit: pillow — CVE-2026-42310#67

Closed
djimit wants to merge 1 commit into
mainfrom
auto-fix/promptfoo/dep-981-2026-05-14
Closed

Local audit: pillow — CVE-2026-42310#67
djimit wants to merge 1 commit into
mainfrom
auto-fix/promptfoo/dep-981-2026-05-14

Conversation

@djimit
Copy link
Copy Markdown
Owner

@djimit djimit commented May 14, 2026

pip-audit found vulnerability in pillow: ### Impact An attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive. ### Patches Patched version: 12.2.0. PdfParser (introduced in Pillow 4.2.0) follows Prev pointers in PDF trailers to read cross-reference sections. If a trailer's Prev pointer references an offset that has already been processed — either pointing to itself or forming a longer cycle — the parser enters an infinite loop. Pillow now tracks previously processed trailer offsets and raises an error if a cycle is detected. ### Workarounds Use any version but the affected versions: >= 4.2.0, < 12.2.0 ### Resources - Fix: python-pillow/Pillow#9519. Fix versions: ['12.2.0']

@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@djimit
Copy link
Copy Markdown
Owner Author

djimit commented May 14, 2026

Closing as part of bulk cleanup of automated PRs. Re-open if still needed.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

@djimit djimit closed this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant