# CVE-2021-32142

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2023-02-17 · Modified: 2025-03-19
- Aliases: MGASA-2023-0082, SUSE-SU-2023:0510-1, SUSE-SU-2023:0511-1, SUSE-SU-2023:0512-1, RHSA-2023:6343, RHSA-2024:0343, RHSA-2024:2994, UBUNTU-CVE-2021-32142, DEBIAN-CVE-2021-32142
- Record: https://cvemate.com/vulnerability/CVE-2021-32142 · JSON: https://cvemate.com/vulnerability/CVE-2021-32142/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.392%, percentile 35.507%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 22)

- debian libraw (Debian): \< 0.20.2-2.1
- ubuntu darktable (Ubuntu): All versions (No fix recorded)
- ubuntu dcraw (Ubuntu): All versions (No fix recorded)
- ubuntu digikam (Ubuntu): \< 4:6.4.0+dfsg-3ubuntu0.1~esm1
- ubuntu exactimage (Ubuntu): All versions (No fix recorded)
- ubuntu kodi (Ubuntu): All versions (No fix recorded)
- ubuntu libraw (Ubuntu): All versions (No fix recorded) \| \< 0.19.5-1ubuntu1.2 \| \< 0.20.2-2ubuntu2.22.04.1
- ubuntu rawtherapee (Ubuntu): All versions (No fix recorded)
- ubuntu ufraw (Ubuntu): All versions (No fix recorded)
- libraw libraw: 0.20.0
- mageia libraw (Mageia): \< 0.20.2-1.1.mga8
- opensuse libraw&distro=openSUSE Leap 15.4 (openSUSE): \< 0.18.9-150000.3.17.1 \| \< 0.20.2-150400.3.3.1
- redhat LibRaw (Red Hat): \< 0:0.20.2-6.el9 \| \< 0:0.19.4-2.el7\_9 \| \< 0:0.19.5-4.el8
- redhat LibRaw-debuginfo (Red Hat): \< 0:0.20.2-6.el9 \| \< 0:0.19.4-2.el7\_9 \| \< 0:0.19.5-4.el8
- redhat LibRaw-debugsource (Red Hat): \< 0:0.20.2-6.el9 \| \< 0:0.19.5-4.el8
- redhat LibRaw-devel (Red Hat): \< 0:0.20.2-6.el9 \| \< 0:0.19.4-2.el7\_9 \| \< 0:0.19.5-4.el8
- redhat LibRaw-samples-debuginfo (Red Hat): \< 0:0.20.2-6.el9 \| \< 0:0.19.5-4.el8
- redhat LibRaw-static (Red Hat): \< 0:0.19.4-2.el7\_9
- suse libraw&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP4 (SUSE Linux Enterprise): \< 0.20.2-150400.3.3.1
- suse libraw&distro=SUSE Linux Enterprise Software Development Kit 12 SP5 (SUSE Linux Enterprise): \< 0.15.4-36.1

## References (first 20 of 33)

- <https://github.com/LibRaw/LibRaw/issues/400>
- <https://github.com/LibRaw/LibRaw/commit/bc3aaf4223fdb70d52d470dae65c5a7923ea2a49>
- <https://github.com/gtt1995>
- <https://www.libraw.org/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E7TEZ7CLRNYYQZJ5NJGZXK6YJU46WH2L/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5ICTVDRGBWGIFBTUWJLGX7QM5GWBWUG7/>
- <https://lists.debian.org/debian-lts-announce/2023/05/msg00025.html>
- <https://www.debian.org/security/2023/dsa-5412>
- <https://advisories.mageia.org/MGASA-2023-0082.html>
- <https://bugs.mageia.org/show_bug.cgi?id=31594>
- <https://lists.suse.com/pipermail/sle-security-updates/2023-February/013886.html>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230510-1/>
- <https://bugzilla.suse.com/1208470>
- <https://www.suse.com/security/cve/CVE-2021-32142>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230511-1/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230512-1/>
- <https://access.redhat.com/errata/RHSA-2023:6343>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.3_release_notes/index>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2172004>

---

Data as of 2026-12-05T07:32:33.770Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
