CVE-2021-32142

Exp

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.

Published: 2023-02-17 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2021-32142 is rated Exploit Available (58.4/100): CVSS High severity, with low exploitation likelihood (EPSS 0.42%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2021-32142

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2021-32142

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.02% 0.42% +0.40%
2 2025-11-21 0.07% 0.02% -0.06%
3 2025-11-18 0.07%

Full EPSS history (10 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2021-32142

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 5.9 [email protected]
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 5.9 134c704f-9b21-4f2e-91b3-4a467353bcc0

Weakness enumeration for CVE-2021-32142

OS Trackers for CVE-2021-32142

vendor priority summary link
alpine CVE-2021-32142: 1 source package rows (libraw); 2 state rows across 2 repos (3.22-community, edge-community); fixed 0, open 2. https://security.alpinelinux.org/vuln/CVE-2021-32142
debian not yet assigned CVE-2021-32142 not yet assigned priority: Debian including 1 source packages (libraw), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2021-32142
redhat medium https://access.redhat.com/security/cve/CVE-2021-32142
suse medium CVE-2021-32142 severity moderate: SUSE including 19 source package names (LibRaw-0.19.4-2.el7_9, LibRaw-0.19.5-4.el8, …), 43 product×package rows across 21 product lines (SUSE Liberty Linux 7, SUSE Liberty Linux 7 LTSS, … (21 product lines)): Fixed 43. https://www.suse.com/security/cve/CVE-2021-32142/
ubuntu low CVE-2021-32142 low priority: Ubuntu including 9 source packages (darktable, dcraw, …), 105 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): ignored 54, needs-triage 22, released 12, DNE 9, not-affected 7, needed 1. https://ubuntu.com/security/CVE-2021-32142

Affected software / configurations for CVE-2021-32142

Vendor Product Version Raw CPE
libraw libraw 0.20.0 cpe:2.3:a:libraw:libraw:0.20.0:*:*:*:*:*:*:*

References for CVE-2021-32142

cvelogic Threat Intelligence