cve.bz

CVE-2021-32142 libraw libraw: Out-of-bounds Write

7.8 highExploit referenceEPSS 0.4%Fix available

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

On this page
Buffer Overflow vulnerability in LibRaw linux/unix v0.20.0 allows attacker to escalate privileges via the LibRaw_buffer_datastream::gets(char*, int) in /src/libraw/src/libraw_datastream.cpp.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 34th 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 2025-03-19. 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-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-2021-32142 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32142?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32142?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-2021-32142 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.20.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libraw0.19.2-2+deb10u3DLA-3433-1
Debian11libraw0.20.2-1+deb11u1DSA-5412-1
Debian12, 13, 14libraw0.20.2-2.1DEBIAN-CVE-2021-32142
Ubuntu16.04:LTS, 18.04:LTSkodi, dcraw, ufraw and 3 moreno fix listedUBUNTU-CVE-2021-32142
Ubuntu20.04:LTSlibraw0.19.5-1ubuntu1.2UBUNTU-CVE-2021-32142 USN-6137-1
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 morekodi, dcraw, darktable and 2 moreno fix listedUBUNTU-CVE-2021-32142
Ubuntu22.04:LTSlibraw0.20.2-2ubuntu2.22.04.1UBUNTU-CVE-2021-32142 USN-6137-1
UbuntuPro:16.04:LTSdigikam4:4.12.0-0ubuntu7+esm1USN-7266-1
UbuntuPro:16.04:LTS, Pro:18.04:LTSlibrawno fix listedUBUNTU-CVE-2021-32142
UbuntuPro:18.04:LTSdigikam4:5.6.0-0ubuntu10+esm1USN-7266-1
UbuntuPro:20.04:LTSdigikam4:6.4.0+dfsg-3ubuntu0.1~esm1UBUNTU-CVE-2021-32142 USN-7266-1
UbuntuPro:22.04:LTSdigikam4:7.5.0-3ubuntu0.1~esm1USN-7266-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationLibRaw, LibRaw-devel, LibRaw-static and 1 more0:0.19.4-2.el7_9RHSA-2024:0343
Red Hatenterprise_linux:8::appstreamLibRaw, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.19.5-4.el8RHSA-2024:2994
Red Hatenterprise_linux:8::crbLibRaw-devel, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.19.5-4.el8RHSA-2024:2994
Red Hatenterprise_linux:9::appstreamLibRaw, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.20.2-6.el9RHSA-2023:6343
Red Hatenterprise_linux:9::crbLibRaw-devel, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.20.2-6.el9RHSA-2023:6343
SUSELinux Enterprise Module for Desktop Applications 15 SP4, Linux Enterprise Workstation Extension 15 SP4libraw0.20.2-150400.3.3.1SUSE-SU-2023:0512-1
SUSELinux Enterprise Software Development Kit 12 SP5, Linux Enterprise Workstation Extension 12 SP5libraw0.15.4-36.1SUSE-SU-2023:0510-1
SUSELinux Enterprise Workstation Extension 15 SP4libraw0.18.9-150000.3.17.1SUSE-SU-2023:0511-1
openSUSELeap 15.4libraw0.18.9-150000.3.17.1SUSE-SU-2023:0511-1
openSUSELeap 15.4libraw0.20.2-150400.3.3.1SUSE-SU-2023:0512-1
AlmaLinux8LibRaw, LibRaw-devel0.19.5-4.el8ALSA-2024:2994
AlmaLinux9LibRaw, LibRaw-devel0.20.2-6.el9ALSA-2023:6343
Rocky Linux8LibRaw0:0.19.5-4.el8RLSA-2024:2994
Azure Linux2LibRawno fix listedAZL-43756
Azure Linux3LibRaw0.21.3-1AZL-45267

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; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7LibRaw-0:0.19.4-2.el7_9Fixed 2024-01-23RHSA-2024:0343
Red Hat Enterprise Linux 8LibRaw-0:0.19.5-4.el8Fixed 2024-05-22RHSA-2024:2994
Red Hat Enterprise Linux 9LibRaw-0:0.20.2-6.el9Fixed 2023-11-07RHSA-2023:6343

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-2021-32142.

References

Check your stackJSON