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.
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.
- 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
- CWE-787Out-of-bounds WriteBase
- Data version
- 5.1
- Document digest
- cb33211c602002078cddb2123b2859ad7d22f36d9177254418758977b99fd62b
05 Affected products
06 References
- github.comhttps://github.com/LibRaw/LibRaw/issues/400
- github.comhttps://github.com/LibRaw/LibRaw/commit/bc3aaf4223fdb70d52d470dae65c5a7923ea2a49
- github.comhttps://github.com/gtt1995
- www.libraw.orghttps://www.libraw.org/
- lists.fedoraproject.orgFEDORA-2023-220878f1bfhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E7TEZ7CLRNYYQZJ5NJGZXK6YJU46WH2L/
- lists.fedoraproject.orgFEDORA-2023-be842ba7fbhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5ICTVDRGBWGIFBTUWJLGX7QM5GWBWUG7/
- lists.debian.org[debian-lts-announce] 20230527 [SECURITY] [DLA 3433-1] libraw security updatehttps://lists.debian.org/debian-lts-announce/2023/05/msg00025.html
- www.debian.orgDSA-5412https://www.debian.org/security/2023/dsa-5412
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~esm1Available 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.