7.8

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

CVSS: 7.8v3.1HighModified
AliasesMGASA-2023-0082SUSE-SU-2023:0510-1SUSE-SU-2023:0511-1
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.

Overall risk
41/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.39%
0%100%
Low · -0.04 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 4 · Related 2

Timeline

  1. 17-02-2023
    PublishedVulnerability first disclosed.
  2. 19-03-2025
    Last 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

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 score
0.39%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Libraw

    Maturity: poc

Weaknesses

CWE · root cause

Affected 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
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
Show all 33 references