Skip to content

fix(cve): CVE-2026-40192 - Pillow#2139

Merged
atheo89 merged 1 commit intored-hat-data-services:rhoai-3.3from
crackcodecamp:fix/cve-2026-40192-pillow-rhoai-3.3-attempt-1
Apr 30, 2026
Merged

fix(cve): CVE-2026-40192 - Pillow#2139
atheo89 merged 1 commit intored-hat-data-services:rhoai-3.3from
crackcodecamp:fix/cve-2026-40192-pillow-rhoai-3.3-attempt-1

Conversation

@crackcodecamp
Copy link
Copy Markdown

@crackcodecamp crackcodecamp commented Apr 20, 2026

  • Update Pillow from 12.1.0/11.3.0 to 12.2.0 across all images
  • Update llmcompressor meta-deps pin from 11.3.0 to 12.2.0
  • Addresses FITS GZIP decompression bomb vulnerability (CVSS 8.7 High)
  • Pillow 12.2.0 limits data read during FITS image decoding

Resolves: RHOAIENG-58615, RHOAIENG-58614, RHOAIENG-58613, RHOAIENG-58612
Resolves: RHOAIENG-58610, RHOAIENG-58609, RHOAIENG-58608, RHOAIENG-58607
Resolves: RHOAIENG-58601, RHOAIENG-58600, RHOAIENG-58599, RHOAIENG-58598
Resolves: RHOAIENG-58597, RHOAIENG-58596

Summary by CodeRabbit

  • Chores
    • Updated pillow package to version 12.2.0 across multiple environment configurations and development runtimes to ensure consistency and compatibility.

@github-actions
Copy link
Copy Markdown

@crackcodecamp — This PR is from a fork.
The build-rhoai CI job was skipped because subscription
builds (RHEL, AIPCC) need secrets unavailable to forks.
ODH builds and code quality checks still ran.

Recommended: Push your branch to the main repo for full CI:

git remote add upstream https://github.com/red-hat-data-services/notebooks.git
git push upstream HEAD:crackcodecamp/your-branch-name

Then open a new PR from that branch.

No push access? A maintainer will cherry-pick and test your changes.

See CONTRIBUTING.md for details.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 20, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 6bc8130f-a502-42bb-8cad-f1e30fa99eeb

📥 Commits

Reviewing files that changed from the base of the PR and between 9811375 and 0a406f0.

📒 Files selected for processing (15)
  • codeserver/ubi9-python-3.12/pylock.toml
  • dependencies/odh-notebooks-meta-llmcompressor-deps/pyproject.toml
  • jupyter/datascience/ubi9-python-3.12/pylock.toml
  • jupyter/pytorch+llmcompressor/ubi9-python-3.12/pylock.toml
  • jupyter/pytorch/ubi9-python-3.12/pylock.toml
  • jupyter/rocm/pytorch/ubi9-python-3.12/pylock.toml
  • jupyter/rocm/tensorflow/ubi9-python-3.12/pylock.toml
  • jupyter/tensorflow/ubi9-python-3.12/pylock.toml
  • jupyter/trustyai/ubi9-python-3.12/pylock.toml
  • runtimes/datascience/ubi9-python-3.12/pylock.toml
  • runtimes/pytorch+llmcompressor/ubi9-python-3.12/pylock.toml
  • runtimes/pytorch/ubi9-python-3.12/pylock.toml
  • runtimes/rocm-pytorch/ubi9-python-3.12/pylock.toml
  • runtimes/rocm-tensorflow/ubi9-python-3.12/pylock.toml
  • runtimes/tensorflow/ubi9-python-3.12/pylock.toml
✅ Files skipped from review due to trivial changes (6)
  • dependencies/odh-notebooks-meta-llmcompressor-deps/pyproject.toml
  • runtimes/rocm-pytorch/ubi9-python-3.12/pylock.toml
  • runtimes/pytorch+llmcompressor/ubi9-python-3.12/pylock.toml
  • jupyter/pytorch/ubi9-python-3.12/pylock.toml
  • jupyter/tensorflow/ubi9-python-3.12/pylock.toml
  • jupyter/pytorch+llmcompressor/ubi9-python-3.12/pylock.toml
🚧 Files skipped from review as they are similar to previous changes (4)
  • codeserver/ubi9-python-3.12/pylock.toml
  • jupyter/trustyai/ubi9-python-3.12/pylock.toml
  • jupyter/datascience/ubi9-python-3.12/pylock.toml
  • jupyter/rocm/pytorch/ubi9-python-3.12/pylock.toml

📝 Walkthrough

Walkthrough

Updated Pillow dependency to 12.2.0 across multiple pylock.toml and one pyproject.toml files; sdist URLs, upload timestamps, sizes, and SHA256 hashes were replaced and wheel artifact lists regenerated to reference Pillow 12.2.0.

Changes

