Neural-Network-Sandbox icon indicating copy to clipboard operation
Neural-Network-Sandbox copied to clipboard

[Security] Bump pillow from 6.2.1 to 8.2.0

Open dependabot-preview[bot] opened this issue 3 years ago • 1 comments

Bumps pillow from 6.2.1 to 8.2.0.

Release notes

Sourced from pillow's releases.

8.2.0

https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html

Changes

Dependencies

Deprecations

... (truncated)

Changelog

Sourced from pillow's changelog.

8.2.0 (2021-04-01)

  • Added getxmp() method #5144 [UrielMaD, radarhere]
  • Add ImageShow support for GraphicsMagick #5349 [latosha-maltba, radarhere]
  • Do not load transparent pixels from subsequent GIF frames #5333 [zewt, radarhere]
  • Use LZW encoding when saving GIF images #5291 [raygard]
  • Set all transparent colors to be equal in quantize() #5282 [radarhere]
  • Allow PixelAccess to use Python __int__ when parsing x and y #5206 [radarhere]
  • Removed Image._MODEINFO #5316 [radarhere]
  • Add preserve_tone option to autocontrast #5350 [elejke, radarhere]
  • Fixed linear_gradient and radial_gradient I and F modes #5274 [radarhere]
  • Add support for reading TIFFs with PlanarConfiguration=2 #5364 [kkopachev, wiredfool, nulano]
  • Deprecated categories #5351 [radarhere]
  • Do not premultiply alpha when resizing with Image.NEAREST resampling #5304 [nulano]
  • Dynamically link FriBiDi instead of Raqm #5062 [nulano]
  • Allow fewer PNG palette entries than the bit depth maximum when saving #5330 [radarhere]
  • Use duration from info dictionary when saving WebP #5338 [radarhere]
  • Stop flattening EXIF IFD into getexif() #4947 [radarhere, kkopachev]
  • Replaced tiff_deflate with tiff_adobe_deflate compression when saving TIFF images #5343 [radarhere]
  • Save ICC profile from TIFF encoderinfo #5321 [radarhere]
  • Moved RGB fix inside ImageQt class #5268 [radarhere]
  • Allow alpha_composite destination to be negative #5313 [radarhere]
  • Ensure file is closed if it is opened by ImageQt.ImageQt #5260 [radarhere]
  • Added ImageDraw rounded_rectangle method #5208 [radarhere]
  • Added IPythonViewer #5289 [radarhere, Kipkurui-mutai]
  • Only draw each rectangle outline pixel once #5183 [radarhere]
  • Use mmap instead of built-in Win32 mapper #5224 [radarhere, cgohlke]
  • Handle PCX images with an odd stride #5214 [radarhere]
  • Only read different sizes for "Large Thumbnail" MPO frames #5168 [radarhere]
  • Added PyQt6 support #5258 [radarhere]
  • Changed Image.open formats parameter to be case-insensitive #5250 [Piolie, radarhere]
  • Deprecate Tk/Tcl 8.4, to be removed in Pillow 10 (2023-01-02) #5216 [radarhere]
  • Added tk version to pilinfo #5226 [radarhere, nulano]
  • Support for ignoring tests when running valgrind #5150 [wiredfool, radarhere, hugovk]
  • OSS-Fuzz support #5189 [wiredfool, radarhere]

8.1.2 (2021-03-06)

  • Fix Memory DOS in BLP (CVE-2021-27921), ICNS (CVE-2021-27922) and ICO (CVE-2021-27923) Image Plugins [wiredfool]

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]

... (truncated)

Commits
  • e0e353c 8.2.0 version bump
  • ee635be Merge pull request #5377 from hugovk/security-and-release-notes
  • 694c84f Fix typo [ci skip]
  • 8febdad Review, typos and lint
  • fea4196 Reorder, roughly alphabetic
  • 496245a Fix BLP DOS -- CVE-2021-28678
  • 22e9bee Fix DOS in PSDImagePlugin -- CVE-2021-28675
  • ba65f0b Fix Memory DOS in ImageFont
  • bb6c11f Fix FLI DOS -- CVE-2021-28676
  • 5a5e6db Fix EPS DOS on _open -- CVE-2021-28677
  • Additional commits viewable in compare view

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)

dependabot-preview[bot] avatar Apr 02 '21 06:04 dependabot-preview[bot]

We've just been alerted that this update fixes a security vulnerability:

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:

... (truncated)

Affected versions: ["< 8.1.1"]

dependabot-preview[bot] avatar Apr 23 '21 17:04 dependabot-preview[bot]