Skip to content

fix: bump pillow to 12.3.0 to resolve known vulnerabilities - #14

Open
pauliano22 wants to merge 1 commit into
mainfrom
fix/pillow-security-update
Open

fix: bump pillow to 12.3.0 to resolve known vulnerabilities#14
pauliano22 wants to merge 1 commit into
mainfrom
fix/pillow-security-update

Conversation

@pauliano22

Copy link
Copy Markdown
Owner

Summary

  • pillow 12.2.0 has several published advisories fixed in 12.3.0: decompression-bomb-check bypasses in the font/GD/PCF/BDF parsers, an EPS parser infinite-loop DoS, native heap out-of-bounds writes (coordinate handling, rank filter, TGA RLE encoder), a JPEG2000 tile-size integer issue, and a shell command injection in WindowsViewer.get_command().
  • Pillow is only used here as a transitive dependency of matplotlib for saving benchmark plots (results/*.png), so this is a low-risk patch bump.

Not included: torch 2.11.0 also has a known advisory (PYSEC-2025-194, fixed in 2.13.0). I didn't bump it because it's a two-minor-version jump that could affect compatibility with the pinned triton==3.6.0, and this environment has no GPU available to verify the CUDA kernels and benchmarks still run correctly afterward. Worth a manual bump + test on the H100 box when convenient.

Test plan

  • pip install pillow==12.3.0 installs cleanly
  • Verified matplotlib (3.10.8, which depends on pillow) still renders and saves a plot correctly with the new version
  • Could not run the actual GPU benchmarks/kernels in this environment (no GPU present)

🤖 Generated with Claude Code

https://claude.ai/code/session_01AENMp3aP1tD6sfEwmwH5bz


Generated by Claude Code

pillow 12.2.0 has multiple published advisories (decompression-bomb
bypasses in font/image parsers, an EPS parser infinite loop, native
heap out-of-bounds writes, and a shell command injection in
WindowsViewer), all fixed in 12.3.0. Verified the new version installs
cleanly and matplotlib (which depends on it for PNG output) still
renders and saves plots correctly.

torch 2.11.0 also has a known advisory (PYSEC-2025-194, fixed in
2.13.0), but bumping it isn't included here: it's a two-minor-version
jump that could affect torch/triton==3.6.0 compatibility, and this
environment has no GPU to verify the CUDA kernels/benchmarks still
run correctly afterward. Flagging it for a manual bump + GPU test.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AENMp3aP1tD6sfEwmwH5bz
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.

2 participants