Alerts This Week
Warning Icon 1 677
Alerts This Week
Warning Icon 1 677

Ubuntu 18.04 LTS Pillow Critical DoS Buffer Overflow Bug USN-8135-1

ubuntu
Calendar Grey March 31, 2026
Dist Ubuntu Esm H88
Several security issues fixed in Pillow across multiple Ubuntu releases, potentially leading to DoS or code execution.
Several security issues were fixed in Pillow.

Summary

Several security issues were fixed in Pillow.

Software Description:

- pillow: Python Imaging Library

Details:

It was discovered that Pillow did not correctly handle reading J2K files,

which could lead to an out-of-bounds read vulnerability. If a user or

automated system were tricked into opening a specially crafted file, an

attacker could possibly use this issue to cause a denial of service. This

issue only affected Ubuntu 16.04 LTS. (CVE-2021-25287, CVE-2021-25288)

It was discovered that Pillow did not correctly handle certain integer

arithmetic, which could lead to a buffer overflow. An attacker could

possibly use this issue to cause a denial of service or execute arbitrary

code. This issue only affected Ubuntu 14.04 LTS. (CVE-2021-25290)

It was discovered that Pillow did not correctly perform bounds checking

for certain operations. An attacker could possibly use this issue to

cause a denial of service. This issue only affected Ubuntu 14.04 LTS

and Ubuntu 16.04 LTS. (CVE-202...

Read the Full Advisory

Update Instructions

The problem can be corrected by updating your system to the following
package versions:

Ubuntu 18.04 LTS
  python-pil                      5.1.0-1ubuntu0.8+esm2
                                  Available with Ubuntu Pro
  python3-pil                     5.1.0-1ubuntu0.8+esm2
                                  Available with Ubuntu Pro

Ubuntu 16.04 LTS
  python-pil                      3.1.2-0ubuntu1.6+esm3
                                  Available with Ubuntu Pro
  python3-pil                     3.1.2-0ubuntu1.6+esm3
                                  Available with Ubuntu Pro

Ubuntu 14.04 LTS
  python-pil                      2.3.0-1ubuntu3.4+esm5
                                  Available with Ubuntu Pro
  python3-pil                     2.3.0-1ubuntu3.4+esm5
                                  Available with Ubuntu Pro

In general, a standard system update will make all the necessary changes.

References

https://ubuntu.com/security/notices/USN-8135-1

CVE-2021-25287, CVE-2021-25288, CVE-2021-25290, CVE-2021-28675,

CVE-2021-28676, CVE-2021-28677, CVE-2023-44271, CVE-2023-50447

Severity
important
Lowest
Low
Medium
High
Critical

Ubuntu Security Notice USN-8135-1

Package Information

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.

Your message here