Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

[Security] Bump pillow from 5.0.0 to 8.1.1 #228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps pillow from 5.0.0 to 8.1.1. This update includes security fixes.

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:

Affected versions: < 8.1.1

Sourced from The GitHub Security Advisory Database.

Low severity vulnerability that affects pillow 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.

Affected versions: < 6.2.0

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

Dependencies

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

Dependabot compatibility score

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 use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @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 your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [pillow](https://github.com/python-pillow/Pillow) from 5.0.0 to 8.1.1. **This update includes security fixes.**
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst)
- [Commits](python-pillow/Pillow@5.0.0...8.1.1)

Signed-off-by: dependabot-preview[bot] <[email protected]>
@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels Jun 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants