synced JUST NOW
01 Record

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.

HighPUBLISHEDCNA: mitre
CNA base score7.8 CVSS v3.xCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

02 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.

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
  • Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
0.38% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 32.6% of scored records. A rank, not a probability.
NVD base score
7.8 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD analysis status
Modified. NVD last modified this record on 2026-06-17.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2023-02-17 00:00Z3 YR AGO
Last updated
2025-03-19 14:15Z1 YR AGO
Reserved
2021-05-07
Assigning CNA
mitre
Record state
PUBLISHED
Severity
High (CVSS 7.8)
CNA CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
Data version
5.1
Document digest
cb33211c602002078cddb2123b2859ad7d22f36d9177254418758977b99fd62b

05 Affected products

VendorProductVersionsPlatforms
librawlibrawNot specified—
redhatenterprise_linuxNot specified—

06 References

07 Fixed in

AlmaLinux 8

  • LibRaw
    Fixed in 0.19.5-4.el8
  • LibRaw-devel
    Fixed in 0.19.5-4.el8

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

AlmaLinux 9

  • LibRaw
    Fixed in 0.20.2-6.el9
  • LibRaw-devel
    Fixed in 0.20.2-6.el9

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 8

  • LibRaw
    Fixed in 0.19.5-4.el8
  • LibRaw-devel
    Fixed in 0.19.5-4.el8

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 9

  • LibRaw
    Fixed in 0.20.2-6.el9
  • LibRaw-devel
    Fixed in 0.20.2-6.el9

Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Debian 12

  • libraw
    Fixed in 0.20.2-2.1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • libraw
    Fixed in 0.20.2-2.1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • libraw
    Fixed in 0.20.2-2.1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 16.04 LTS

  • darktable
    No fix yet
  • dcraw
    No fix yet
  • exactimage
    No fix yet
  • kodi
    No fix yet
  • rawtherapee
    No fix yet
  • ufraw
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 18.04 LTS

  • darktable
    No fix yet
  • dcraw
    No fix yet
  • exactimage
    No fix yet
  • kodi
    No fix yet
  • rawtherapee
    No fix yet
  • ufraw
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 20.04 LTS

  • darktable
    No fix yet
  • dcraw
    No fix yet
  • exactimage
    No fix yet
  • kodi
    No fix yet
  • libraw
    Fixed in 0.19.5-1ubuntu1.2
  • rawtherapee
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 22.04 LTS

  • darktable
    No fix yet
  • dcraw
    No fix yet
  • exactimage
    No fix yet
  • kodi
    No fix yet
  • libraw
    Fixed in 0.20.2-2ubuntu2.22.04.1
  • rawtherapee
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 24.04 LTS

  • darktable
    No fix yet
  • dcraw
    No fix yet
  • exactimage
    No fix yet
  • kodi
    No fix yet
  • rawtherapee
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 25.10

  • darktable
    No fix yet
  • dcraw
    No fix yet
  • exactimage
    No fix yet
  • kodi
    No fix yet
  • rawtherapee
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 26.04 LTS

  • darktable
    No fix yet
  • dcraw
    No fix yet
  • exactimage
    No fix yet
  • kodi
    No fix yet
  • rawtherapee
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 26.10

  • darktable
    No fix yet
  • dcraw
    No fix yet
  • exactimage
    No fix yet
  • kodi
    No fix yet
  • rawtherapee
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 16.04 LTS

  • libraw
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 18.04 LTS

  • libraw
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 20.04 LTS

  • digikam
    Fixed in 4:6.4.0+dfsg-3ubuntu0.1~esm1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.