Vulnerabilities · 2021 · Libraw
CVE-2021-32142
Libraw vulnerability
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.
Affected products
Libraw. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Libraw runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/LibRaw/LibRaw/commit/bc3aaf4223fdb70d52d470dae65c5a7923ea2a49 · Patch
- github.com/LibRaw/LibRaw/issues/400 · Exploit
- github.com/gtt1995
- lists.debian.org/debian-lts-announce/2023/05/msg00025.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E
- www.debian.org/security/2023/dsa-5412
- www.libraw.org/
- nvd.nist.gov/vuln/detail/CVE-2021-32142
- cve.org/CVERecord?id=CVE-2021-32142
More vulnerabilities in Libraw products
CVE-2025-43964CVE-2025-43963CVE-2025-43962CVE-2025-43961CVE-2023-1729CVE-2020-35535CVE-2020-35534CVE-2020-35533All 57
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.