orchestra
orchestra copied to clipboard
[Security] Bump pillow from 7.0.0 to 8.1.1
Bumps pillow from 7.0.0 to 8.1.1. This update includes a security fix.
Vulnerabilities fixed
Sourced from The GitHub Security Advisory Database.
Uncontrolled Resource Consumption in pillow
Impact
Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for a BLP container, and thus an attempted memory allocation can be very large.
Patches
An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, the library can either allocate very large amounts of memory or take an extremely long period of time to process the image.
Workarounds
An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, the library can either allocate very large amounts of memory or take an extremely long period of time to process the image.
References
https://nvd.nist.gov/vuln/detail/CVE-2021-27921
For more information
If you have any questions or comments about this advisory:
- Open an issue in example link to repo
- Email us at example email address
Affected versions: < 8.1.1
Release notes
Sourced from pillow's releases.
8.1.1
https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
8.1.0
https://pillow.readthedocs.io/en/stable/releasenotes/8.1.0.html
Changes
- Fix TIFF OOB Write error #5175 [
@radarhere
]- Fix for Buffer Read Overrun in PCX Decoding #5174 [
@radarhere
]- Fix for SGI Decode buffer overrun #5173 [
@radarhere
]- Fix OOB Read when saving GIF of xsize=1 #5149 [
@wiredfool
]- Add support for PySide6 #5161 [
@hugovk
]- Moved QApplication into one test #5167 [
@radarhere
]- Use disposal settings from previous frame in APNG #5126 [
@radarhere
]- Revert "skip wheels on 3.10-dev due to wheel#354" #5163 [
@radarhere
]- Better _binary module use #5156 [
@radarhere
]- Added exception explaining that repr_png saves to PNG #5139 [
@radarhere
]- Use previous disposal method in GIF load_end #5125 [
@radarhere
]- Do not catch a ValueError only to raise another #5090 [
@radarhere
]- Allow putpalette to accept 1024 integers to include alpha values #5089 [
@radarhere
]- Fix OOB Read when writing TIFF with custom Metadata #5148 [
@wiredfool
]- Removed unused variable #5140 [
@radarhere
]- Fix dereferencing of potential null pointers #5111 [
@cgohlke
]- Fixed warnings assigning to "unsigned char *" from "char *" #5127 [
@radarhere
]- Add append_images support for ICO #4568 [
@ziplantil
]- Fixed comparison warnings #5122 [
@radarhere
]- Block TIFFTAG_SUBIFD #5120 [
@radarhere
]- Fix dereferencing potential null pointer #5108 [
@cgohlke
]- Replaced PyErr_NoMemory with ImagingError_MemoryError #5113 [
@radarhere
]- Remove duplicate code #5109 [
@cgohlke
]- Moved warning to end of execution #4965 [
@radarhere
]- Removed unused fromstring and tostring C methods #5026 [
@radarhere
]- init() if one of the formats is unrecognised #5037 [
@radarhere
]Dependencies
- Updated libtiff to 4.2.0 #5153 [
@radarhere
]- Updated openjpeg to 2.4.0 #5151 [
@radarhere
]- Updated harfbuzz to 2.7.4 #5138 [
@radarhere
]- Updated harfbuzz to 2.7.3 #5128 [
@radarhere
]- Updated libraqm to 0.7.1 #5070 [
@radarhere
]- Updated libimagequant to 2.13.1 #5065 [
@radarhere
]- Update FriBiDi to 1.0.10 #5064 [
@nulano
]- Updated libraqm to 0.7.1 #5063 [
@radarhere
]- Updated libjpeg-turbo to 2.0.6 #5044 [
@radarhere
]Deprecations
... (truncated)
Changelog
Sourced from pillow's changelog.
8.1.1 (2021-03-01)
- Use more specific regex chars to prevent ReDoS. CVE-2021-25292 [hugovk]
- Fix OOB Read in TiffDecode.c, and check the tile validity before reading. CVE-2021-25291 [wiredfool]
- Fix negative size read in TiffDecode.c. CVE-2021-25290 [wiredfool]
- Fix OOB read in SgiRleDecode.c. CVE-2021-25293 [wiredfool]
- Incorrect error code checking in TiffDecode.c. CVE-2021-25289 [wiredfool]
- PyModule_AddObject fix for Python 3.10 #5194 [radarhere]
8.1.0 (2021-01-02)
- Fix TIFF OOB Write error. CVE-2020-35654 #5175 [wiredfool]
- Fix for Read Overflow in PCX Decoding. CVE-2020-35653 #5174 [wiredfool, radarhere]
- Fix for SGI Decode buffer overrun. CVE-2020-35655 #5173 [wiredfool, radarhere]
- Fix OOB Read when saving GIF of xsize=1 #5149 [wiredfool]
- Makefile updates #5159 [wiredfool, radarhere]
- Add support for PySide6 #5161 [hugovk]
- Use disposal settings from previous frame in APNG #5126 [radarhere]
- Added exception explaining that _repr_png saves to PNG #5139 [radarhere]
- Use previous disposal method in GIF load_end #5125 [radarhere]
- Allow putpalette to accept 1024 integers to include alpha values #5089 [radarhere]
- Fix OOB Read when writing TIFF with custom Metadata #5148 [wiredfool]
- Added append_images support for ICO #4568 [ziplantil, radarhere]
- Block TIFFTAG_SUBIFD #5120 [radarhere]
- Fixed dereferencing potential null pointers #5108, #5111 [cgohlke, radarhere]
- Deprecate FreeType 2.7 #5098 [hugovk, radarhere]
- Moved warning to end of execution #4965 [radarhere]
- Removed unused fromstring and tostring C methods #5026 [radarhere]
- init() if one of the formats is unrecognised #5037 [radarhere]
- Moved string_dimension CVE image to pillow-depends #4993 [radarhere]
- Support raw rgba8888 for DDS #4760 [qiankanglai]
8.0.1 (2020-10-22)
- Update FreeType used in binary wheels to 2.10.4 to fix CVE-2020-15999. [radarhere]
- Moved string_dimension image to pillow-depends #4993 [radarhere]
8.0.0 (2020-10-15)
- Drop support for EOL Python 3.5 #4746, #4794 [hugovk, radarhere, nulano]
- Drop support for PyPy3 < 7.2.0 #4964 [nulano]
- Remove ImageCms.CmsProfile attributes deprecated since 3.2.0 #4768 [hugovk, radarhere]
- Remove long-deprecated Image.py functions #4798 [hugovk, nulano, radarhere]
- Add support for 16-bit precision JPEG quantization values #4918 [gofr]
- Added reading of IFD tag type #4979 [radarhere]
- Initialize offset memory for PyImagingPhotoPut #4806 [nqbit]
... (truncated)
Commits
741d874
8.1.1 version bump179cd1c
Added 8.1.1 release notes to index7d29665
Update CHANGES.rst [ci skip]d25036f
Credits973a4c3
Release notes for 8.1.1521dab9
Use more specific regex chars to prevent ReDoS8b8076b
Fix for CVE-2021-25291e25be1e
Fix negative size read in TiffDecode.cf891baa
Fix OOB read in SgiRleDecode.ccbfdde7
Incorrect error code checking in TiffDecode.c- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot badge me
will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in the .dependabot/config.yml
file in this repo:
- Update frequency
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Dependabot tried to add @dastanko
as a reviewer to this PR, but received the following error from GitHub:
POST https://api.github.com/repos/b12io/orchestra/pulls/771/requested_reviewers: 422 - Reviews may only be requested from collaborators. One or more of the users or teams you specified is not a collaborator of the b12io/orchestra repository. // See: https://docs.github.com/rest/reference/pulls#request-reviewers-for-a-pull-request