USN-5227-1

Type: Security
Severity: Medium
Published: 2022-01-13
Ubuntu 20.04 LTS (Focal Fossa)

It was discovered that Pillow incorrectly handled certain image files. If a user or automated system were tricked into opening a specially-crafted file, a remote attacker could cause Pillow to hang, resulting in a denial of service. (CVE-2021-23437) It was discovered that Pillow incorrectly handled certain image files. If a user or automated system were tricked into opening a specially-crafted file, a remote attacker could cause Pillow to crash, resulting in a denial of service. This issue ony affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 21.04. (CVE-2021-34552) It was discovered that Pillow incorrectly handled certain image files. If a user or automated system were tricked into opening a specially-crafted file, a remote attacker could cause Pillow to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2022-22815) It was discovered that Pillow incorrectly handled certain image files. If a user or automated system were tricked into opening a specially-crafted file, a remote attacker could cause Pillow to crash, resulting in a denial of service. (CVE-2022-22816) It was discovered that Pillow incorrectly handled certain image files. If a user or automated system were tricked into opening a specially-crafted file, a remote attacker could cause Pillow to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2022-22817) Update Instructions: Run `sudo pro fix USN-5227-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: python3-pil.imagetk - 7.0.0-4ubuntu0.5 python-pil-doc - 7.0.0-4ubuntu0.5 python3-pil - 7.0.0-4ubuntu0.5 No subscription required

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-28T03:50:42.912Z UTC

Official vendor advisory

Ubuntu 20.04 LTS (Focal Fossa)

View source
Observed 2026-11-28T03:50:42.912Z UTC. Last updated 2025-11-26T07:57:29.595Z UTC.

Upstream Advisory

Affected Packages

  • python3-pil.imagetk 7.0.0-4ubuntu0.5-7.0.0-4ubuntu0.5

  • python-pil-doc 7.0.0-4ubuntu0.5-7.0.0-4ubuntu0.5

  • python3-pil 7.0.0-4ubuntu0.5-7.0.0-4ubuntu0.5

Interested in being alerted when there are new versions of python3-pil.imagetk and the other packages? Set up an alert.
USN-5227-1: Pillow vulnerabilities | Package Alert