CVSS 3.1
9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCritical (9.8) in libraw libraw. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExplain CVE-2026-20884 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-20884?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-20884?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-20884 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| libraw:libraw | 0.22.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | libraw | 0.20.2-1+deb11u3 | DLA-4704-1 |
| Debian | 12 | libraw | 0.20.2-2.1+deb12u2 | DEBIAN-CVE-2026-20884 DLA-4704-1 |
| Debian | 13 | libraw | 0.21.4-2+deb13u1 | DEBIAN-CVE-2026-20884 |
| Debian | 14 | libraw | 0.22.1-1 | DEBIAN-CVE-2026-20884 |
| Ubuntu | 16.04:LTS | kodi, dcraw, ufraw and 3 more | no fix listed | UBUNTU-CVE-2026-20884 |
| Ubuntu | 18.04:LTS | rawtherapee | no fix listed | UBUNTU-CVE-2026-20884 |
| Ubuntu | 20.04:LTS | dcraw, libraw, exactimage and 1 more | no fix listed | UBUNTU-CVE-2026-20884 |
| Ubuntu | 22.04:LTS | dcraw, darktable, rawtherapee | no fix listed | UBUNTU-CVE-2026-20884 |
| Ubuntu | 22.04:LTS | libraw | 0.20.2-2ubuntu2.22.04.3 | UBUNTU-CVE-2026-20884 USN-8522-1 |
| Ubuntu | 24.04:LTS | dcraw, digikam, darktable and 1 more | no fix listed | UBUNTU-CVE-2026-20884 |
| Ubuntu | 24.04:LTS | libraw | 0.21.2-2.1ubuntu0.24.04.2 | UBUNTU-CVE-2026-20884 USN-8522-1 |
| Ubuntu | 25.10 | kodi, dcraw, libraw and 4 more | no fix listed | UBUNTU-CVE-2026-20884 |
| Ubuntu | 26.04:LTS | dcraw, digikam, darktable and 2 more | no fix listed | UBUNTU-CVE-2026-20884 |
| Ubuntu | 26.04:LTS | libraw | 0.21.5b-1ubuntu1.1 | UBUNTU-CVE-2026-20884 USN-8522-1 |
| Ubuntu | 26.10 | kodi, dcraw, digikam and 3 more | no fix listed | UBUNTU-CVE-2026-20884 |
| Ubuntu | Pro:16.04:LTS | libraw | no fix listed | UBUNTU-CVE-2026-20884 |
| 2 more for Ubuntu in the JSON and on Ubuntu's page. | ||||
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 more | libraw | 0.20.2-150400.3.21.1 | SUSE-SU-2026:1556-1 |
| SUSE | Linux Enterprise Module for Desktop Applications 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Server 15 SP6-LTSS and 2 more | libraw | 0.21.1-150600.3.10.1 | SUSE-SU-2026:1555-1 |
| openSUSE | Leap 16.0 | libraw | 0.21.4-160000.3.1 | openSUSE-SU-2026:20574-1 |
| openSUSE | Tumbleweed | libraw | 0.22.1-1.1 | openSUSE-SU-2026:10565-1 |
| Alpine | v3.24 | libraw | 0.22.2-r0 | ALPINE-CVE-2026-20884 |
| Azure Linux | 3 | LibRaw | no fix listed | AZL-82949 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.
Red Hat rates this Moderate.
This flaw in the LibRaw library consists in an integer overflow in the `deflate_dng_load_raw()` function, a successfully performed attack may lead to a heap buffer overflow and potentially arbitrary code execution or denial of service. The vulnerability stems from the usage of a 32-bit arithmetic to calculate the memory limits and the buffer allocation size for the image's tile dimension values, which may end up overflowing when processing user controlled images as input. The calculation result is further used within 64-bit boundary checking however the proper cast is missing and the result value is used to allocate the buffer from memory, when the overflow happens the function may start writing outside of the expected memory boundary leading to data corruption.
This vulnerability is not exploitable when the application consuming LibRaw is using the default memory limit (`max_raw_memory_mb` parameter) to unpack the RAW image. To be considered vulnerable the application should be setting the limit to around or greater then 11GB.
Red Hat Product Security has rated this vulnerability as having a Moderate impact, despite the possibility of arbitrary code execution due to the heap-based buffer overflow, as the user needs to be tricked to process a maliciously crafted image or LibRaw needs to be exposed to the network and accepting untrusted data as input. Additionally the default `max_raw_memory_mb` value set with LibRaw is not enough to trigger the vulnerability.
This vulnerability can be mitigated by limiting the amount of memory used to unpack untrusted RAW images. This needs to be set in the application using the LibRaw and can be achieved by setting the `max_raw_memory_mb` to a value smaller than 16GB.
This parameter can't be changed in runtime in the library, so developers needs to patch and rebuild their application to impose the new limit. It's important to notice the fact when reducing the memory limit for the decoding process may render the library unable to handle big images.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | LibRaw | Out of support scope | |
| Red Hat Enterprise Linux 8 | LibRaw | Will not fix | |
| Red Hat Enterprise Linux 9 | LibRaw | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-20884.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.