Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Sat, 20 Jan 2024 09:01:59 -0800
From: Alan Coopersmith <>
Subject: Pillow 10.2.0 released, fixes CVE-2023-50447

Version 10.2.0 of the Pillow module for Python was released on January 2:

The release notes listed three security related changes at :

 > * ImageFont.getmask: Applied ImageFont.MAX_STRING_LENGTH *
 > To protect against potential DOS attacks when using arbitrary strings as text
 > input, Pillow will now raise a ValueError if the number of characters passed
 > into PIL.ImageFont.ImageFont.getmask() is over a certain limit,
 > This threshold can be changed by setting PIL.ImageFont.MAX_STRING_LENGTH.
 > It can be disabled by setting ImageFont.MAX_STRING_LENGTH = None.
 > A decompression bomb check has also been added to
 > PIL.ImageFont.ImageFont.getmask().
 > * ImageFont.getmask: Trim glyph size *
 > To protect against potential DOS attacks when using PIL fonts,
 > PIL.ImageFont.ImageFont now trims the size of individual glyphs
 > so that they do not extend beyond the bitmap image.
 > *ImageMath.eval: Restricted environment keys*
 > CVE-2023-50447: If an attacker has control over the keys passed to the
 > environment argument of PIL.ImageMath.eval(), they may be able to execute
 > arbitrary code. To prevent this, keys matching the names of builtins and
 > keys containing double underscores will now raise a ValueError.

More information about CVE-2023-50447 was posted by Duarte Santos
of Checkmarx’s Research Group at:

Checkmarx also posted a short advisory for it at:

The fix for this CVE appears to have been provided by this set of changes:

         -Alan Coopersmith-       
          Oracle Solaris Engineering -

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.