Skip to content

fix(deps): update dependency pillow to v12 [security]#213

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-pillow-vulnerability
Open

fix(deps): update dependency pillow to v12 [security]#213
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-pillow-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Mar 26, 2025

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
pillow (changelog) ==9.5.*==12.2.* age confidence

libwebp: OOB write in BuildHuffmanTable

CVE-2023-4863 / GHSA-j7hp-h8jx-5ppr

More information

Details

Heap buffer overflow in libwebp allow a remote attacker to perform an out of bounds memory write via a crafted HTML page.

Severity

  • CVSS Score: 8.8 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Pillow Denial of Service vulnerability

CVE-2023-44271 / GHSA-8ghj-p4vj-mr35

More information

Details

An issue was discovered in Pillow before 10.0.0. It is a Denial of Service that uncontrollably allocates memory to process a given task, potentially causing a service to crash by having it run out of memory. This occurs for truetype in ImageFont when textlength in an ImageDraw instance operates on a long text argument.

Severity

  • CVSS Score: 8.7 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Arbitrary Code Execution in Pillow

CVE-2023-50447 / GHSA-3f63-hfp8-52jq

More information

Details

Pillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different vulnerability than CVE-2022-22817 (which was about the expression parameter).

Severity

  • CVSS Score: 9.3 / 10 (Critical)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Pillow buffer overflow vulnerability

CVE-2024-28219 / GHSA-44wm-f244-xhp3

More information

Details

In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.

Severity

  • CVSS Score: 7.3 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Pillow has an integer overflow when processing fonts

CVE-2026-42308 / GHSA-wjx4-4jcj-g98j

More information

Details

If a font advances for each glyph by an exceeding large amount, when Pillow keeps track of the current position, it may lead to an integer overflow. This has been fixed.

Severity

  • CVSS Score: 5.1 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Pillow has a PDF Parsing Trailer Infinite Loop (DoS)

CVE-2026-42310 / GHSA-r73j-pqj5-w3x7

More information

Details

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

Severity

  • CVSS Score: 5.1 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

python-pillow/Pillow (pillow)

v12.2.0

Compare Source

https://pillow.readthedocs.io/en/stable/releasenotes/12.2.0.html

Documentation

Dependencies

Testing

Other changes

v12.1.1

Compare Source

v12.1.0

Compare Source

https://pillow.readthedocs.io/en/stable/releasenotes/12.1.0.html

Deprecations
Documentation
Dependencies
Testing
Type hints
Other changes

v12.0.0

Compare Source

https://pillow.readthedocs.io/en/stable/releasenotes/12.0.0.html

Removals

Deprecations

Documentation

Dependencies

Testing

Note

PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@sourcery-ai

sourcery-ai Bot commented Mar 26, 2025

Copy link
Copy Markdown

Reviewer's Guide by Sourcery

This pull request updates the pillow dependency to the latest version (10.3.*) to address several security vulnerabilities, including potential heap buffer overflows and arbitrary code execution issues. The changes involve updating the dependency version in pyproject.toml and the corresponding lock file.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
The pull request updates the pillow dependency to version 10.3.* to address multiple security vulnerabilities.
  • Updates the pillow dependency from ==9.5.* to ==10.3.* in pyproject.toml.
  • Updates the uv.lock file to reflect the new pillow version.
pyproject.toml
uv.lock

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!

@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch from 1fc37de to 18f53c6 Compare April 8, 2025 13:13
@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch from 18f53c6 to ea516a6 Compare July 21, 2025 19:28
@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch from ea516a6 to 4150838 Compare August 10, 2025 13:14
@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch from 4150838 to 16aa234 Compare August 19, 2025 12:47
@renovate renovate Bot changed the title fix(deps): update dependency pillow to v10 [security] chore(deps): update dependency pillow to v11 [security] Aug 19, 2025
@renovate renovate Bot changed the title chore(deps): update dependency pillow to v11 [security] chore(deps): update dependency pillow to v10 [security] Aug 19, 2025
@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch 2 times, most recently from 4d856dd to 35349da Compare August 24, 2025 10:39
@renovate renovate Bot changed the title chore(deps): update dependency pillow to v10 [security] fix(deps): update dependency pillow to v10 [security] Aug 24, 2025
@renovate renovate Bot changed the title fix(deps): update dependency pillow to v10 [security] fix(deps): update dependency pillow to v12 [security] Feb 21, 2026
@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch 2 times, most recently from bcc709a to 038a792 Compare February 21, 2026 05:55
@renovate renovate Bot changed the title fix(deps): update dependency pillow to v12 [security] fix(deps): update dependency pillow to v10 [security] Feb 21, 2026
@renovate renovate Bot changed the title fix(deps): update dependency pillow to v10 [security] fix(deps): update dependency pillow to v10 [security] - autoclosed Mar 27, 2026
@renovate renovate Bot closed this Mar 27, 2026
@renovate renovate Bot deleted the renovate/pypi-pillow-vulnerability branch March 27, 2026 00:55
@renovate renovate Bot changed the title fix(deps): update dependency pillow to v10 [security] - autoclosed fix(deps): update dependency pillow to v10 [security] Mar 30, 2026
@renovate renovate Bot reopened this Mar 30, 2026
@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch 2 times, most recently from 038a792 to cb8dc36 Compare March 30, 2026 22:10
@renovate renovate Bot changed the title fix(deps): update dependency pillow to v10 [security] fix(deps): update dependency pillow to v12 [security] Apr 21, 2026
@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch from cb8dc36 to 8773c56 Compare April 21, 2026 23:15
@renovate renovate Bot changed the title fix(deps): update dependency pillow to v12 [security] fix(deps): update dependency pillow to v10 [security] Apr 22, 2026
@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch from 8773c56 to cdba824 Compare April 22, 2026 01:20
@renovate renovate Bot changed the title fix(deps): update dependency pillow to v10 [security] fix(deps): update dependency pillow to v12 [security] Apr 29, 2026
@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch 2 times, most recently from ece73df to 02335cb Compare April 30, 2026 05:11
@renovate renovate Bot changed the title fix(deps): update dependency pillow to v12 [security] fix(deps): update dependency pillow to v10 [security] Apr 30, 2026
@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch from 02335cb to dc0e953 Compare May 1, 2026 13:47
@renovate renovate Bot changed the title fix(deps): update dependency pillow to v10 [security] fix(deps): update dependency pillow to v12 [security] May 1, 2026
@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch from dc0e953 to 33f9516 Compare May 1, 2026 18:14
@renovate renovate Bot changed the title fix(deps): update dependency pillow to v12 [security] fix(deps): update dependency pillow to v10 [security] May 1, 2026
@renovate renovate Bot force-pushed the renovate/pypi-pillow-vulnerability branch from 33f9516 to 344019d Compare May 5, 2026 10:37
@renovate renovate Bot changed the title fix(deps): update dependency pillow to v10 [security] fix(deps): update dependency pillow to v12 [security] May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants