CVE-2026-42308
Pillow: Pillow: Denial of Service via integer overflow in font processing
Overview
Description
Pillow is a Python imaging library. Prior to version 12.2.0, if a font advances for each glyph by an exceeding large amount, when Pillow keeps track of the current position, it may lead to an integer overflow. This issue has been patched in version 12.2.0.
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-190
Affected packages · 4
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | pillow | <12.2.0 | 12.2.0 |
| PyPI | pillow | <12.2.0 | 12.2.0 |
| Seal PyPI | pillow | >=10.0.1+sp0, <10.0.1+sp999>=7.2.0+sp0, <7.2.0+sp999>=9.3.0+sp0, <9.3.0+sp999>=9.5.0+sp0, <9.5.0+sp999 | 10.0.1+sp9997.2.0+sp9999.3.0+sp9999.5.0+sp999 |
| Seal PyPI | seal-pillow | >=10.0.1+sp1, <10.0.1+sp999>=7.2.0+sp1, <7.2.0+sp999>=9.3.0+sp1, <9.3.0+sp999>=9.5.0+sp1, <9.5.0+sp999 | 10.0.1+sp9997.2.0+sp9999.3.0+sp9999.5.0+sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 34 fixes
Red Hat 6 releases · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | python +19 | affected |
| 7 (satellite-capsule:el8) | python-pillow | affected |
| 8 | platform-python +28 | affected |
| 8 (python36:3.6) | python-distro +32 | affected |
| 8 (python39-devel:3.9) | mod-wsgi-8b45de +57 | affected |
| 9 | python-unversioned-command +36 | eol |
SUSE Linux Enterprise 5 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | python311-pillow +1 | 9.5.0-150400.5.20.1 | SUSE-SU-2026:2234-1 |
| 15.5 | python311-pillow +1 | 9.5.0-150400.5.20.1 | SUSE-SU-2026:2234-1 |
| 15.6 | python311-pillow +1 | 9.5.0-150400.5.20.1 | SUSE-SU-2026:2234-1 |
| 15.7 | python3-pillow | 7.2.0-150300.3.24.1 | SUSE-SU-2026:2004-1 |
| 15.7 | python311-pillow +1 | 9.5.0-150400.5.20.1 | SUSE-SU-2026:2234-1 |
| 16.0 | python313-pillow +1 | 11.3.0-160000.5.1 | SUSE-SU-2026:21861-1 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | python-pillow-debuginfo +6 | 9.4.0-2.amzn2023.0.8 |
chainguard 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.0-r0 | |
| kubeflow-pipelines-visualization-server | 2.16.1-r0 | |
| mlflow | 3.16.0-r0 | |
| superset-6-0 | 6.0.0-r10 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | pillow | affected |
| 12 | pillow | affected |
| 13 | pillow | 11.1.0-5+deb13u3 |
| 14 | pillow | 12.2.0-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| pillow | 11.1.0-5+deb13u3 |
minimos 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| label-studio | 1.23.1-r0 | |
| litellm-1-83 | 1.83.10-r0 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | python313-pillow +1 | 11.3.0-160000.5.1 | openSUSE-SU-2026:20831-1 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python +1 | 2.7.5-92.el7_9+sp999 |
ubuntu 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | pillow | 5.1.0-1ubuntu0.8+esm3 |
| 20.04-ESM | pillow | 7.0.0-4ubuntu0.9+esm2 |
| 22.04 | pillow | 9.0.1-1ubuntu0.4 |
| 24.04 | pillow | 10.2.0-1ubuntu1.2 |
| 26.04 | pillow | 12.1.1-2ubuntu1.2 |
wolfi 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.0-r0 | |
| kubeflow-pipelines-visualization-server | 2.16.1-r0 | |
| superset-6-0 | 6.0.0-r10 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-42308
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-165.yaml
- github.com https://github.com/python-pillow/Pillow
- github.com https://github.com/python-pillow/Pillow/pull/9518/changes (suspected fix)
- github.com https://github.com/python-pillow/Pillow/releases/tag/12.2.0
- github.com https://github.com/python-pillow/Pillow/security/advisories/GHSA-wjx4-4jcj-g98j
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-42308
- ubuntu.com https://ubuntu.com/security/notices/USN-8399-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9064-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-42308
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.