SECURITY UPDATE: arbitrary code execution via the ImageMath.eval
environment parameter (ELSCVE-187962)
debian/patches/CVE-2023-50447.patch: reject environment keys that
contain "__" or shadow a builtin before they are merged into the
execution namespace in src/PIL/ImageMath.py, so an injected name can
no longer satisfy the expression allowlist. Adds a regression test in
Tests/test_imagemath.py.
CVE-2023-50447
SECURITY UPDATE: denial of service via unbounded allocation when
measuring or rendering very long strings
debian/patches/CVE-2023-44271.patch: add ImageFont.MAX_STRING_LENGTH
and check it at each text entry point in src/PIL/ImageFont.py before
the C layer allocates. Adds a regression test in
Tests/test_imagefont.py.