Skip to content
OpenAdvisories
Critical 1 exploited CVE openSUSE-SU-2021:1134-1 13 CVEs

Security update for python-CairoSVG, python-Pillow

Published Aug 10, 2021 · Updated Feb 4, 2026

Summary

This update for python-CairoSVG, python-Pillow fixes the following issues:

Update to version 2.5.1.

* Security fix: When processing SVG files, CairoSVG was using two
regular expressions which are vulnerable to Regular Expression
Denial of Service (REDoS). If an attacker provided a malicious
SVG, it could make CairoSVG get stuck processing the file for a
very long time.
* Fix marker positions for unclosed paths
* Follow hint when only output_width or output_height is set
* Handle opacity on raster images
* Don’t crash when use tags reference unknown tags
* Take care of the next letter when A/a is replaced by l
* Fix misalignment in node.vertices

Updates for version 2.5.0.

* Drop support of Python 3.5, add support of Python 3.9.
* Add EPS export
* Add background-color, negate-colors, and invert-images options
* Improve support for font weights
* Fix opacity of patterns and gradients
* Support auto-start-reverse value for orient
* Draw images contained in defs
* Add Exif transposition support
* Handle dominant-baseline
* Support transform-origin

python-Pillow update to version 8.3.1:

* Catch OSError when checking if fp is sys.stdout #5585 [radarhere]
* Handle removing orientation from alternate types of EXIF data #5584 [radarhere]
* Make Image.__array__ take optional dtype argument #5572 [t-vi, radarhere]

* Use snprintf instead of sprintf. CVE-2021-34552 #5567 [radarhere]
* Limit TIFF strip size when saving with LibTIFF #5514 [kmilos]
* Allow ICNS save on all operating systems #4526 [baletu, radarhere,
newpanjing, hugovk]
* De-zigzag JPEG's DQT when loading; deprecate convert_dict_qtables
#4989 [gofr, radarhere]
* Replaced xml.etree.ElementTree #5565 [radarhere]
* Moved CVE image to pillow-depends #5561 [radarhere]
* Added tag data for IFD groups #5554 [radarhere]
* Improved ImagePalette #5552 [radarhere]
* Add DDS saving #5402 [radarhere]
* Improved getxmp() #5455 [radarhere]
* Convert to float for comparison with float in IFDRational __eq__
#5412 [radarhere]
* Allow getexif() to access TIFF tag_v2 data #5416 [radarhere]
* Read FITS image mode and size #5405 [radarhere]
* Merge parallel horizontal edges in ImagingDrawPolygon #5347
[radarhere, hrdrq]
* Use transparency behind first GIF frame and when disposing to
background #5557 [radarhere, zewt]
* Avoid unstable nature of qsort in Quant.c #5367 [radarhere]
* Copy palette to new images in ImageOps expand #5551 [radarhere]
* Ensure palette string matches RGB mode #5549 [radarhere]
* Do not modify EXIF of original image instance in exif_transpose()
#5547 [radarhere]
* Fixed default numresolution for small JPEG2000 images #5540
[radarhere]
* Added DDS BC5 reading #5501 [radarhere]
* Raise an error if ImageDraw.textbbox is used without a TrueType
font #5510 [radarhere]
* Added ICO saving in BMP format #5513 [radarhere]
* Ensure PNG seeks to end of previous chunk at start of load_end
#5493 [radarhere]
* Do not allow TIFF to seek to a past frame #5473 [radarhere]
* Avoid race condition when displaying images with eog #5507
[mconst]
* Added specific error messages when ink has incorrect number of
bands #5504 [radarhere]
* Allow converting an image to a numpy array to raise errors #5379
[radarhere]
* Removed DPI rounding from BMP, JPEG, PNG and WMF loading #5476,
#5470 [radarhere]
* Remove spikes when drawing thin pieslices #5460 [xtsm]
* Updated default value for SAMPLESPERPIXEL TIFF tag #5452
[radarhere]
* Removed TIFF DPI rounding #5446 [radarhere, hugovk]
* Include code in WebP error #5471 [radarhere]
* Do not alter pixels outside mask when drawing text on an image
with transparency #5434 [radarhere]
* Reset handle when seeking backwards in TIFF #5443 [radarhere]
* Replace sys.stdout with sys.stdout.buffer when saving #5437
[radarhere]
* Fixed UNDEFINED TIFF tag of length 0 being changed in roundtrip
#5426 [radarhere]
* Fixed bug when checking FreeType2 version if it is not installed
#5445 [radarhere]
* Do not round dimensions when saving PDF #5459 [radarhere]
* Added ImageOps contain() #5417 [radarhere, hugovk]
* Changed WebP default 'method' value to 4 #5450 [radarhere]
* Switched to saving 1-bit PDFs with DCTDecode #5430 [radarhere]
* Use bpp from ICO header #5429 [radarhere]
* Corrected JPEG APP14 transform value #5408 [radarhere]
* Changed TIFF tag 33723 length to 1 #5425 [radarhere]
* Changed ImageMorph incorrect mode errors to ValueError #5414
[radarhere]
* Add EXIF tags specified in EXIF 2.32 #5419 [gladiusglad]
* Treat previous contents of first GIF frame as transparent #5391
[radarhere]
* For special image modes, revert default resize resampling to
NEAREST #5411 [radarhere]
* JPEG2000: Support decoding subsampled RGB and YCbCr images #4996
[nulano, radarhere]
* Stop decoding BC1 punchthrough alpha in BC2&3 #4144 [jansol]
* Use zero if GIF background color index is missing #5390
[radarhere]
* Fixed ensuring that GIF previous frame was loaded #5386
[radarhere]
* Valgrind fixes #5397 [wiredfool]
* Round down the radius in rounded_rectangle #5382 [radarhere]
* Fixed reading uncompressed RGB data from DDS #5383 [radarhere]

update to version 8.2.0:

* 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 #53

Fixed packages 2

ReleasePackageFixed in
openSUSE · Leap 15.2 python-CairoSVG 2.5.1-lp152.2.3.1
openSUSE · Leap 15.2 python-Pillow 8.3.1-lp152.5.3.1

Vulnerabilities 13

References

  • report
    https://bugzilla.suse.com/1180832
  • report
    https://bugzilla.suse.com/1180833
  • report
    https://bugzilla.suse.com/1180834
  • report
    https://bugzilla.suse.com/1181281
  • web
    https://www.suse.com/security/cve/CVE-2020-15999
  • web
    https://www.suse.com/security/cve/CVE-2020-35653
  • web
    https://www.suse.com/security/cve/CVE-2020-35654
  • web
    https://www.suse.com/security/cve/CVE-2020-35655
  • web
    https://www.suse.com/security/cve/CVE-2021-25289
  • web
    https://www.suse.com/security/cve/CVE-2021-25290
  • web
    https://www.suse.com/security/cve/CVE-2021-25291
  • web
    https://www.suse.com/security/cve/CVE-2021-25292
  • web
    https://www.suse.com/security/cve/CVE-2021-25293
  • web
    https://www.suse.com/security/cve/CVE-2021-27921
  • web
    https://www.suse.com/security/cve/CVE-2021-27922
  • web
    https://www.suse.com/security/cve/CVE-2021-27923
  • web
    https://www.suse.com/security/cve/CVE-2021-34552