Cohort / File(s) Summary
Pillow 12.1.0 → 12.2.0 (pylock.toml)
codeserver/ubi9-python-3.12/pylock.toml, jupyter/datascience/ubi9-python-3.12/pylock.toml, jupyter/pytorch/ubi9-python-3.12/pylock.toml, jupyter/rocm/pytorch/ubi9-python-3.12/pylock.toml, jupyter/rocm/tensorflow/ubi9-python-3.12/pylock.toml, jupyter/tensorflow/ubi9-python-3.12/pylock.toml, jupyter/trustyai/ubi9-python-3.12/pylock.toml, runtimes/datascience/ubi9-python-3.12/pylock.toml, runtimes/pytorch/ubi9-python-3.12/pylock.toml, runtimes/rocm-pytorch/ubi9-python-3.12/pylock.toml, runtimes/rocm-tensorflow/ubi9-python-3.12/pylock.toml, runtimes/tensorflow/ubi9-python-3.12/pylock.toml
Bumped Pillow 12.1.0 → 12.2.0; updated sdist download URL/upload-time/size/sha256 and regenerated wheel entries (platform-specific URLs, upload-times, sizes, sha256) under the same marker contexts.
Pillow 11.3.0 → 12.2.0
dependencies/odh-notebooks-meta-llmcompressor-deps/pyproject.toml, jupyter/pytorch+llmcompressor/ubi9-python-3.12/pylock.toml, runtimes/pytorch+llmcompressor/ubi9-python-3.12/pylock.toml
Pinned Pillow moved from 11.3.0 → 12.2.0; updated pyproject/pylock dependency entries and regenerated sdist/wheel metadata accordingly.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • ysok
  • dibryant
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The PR description clearly explains the changes, vulnerability details, and resolved issues, but does not include testing information or self-checklist items required by the template. Add 'How Has This Been Tested?' section with testing details and complete the self-checklist items to fully comply with the repository template.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix(cve): CVE-2026-40192 - Pillow' clearly and specifically summarizes the primary change: addressing a CVE vulnerability by updating the Pillow package.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@jupyter/rocm/tensorflow/ubi9-python-3.12/pylock.toml`:
- Line 2962: The pinned Pillow entry currently shows version = "12.2.0", which
is vulnerable; update the Pillow dependency in the pylock.toml from 12.2.0 to at
least 12.2.1 (e.g., set the version value to "12.2.1" or higher), then
re-generate/lock dependencies so the lockfile reflects the new safe version;
also scan for any other occurrences of the Pillow version string in this file or
related lockfiles and update them to the same minimum (>=12.2.1).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: bb194428-ee51-4854-8a0c-08429dfadcd7

📥 Commits

Reviewing files that changed from the base of the PR and between 2d2b4b9 and 9811375.

📒 Files selected for processing (15)
  • codeserver/ubi9-python-3.12/pylock.toml
  • dependencies/odh-notebooks-meta-llmcompressor-deps/pyproject.toml
  • jupyter/datascience/ubi9-python-3.12/pylock.toml
  • jupyter/pytorch+llmcompressor/ubi9-python-3.12/pylock.toml
  • jupyter/pytorch/ubi9-python-3.12/pylock.toml
  • jupyter/rocm/pytorch/ubi9-python-3.12/pylock.toml
  • jupyter/rocm/tensorflow/ubi9-python-3.12/pylock.toml
  • jupyter/tensorflow/ubi9-python-3.12/pylock.toml
  • jupyter/trustyai/ubi9-python-3.12/pylock.toml
  • runtimes/datascience/ubi9-python-3.12/pylock.toml
  • runtimes/pytorch+llmcompressor/ubi9-python-3.12/pylock.toml
  • runtimes/pytorch/ubi9-python-3.12/pylock.toml
  • runtimes/rocm-pytorch/ubi9-python-3.12/pylock.toml
  • runtimes/rocm-tensorflow/ubi9-python-3.12/pylock.toml
  • runtimes/tensorflow/ubi9-python-3.12/pylock.toml

Comment thread jupyter/rocm/tensorflow/ubi9-python-3.12/pylock.toml
@ambient-code ambient-code Bot deleted the fix/cve-2026-40192-pillow-rhoai-3.3-attempt-1 branch April 20, 2026 05:04
@crackcodecamp crackcodecamp requested a review from jiridanek April 20, 2026 05:21
@crackcodecamp
Copy link
Copy Markdown
Author

Hello @jiridanek @dibryant, whenever you will get some time please help review this PR, Thanks!

@jiridanek
Copy link
Copy Markdown
Member

/unassign jiridanek

Out of office this week

@jiridanek jiridanek removed their request for review April 21, 2026 05:09
@san7ket
Copy link
Copy Markdown

san7ket commented Apr 21, 2026

/build-konflux

@crackcodecamp
Copy link
Copy Markdown
Author

/retest

- Update Pillow from 12.1.0/11.3.0 to 12.2.0 across all images
- Update llmcompressor meta-deps pin from 11.3.0 to 12.2.0
- Addresses FITS GZIP decompression bomb vulnerability (CVSS 8.7 High)
- Pillow 12.2.0 limits data read during FITS image decoding

Resolves: RHOAIENG-58615, RHOAIENG-58614, RHOAIENG-58613, RHOAIENG-58612
Resolves: RHOAIENG-58610, RHOAIENG-58609, RHOAIENG-58608, RHOAIENG-58607
Resolves: RHOAIENG-58601, RHOAIENG-58600, RHOAIENG-58599, RHOAIENG-58598
Resolves: RHOAIENG-58597, RHOAIENG-58596
@crackcodecamp
Copy link
Copy Markdown
Author

Hello @jiridanek @dibryant @atheo89 , whenever you will get some time please help review this PR, Thanks!

@atheo89
Copy link
Copy Markdown
Member

atheo89 commented Apr 30, 2026

/lgtm

@crackcodecamp
Copy link
Copy Markdown
Author

@atheo89 Could you please help merge this PR?

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 30, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: atheo89

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@atheo89 atheo89 merged commit 4c02c94 into red-hat-data-services:rhoai-3.3 Apr 30, 2026
15 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants