cve.bz

CVE-2026-20884 libraw libraw: Year 2038 problem, Y2K38, Y2038, Epochalypse

9.8 criticalExploit referenceEPSS 0.6%

Critical (9.8) in libraw libraw. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
An integer overflow vulnerability exists in the deflate_dng_load_raw functionality of LibRaw Commit 8dc68e2. A specially crafted malicious file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain 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.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libraw:libraw0.22.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libraw0.20.2-1+deb11u3DLA-4704-1
Debian12libraw0.20.2-2.1+deb12u2DEBIAN-CVE-2026-20884 DLA-4704-1
Debian13libraw0.21.4-2+deb13u1DEBIAN-CVE-2026-20884
Debian14libraw0.22.1-1DEBIAN-CVE-2026-20884
Ubuntu16.04:LTSkodi, dcraw, ufraw and 3 moreno fix listedUBUNTU-CVE-2026-20884
Ubuntu18.04:LTSrawtherapeeno fix listedUBUNTU-CVE-2026-20884
Ubuntu20.04:LTSdcraw, libraw, exactimage and 1 moreno fix listedUBUNTU-CVE-2026-20884
Ubuntu22.04:LTSdcraw, darktable, rawtherapeeno fix listedUBUNTU-CVE-2026-20884
Ubuntu22.04:LTSlibraw0.20.2-2ubuntu2.22.04.3UBUNTU-CVE-2026-20884 USN-8522-1
Ubuntu24.04:LTSdcraw, digikam, darktable and 1 moreno fix listedUBUNTU-CVE-2026-20884
Ubuntu24.04:LTSlibraw0.21.2-2.1ubuntu0.24.04.2UBUNTU-CVE-2026-20884 USN-8522-1
Ubuntu25.10kodi, dcraw, libraw and 4 moreno fix listedUBUNTU-CVE-2026-20884
Ubuntu26.04:LTSdcraw, digikam, darktable and 2 moreno fix listedUBUNTU-CVE-2026-20884
Ubuntu26.04:LTSlibraw0.21.5b-1ubuntu1.1UBUNTU-CVE-2026-20884 USN-8522-1
Ubuntu26.10kodi, dcraw, digikam and 3 moreno fix listedUBUNTU-CVE-2026-20884
UbuntuPro:16.04:LTSlibrawno fix listedUBUNTU-CVE-2026-20884
2 more for Ubuntu in the JSON and on Ubuntu's page.
SUSELinux 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 morelibraw0.20.2-150400.3.21.1SUSE-SU-2026:1556-1
SUSELinux Enterprise Module for Desktop Applications 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Server 15 SP6-LTSS and 2 morelibraw0.21.1-150600.3.10.1SUSE-SU-2026:1555-1
openSUSELeap 16.0libraw0.21.4-160000.3.1openSUSE-SU-2026:20574-1
openSUSETumbleweedlibraw0.22.1-1.1openSUSE-SU-2026:10565-1
Alpinev3.24libraw0.22.2-r0ALPINE-CVE-2026-20884
Azure Linux3LibRawno fix listedAZL-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

Red Hat rates this Moderate.

Red Hat's statement

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.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7LibRawOut of support scope
Red Hat Enterprise Linux 8LibRawWill not fix
Red Hat Enterprise Linux 9LibRawNot 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.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON