Home / Libraw / Libraw / CVE-2021-32142
CVE-2021-32142: is it exploited, and which versions of Libraw are affected and fixed?
CVE-2021-32142 is an out-of-bounds write (memory corruption) vulnerability in Libraw. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 07:38 UTC). Affected: libraw 0.20.0 (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:38 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:41 UTC.
What is CVE-2021-32142?
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.
From the CVE record by mitre, last updated March 19, 2025, 14:15 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| libraw | libraw | 0.20.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:52 UTC.
How severe is CVE-2021-32142?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | CISA-ADP |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-32142 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, March 19, 2025)
- EPSS
- 0.39% probability of exploitation activity in the next 30 days, percentile 35.5 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-787 Out-of-bounds Write
Where are the vendor advisories and references?
- https://github.com/LibRaw/LibRaw/issues/400
- https://github.com/LibRaw/LibRaw/commit/bc3aaf4223fdb70d52d470dae65c5a7923ea2a49
- https://github.com/gtt1995
- https://www.libraw.org/
- FEDORA-2023-220878f1bf vendor-advisory
- FEDORA-2023-be842ba7fb vendor-advisory
- [debian-lts-announce] 20230527 [SECURITY] [DLA 3433-1] libraw security update mailing-list
- DSA-5412 vendor-advisory
When was it published, and where is the official record?
- Reserved
- May 7, 2021
- Published
- February 17, 2023, 00:00 UTC
- CVE record updated
- March 19, 2025, 14:15 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 03:52 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:41 UTC; KEV December 3, 2026, 07:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Libraw?
- Nov 23, 2026CVE-2026-135167 LibRaw: out-of-bounds read
- Nov 23, 2026CVE-2026-135176 LibRaw: out-of-bounds write (memory corruption)
- Nov 23, 2026CVE-2026-135177 LibRaw: out-of-bounds read
- Oct 15, 2026CVE-2026-111272 LibRaw: out-of-bounds read
- Apr 7, 2026CVE-2026-20911 LibRaw: incorrect Calculation of Buffer Size
- Apr 7, 2026CVE-2026-21413 LibRaw: improper array index validation
- Apr 7, 2026CVE-2026-20889 LibRaw: integer overflow
- Apr 7, 2026CVE-2026-24660 LibRaw: integer overflow
Questions about CVE-2021-32142
Is CVE-2021-32142 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 07:38 UTC. FIRST's EPSS gives it a 0.39% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Libraw are affected by CVE-2021-32142?
libraw 0.20.0, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2021-32142?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2021-32142?
High (7.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2021-32142?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.