# CVE-2021-32142: libraw-bin: Buffer Overflow vulnerability in LibRaw linux/unix v0.20.0 allows attackerto escalate privileges via the LibRaw_buffe...

CVE-2021-32142 is fixed in 11 products on 1 platform, first by DEBIAN-CVE-2021-32142, released February 17, 2023. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-32142
- Priority: High
- CVSS: 7.8 (Low)
- EPSS: 0.0039
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 17, 2023

## Description

Buffer Overflow vulnerability in LibRaw linux/unix v0.20.0 allows attackerto escalate privileges via the LibRaw_buffer_datastream::gets(char*, int)in /src/libraw/src/libraw_datastream.cpp.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | LibRaw RHEL 8 | 0:0.19.5-4.el8 | [RHSA-2024:2994](https://patchblox.com/security/data/fix/linux/rhsa-2024-2994.md) | May 22, 2024 |
| Linux | LibRaw RHEL 9 | 0:0.20.2-6.el9 | [RHSA-2023:6343](https://patchblox.com/security/data/fix/linux/rhsa-2023-6343.md) | Nov 7, 2023 |
| Linux | LibRaw almalinux 8 | 0.19.5-4.el8 | [ALSA-2024:2994](https://patchblox.com/security/data/fix/linux/alsa-2024-2994.md) | May 22, 2024 |
| Linux | LibRaw almalinux 9 | 0.20.2-6.el9 | [ALSA-2023:6343](https://patchblox.com/security/data/fix/linux/alsa-2023-6343.md) | Nov 7, 2023 |
| Linux | LibRaw ol 8 | 0:0.19.5-4.el8 | [ELSA-2024-2994](https://patchblox.com/security/data/fix/linux/elsa-2024-2994.md) | May 24, 2024 |
| Linux | LibRaw ol 9 | 0:0.20.2-6.el9 | [ELSA-2023-6343](https://patchblox.com/security/data/fix/linux/elsa-2023-6343.md) | Nov 11, 2023 |
| Linux | LibRaw rocky 8 | 0:0.19.5-4.el8 | [RLSA-2024:2994](https://patchblox.com/security/data/fix/linux/rlsa-2024-2994.md) | Jun 14, 2024 |
| Linux | LibRaw-devel RHEL 8 | 0:0.19.5-4.el8 | [RHSA-2024:2994](https://patchblox.com/security/data/fix/linux/rhsa-2024-2994.md) | May 22, 2024 |
| Linux | LibRaw-devel RHEL 9 | 0:0.20.2-6.el9 | [RHSA-2023:6343](https://patchblox.com/security/data/fix/linux/rhsa-2023-6343.md) | Nov 7, 2023 |
| Linux | LibRaw-devel almalinux 8 | 0.19.5-4.el8 | [ALSA-2024:2994](https://patchblox.com/security/data/fix/linux/alsa-2024-2994.md) | May 22, 2024 |
| Linux | LibRaw-devel almalinux 9 | 0.20.2-6.el9 | [ALSA-2023:6343](https://patchblox.com/security/data/fix/linux/alsa-2023-6343.md) | Nov 7, 2023 |
| Linux | LibRaw-devel ol 8 | 0:0.19.5-4.el8 | [ELSA-2024-2994](https://patchblox.com/security/data/fix/linux/elsa-2024-2994.md) | May 24, 2024 |
| Linux | LibRaw-devel ol 9 | 0:0.20.2-6.el9 | [ELSA-2023-6343](https://patchblox.com/security/data/fix/linux/elsa-2023-6343.md) | Nov 11, 2023 |
| Linux | digikam Ubuntu 20.04 LTS (focal) | 4:6.4.0+dfsg-3ubuntu0.1~esm1 | [digikam 4:6.4.0+dfsg-3ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-digikam-4-6.4.0-dfsg-3ubuntu0.1-esm1.md) | Aug 22, 2023 |
| Linux | digikam-data Ubuntu 20.04 LTS (focal) | 4:6.4.0+dfsg-3ubuntu0.1~esm1 | [digikam-data 4:6.4.0+dfsg-3ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-digikam-data-4-6.4.0-dfsg-3ubuntu0.1-esm1.md) | Aug 22, 2023 |
| Linux | digikam-private-libs Ubuntu 20.04 LTS (focal) | 4:6.4.0+dfsg-3ubuntu0.1~esm1 | [digikam-private-libs 4:6.4.0+dfsg-3ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-digikam-private-libs-4-6.4.0-dfsg-3ubuntu0.1-esm1.md) | Aug 22, 2023 |
| Linux | libraw Debian 11.6 (bullseye) | 0.20.2-1+deb11u1 | [DSA-5412-1](https://patchblox.com/security/data/fix/linux/dsa-5412-1.md) | May 27, 2023 |
| Linux | libraw Debian 12.15 (bookworm) | 0.20.2-2.1 | [DEBIAN-CVE-2021-32142](https://patchblox.com/security/data/fix/linux/debian-cve-2021-32142.md) | Feb 17, 2023 |
| Linux | libraw Debian 13.5 (trixie) | 0.20.2-2.1 | [DEBIAN-CVE-2021-32142](https://patchblox.com/security/data/fix/linux/debian-cve-2021-32142.md) | Feb 17, 2023 |
| Linux | libraw Debian 14 | 0.20.2-2.1 | [DEBIAN-CVE-2021-32142](https://patchblox.com/security/data/fix/linux/debian-cve-2021-32142.md) | Feb 17, 2023 |
| Linux | libraw-bin Ubuntu 20.04 LTS (focal) | 0.19.5-1ubuntu1.2 | [libraw-bin 0.19.5-1ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libraw-bin-0.19.5-1ubuntu1.2.md) | May 15, 2023 |
| Linux | libraw-bin Ubuntu 22.04.1 LTS (jammy) | 0.20.2-2ubuntu2.22.04.1 | [libraw-bin 0.20.2-2ubuntu2.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libraw-bin-0.20.2-2ubuntu2.22.04.1.md) | May 15, 2023 |
| Linux | libraw-bin Ubuntu 24.10 (oracular) | 0.20.2-2.1ubuntu1 | [libraw-bin 0.20.2-2.1ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-libraw-bin-0.20.2-2.1ubuntu1.md) | Jan 16, 2026 |
| Linux | libraw-bin Ubuntu 25.04 (plucky) | 0.20.2-2.1ubuntu1 | [libraw-bin 0.20.2-2.1ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libraw-bin-0.20.2-2.1ubuntu1.md) | Jan 16, 2026 |
| Linux | libraw19 Ubuntu 20.04 LTS (focal) | 0.19.5-1ubuntu1.2 | [libraw19 0.19.5-1ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libraw19-0.19.5-1ubuntu1.2.md) | May 15, 2023 |
| Linux | libraw20 Ubuntu 22.04.1 LTS (jammy) | 0.20.2-2ubuntu2.22.04.1 | [libraw20 0.20.2-2ubuntu2.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libraw20-0.20.2-2ubuntu2.22.04.1.md) | May 15, 2023 |
| Linux | libraw23t64 Ubuntu 24.10 (oracular) | 0.20.2-2.1ubuntu1 | [libraw23t64 0.20.2-2.1ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-libraw23t64-0.20.2-2.1ubuntu1.md) | Jan 16, 2026 |
| Linux | libraw23t64 Ubuntu 25.04 (plucky) | 0.20.2-2.1ubuntu1 | [libraw23t64 0.20.2-2.1ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libraw23t64-0.20.2-2.1ubuntu1.md) | Jan 16, 2026 |
| Linux | showfoto Ubuntu 20.04 LTS (focal) | 4:6.4.0+dfsg-3ubuntu0.1~esm1 | [showfoto 4:6.4.0+dfsg-3ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-showfoto-4-6.4.0-dfsg-3ubuntu0.1-esm1.md) | Aug 22, 2023 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
