CVE-2021-32142: libraw Out-of-bounds Write
CVSS: 7.8v3.1HighModified
AliasesMGASA-2023-0082SUSE-SU-2023:0510-1SUSE-SU-2023:0511-1SUSE-SU-2023:0512-1RHSA-2023:6343RHSA-2024:0343RHSA-2024:2994UBUNTU-CVE-2021-32142DEBIAN-CVE-2021-32142
Published 17-02-2023Last modified 19-03-2025
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 31.4% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
7.8/10
010
High · v3.1 (CVE.org)EPSS score
0.39%
0%100%
Low · -0.04 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github
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 versionHigh 7.8Preferred score · CVE.org (CNA)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HSources5 sources · 5.3–7.8
- 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
31%
Versus all other CVEs
30-day change
-0.04 pp
From 0.42% on 19-09-2026
19-09-202619-10-2026
EPSS score0.39%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundLibraw
Maturity: poc
Weaknesses
CWE · root causeAffected systems
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.19.5-4.el8 | < 0:0.20.2-6.el9 | < 0:0.19.4-2.el7_9
- LibRaw-debuginfo< 0:0.19.5-4.el8 | < 0:0.20.2-6.el9 | < 0:0.19.4-2.el7_9
- LibRaw-debugsource< 0:0.19.5-4.el8 | < 0:0.20.2-6.el9
- LibRaw-devel< 0:0.19.5-4.el8 | < 0:0.20.2-6.el9 | < 0:0.19.4-2.el7_9
- LibRaw-samples-debuginfo< 0:0.19.5-4.el8 | < 0:0.20.2-6.el9
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