cve.bz

CVE-2020-24870 libraw libraw: Out-of-bounds Write

8.8 highEPSS 1.6%Fix available

High (8.8) in libraw libraw. EPSS 1.6% estimated probability of exploitation activity in the next 30 days.

On this page
Libraw before 0.20.1 has a stack buffer overflow via LibRaw::identify_process_dng_fields in identify.cpp.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-24870 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-24870?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-24870?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-2020-24870 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:librawbefore 0.20.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libraw0.20.2-1DEBIAN-CVE-2020-24870
Ubuntu16.04:LTS, 18.04:LTSkodi, dcraw, ufraw and 3 moreno fix listedUBUNTU-CVE-2020-24870
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 morekodi, dcraw, darktable and 2 moreno fix listedUBUNTU-CVE-2020-24870
Red Hatenterprise_linux:8::appstreamLibRaw, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.19.5-3.el8RHSA-2021:4381
Red Hatenterprise_linux:8::appstreamgnome-autoar, gnome-autoar-debuginfo, gnome-autoar-debugsource0:0.2.3-2.el8RHSA-2021:4381
Red Hatenterprise_linux:8::appstreamwebkit2gtk3, webkit2gtk3-jsc, webkit2gtk3-devel and 6 more0:2.32.3-2.el8RHSA-2021:4381
Red Hatenterprise_linux:8::crbLibRaw-devel, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.19.5-3.el8RHSA-2021:4381
AlmaLinux8LibRaw, LibRaw-devel0.19.5-3.el8ALSA-2021:4381
AlmaLinux8accountsservice, accountsservice-libs, accountsservice-devel0.6.55-2.el8ALSA-2021:4381
AlmaLinux8gdm1:40.0-15.el8ALSA-2021:4381
AlmaLinux8gnome-autoar0.2.3-2.el8ALSA-2021:4381
AlmaLinux8gnome-calculator3.28.2-2.el8ALSA-2021:4381
AlmaLinux8gnome-classic-session, gnome-shell-extension-common, gnome-shell-extension-apps-menu and 21 more3.32.1-20.el8ALSA-2021:4381
AlmaLinux8gnome-control-center, gnome-control-center-filesystem3.28.2-28.el8ALSA-2021:4381
AlmaLinux8gnome-online-accounts, gnome-online-accounts-devel3.28.2-3.el8ALSA-2021:4381
AlmaLinux8gnome-session, gnome-session-xsession, gnome-session-kiosk-session and 1 more3.28.1-13.el8ALSA-2021:4381
AlmaLinux8gnome-settings-daemon3.32.0-16.el8.almaALSA-2021:4381
AlmaLinux8gnome-shell3.32.2-40.el8ALSA-2021:4381
AlmaLinux8gnome-software, gnome-software-devel3.36.1-10.el8ALSA-2021:4381
5 more for AlmaLinux in the JSON.
Rocky Linux8LibRaw0:0.19.5-3.el8RLSA-2021:4381
Rocky Linux8accountsservice0:0.6.55-2.el8RLSA-2021:4381
Rocky Linux8gdm1:40.0-15.el8RLSA-2021:4381
Rocky Linux8gnome-autoar0:0.2.3-2.el8RLSA-2021:4381
Rocky Linux8gnome-calculator0:3.28.2-2.el8RLSA-2021:4381
Rocky Linux8gnome-control-center0:3.28.2-28.el8RLSA-2021:4381
Rocky Linux8gnome-online-accounts0:3.28.2-3.el8RLSA-2021:4381
Rocky Linux8gnome-session0:3.28.1-13.el8RLSA-2021:4381
Rocky Linux8gnome-settings-daemon0:3.32.0-16.el8RLSA-2021:4381
Rocky Linux8gnome-settings-daemon0:3.32.0-16.el8_6.1RLSA-2021:4381
Rocky Linux8gnome-shell0:3.32.2-40.el8RLSA-2021:4381
Rocky Linux8gnome-shell-extensions0:3.32.1-20.el8RLSA-2021:4381
6 more for Rocky Linux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

LibRaw is not supposed to be used in RHEL by network-facing applications, thus reducing the impact of this flaw.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8LibRaw-0:0.19.5-3.el8Fixed 2021-11-09RHSA-2021:4381
Red Hat Enterprise Linux 6dcrawOut of support scope
Red Hat Enterprise Linux 7dcrawOut of support scope
Red Hat Enterprise Linux 7libkdcrawOut of support scope
Red Hat Enterprise Linux 7LibRawNot affected
Red Hat Enterprise Linux 8dcrawNot affected
Red Hat Enterprise Linux 9dcrawNot affected
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-2020-24870.

References

Check your stackJSON