[Security] Bump pillow from 10.0.1 to 10.3.0
Bumps pillow from 10.0.1 to 10.3.0. This update includes a security fix.
Vulnerabilities fixed
Pillow buffer overflow vulnerability In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.
Patched versions: 10.3.0 Affected versions: < 10.3.0
Release notes
Sourced from pillow's releases.
10.3.0
https://pillow.readthedocs.io/en/stable/releasenotes/10.3.0.html
Changes
- CVE-2024-28219: Use strncpy to avoid buffer overflow #7928 [
@hugovk
]- Use
functools.lru_cache
forhopper()
#7912 [@hugovk
]- Raise ValueError if seeking to greater than offset-sized integer in TIFF #7883 [
@radarhere
]- Improve speed of loading QOI images #7925 [
@radarhere
]- Added RGB to I;16N conversion #7920 [
@radarhere
]- Add --report argument to main.py to omit supported formats #7818 [
@nulano
]- Added RGB to I;16, I;16L and I;16B conversion #7918 [
@radarhere
]- Fix editable installation with custom build backend and configuration options #7658 [
@nulano
]- Fix putdata() for I;16N on big-endian #7209 [
@Yay295
]- Determine MPO size from markers, not EXIF data #7884 [
@radarhere
]- Improved conversion from RGB to RGBa, LA and La #7888 [
@radarhere
]- Support FITS images with GZIP_1 compression #7894 [
@radarhere
]- Use I;16 mode for 9-bit JPEG 2000 images #7900 [
@scaramallion
]- Raise ValueError if kmeans is negative #7891 [
@radarhere
]- Remove TIFF tag OSUBFILETYPE when saving using libtiff #7893 [
@radarhere
]- Raise ValueError for negative values when loading P1-P3 PPM images #7882 [
@radarhere
]- Added reading of JPEG2000 palettes #7870 [
@radarhere
]- Added alpha_quality argument when saving WebP images #7872 [
@radarhere
]- Fixed joined corners for ImageDraw rounded_rectangle() non-integer dimensions #7881 [
@radarhere
]- Removed Python and NumPy pinning on Cygwin #7880 [
@radarhere
]- Update UnidentifiedImageError and version imports #7644 [
@radarhere
]- Stop reading EPS image at EOF marker #7753 [
@radarhere
]- PSD layer co-ordinates may be negative #7706 [
@radarhere
]- Use subprocess with CREATE_NO_WINDOW flag in ImageShow WindowsViewer #7791 [
@radarhere
]- When saving GIF frame that restores to background color, do not fill identical pixels #7788 [
@radarhere
]- Fixed reading PNG iCCP compression method #7823 [
@radarhere
]- Allow writing IFDRational to UNDEFINED tag #7840 [
@radarhere
]- Fix logged tag name when loading Exif data #7842 [
@radarhere
]- Use maximum frame size in IHDR chunk when saving APNG images #7821 [
@radarhere
]- Prevent opening P TGA images without a palette #7797 [
@radarhere
]- Use palette when loading ICO images #7798 [
@radarhere
]- Use consistent arguments for load_read and load_seek #7713 [
@radarhere
]- Turn off nullability warnings for macOS SDK #7827 [
@radarhere
]- Fix shift-sign issue in Convert.c #7838 [
@r-barnes
]- winbuild: Refactor dependency versions into constants #7843 [
@hugovk
]- Build macOS arm64 wheels natively #7852 [
@radarhere
]- Fixed typo #7855 [
@radarhere
]- Open 16-bit grayscale PNGs as I;16 #7849 [
@radarhere
]- Handle truncated chunks at the end of PNG images #7709 [
@lajiyuan
]- Match mask size to pasted image size in GifImagePlugin #7779 [
@radarhere
]- Changed SupportsGetMesh protocol to be public #7841 [
@radarhere
]- Release GIL while calling
WebPAnimDecoderGetNext
#7782 [@evanmiller
]- Fixed reading FLI/FLC images with a prefix chunk #7804 [
@twolife
]- Updated package name for Tidelift #7810 [
@radarhere
]- Removed unused code #7744 [
@radarhere
]
... (truncated)
Changelog
Sourced from pillow's changelog.
10.3.0 (2024-04-01)
CVE-2024-28219: Use
strncpy
to avoid buffer overflow #7928 [radarhere, hugovk]Deprecate
eval()
, replacing it withlambda_eval()
andunsafe_eval()
#7927 [radarhere, hugovk]Raise
ValueError
if seeking to greater than offset-sized integer in TIFF #7883 [radarhere]Add
--report
argument to__main__.py
to omit supported formats #7818 [nulano, radarhere, hugovk]Added RGB to I;16, I;16L, I;16B and I;16N conversion #7918, #7920 [radarhere]
Fix editable installation with custom build backend and configuration options #7658 [nulano, radarhere]
Fix putdata() for I;16N on big-endian #7209 [Yay295, hugovk, radarhere]
Determine MPO size from markers, not EXIF data #7884 [radarhere]
Improved conversion from RGB to RGBa, LA and La #7888 [radarhere]
Support FITS images with GZIP_1 compression #7894 [radarhere]
Use I;16 mode for 9-bit JPEG 2000 images #7900 [scaramallion, radarhere]
Raise ValueError if kmeans is negative #7891 [radarhere]
Remove TIFF tag OSUBFILETYPE when saving using libtiff #7893 [radarhere]
Raise ValueError for negative values when loading P1-P3 PPM images #7882 [radarhere]
Added reading of JPEG2000 palettes #7870 [radarhere]
Added alpha_quality argument when saving WebP images #7872 [radarhere]
... (truncated)
Commits
-
5c89d88
10.3.0 version bump -
63cbfcf
Update CHANGES.rst [ci skip] -
2776126
Merge pull request #7928 from python-pillow/lcms -
aeb51cb
Merge branch 'main' into lcms -
5beb0b6
Update CHANGES.rst [ci skip] -
cac6ffa
Merge pull request #7927 from python-pillow/imagemath -
f5eeeac
Name as 'options' in lambda_eval and unsafe_eval, but '_dict' in deprecated eval -
facf3af
Added release notes -
2a93aba
Use strncpy to avoid buffer overflow -
a670597
Update CHANGES.rst [ci skip] - Additional commits viewable in compare view