CVE-2021-32142: libraw Out-of-bounds Write
Vulnerability summary
CVE-2021-32142 is a high (CVSS 7.8) Out-of-bounds Write vulnerability in libraw. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 35.5% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 2Timeline
- 17-02-2023PublishedVulnerability first disclosed.
- 19-03-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · Red hatEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.39%
Chance of exploitation in the next 30 days
Percentile
36%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.39% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundLibraw
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu8 products
- darktableAll versions (No fix recorded)
- dcrawAll versions (No fix recorded)
- digikam< 4:6.4.0+dfsg-3ubuntu0.1~esm1
- exactimageAll versions (No fix recorded)
- kodiAll versions (No fix recorded)
Redhat6 products
- LibRaw< 0:0.20.2-6.el9 | < 0:0.19.4-2.el7_9 | < 0:0.19.5-4.el8
- LibRaw-debuginfo< 0:0.20.2-6.el9 | < 0:0.19.4-2.el7_9 | < 0:0.19.5-4.el8
- LibRaw-debugsource< 0:0.20.2-6.el9 | < 0:0.19.5-4.el8
- LibRaw-devel< 0:0.20.2-6.el9 | < 0:0.19.4-2.el7_9 | < 0:0.19.5-4.el8
- LibRaw-samples-debuginfo< 0:0.20.2-6.el9 | < 0:0.19.5-4.el8
Suse4 products
- libraw&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP4< 0.20.2-150400.3.3.1
- libraw&distro=SUSE Linux Enterprise Software Development Kit 12 SP5< 0.15.4-36.1
- libraw&distro=SUSE Linux Enterprise Workstation Extension 12 SP5< 0.15.4-36.1
- libraw&distro=SUSE Linux Enterprise Workstation Extension 15 SP4< 0.18.9-150000.3.17.1 | < 0.20.2-150400.3.3.1
Debian1 product
- libraw< 0.20.2-2.1
Libraw1 product
- libraw0.20.0
Mageia1 product
- libraw< 0.20.2-1.1.mga8
Opensuse1 product
- libraw&distro=openSUSE Leap 15.4< 0.18.9-150000.3.17.1 | < 0.20.2-150400.3.3.1
7 vendors · 22 products
References
33 links- www.libraw.orgProduct
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- www.debian.org/security/2023/dsa-5412Vendor Advisory