Ubuntu CVE Tracker
UBUNTU-CVE-2026-54058
Details
Pillow is a Python imaging library. Prior to 12.3.0, when Pillow loads an uncompressed McIdas AREA image from a filename through the mmap raw codec path, attacker-controlled header words can set a row stride smaller than the natural row width, causing pixel access such as Image.tobytes(), getpixel, convert, or save to read beyond the mapped region and disclose adjacent process memory or fault. This issue is fixed in version 12.3.0.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | pillow | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | pillow | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | pillow | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | pillow | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | pillow-python2 | All versions, no fix listed |
| Ubuntu:22.04:LTS | pillow | All versions before 9.0.1-1ubuntu0.6 (fixed in 9.0.1-1ubuntu0.6) |
| Ubuntu:24.04:LTS | pillow | All versions before 10.2.0-1ubuntu1.4 (fixed in 10.2.0-1ubuntu1.4) |
| Ubuntu:26.04:LTS | pillow | All versions before 12.1.1-2ubuntu1.4 (fixed in 12.1.1-2ubuntu1.4) |
References
- https://ubuntu.com/security/CVE-2026-54058
- https://www.cve.org/CVERecord?id=CVE-2026-54058
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-62p4-gmf7-7g93
- https://github.com/python-pillow/Pillow/pull/9719
- https://github.com/python-pillow/Pillow/releases/tag/12.3.0
- https://ubuntu.com/security/notices/USN-8999-1