---
title: 'USN-6744-2: Pillow vulnerability | Ubuntu security notices'
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/notices/USN-6744-2
---

1. [Ubuntu Security Notices](https://ubuntu.com/security/notices)
2. USN-6744-2

---

# USN-6744-2: Pillow vulnerability

Publication date

22 April 2024

Overview

Pillow could be made to crash or run programs as an administrator
if it opened a specially crafted file.

Releases

[20.04 LTS](https://ubuntu.com/security/notices?release=focal)

---

Open side navigation

## Packages

* [pillow-python2](https://ubuntu.com/security/cves?package=pillow-python2) - Python Imaging Library (Pillow fork)

## Details

USN-6744-1 fixed a vulnerability in Pillow (Python 3). This update
provides the corresponding updates for Pillow (Python 2) in
Ubuntu 20.04 LTS.

Original advisory details:

Hugo van Kemenade discovered that Pillow was not properly performing
bounds checks when processing an ICC file, which could lead to a buffer
overflow. If a user or automated system were tricked into processing a
specially crafted ICC file, an attacker could possibly use this issue
to cause a denial of service or execute arbitrary code.

## Update instructions

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

[Learn more about how to get the fixes.](https://ubuntu.com/security/cves/about#security)

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

| Ubuntu Release | Package Version |
| --- | --- |
| 20.04 LTS focal | [python-pil](https://launchpad.net/ubuntu/+source/pillow-python2) –  6.2.1-3ubuntu0.1~esm2   Ubuntu Pro | | |

---

### Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.

[Get Ubuntu Pro](https://ubuntu.com/pro)

## References

* [CVE-2024-28219](https://ubuntu.com/security/CVE-2024-28219)

## Related notices

* [USN-6744-1](https://ubuntu.com/security/notices/USN-6744-1)
* [USN-6744-3](https://ubuntu.com/security/notices/USN-6744-3)
