Vulnerability · Published Feb 17, 2023 · Assigned by mitre
CVE-2021-32142
High 7.8
In plain English
A high-severity out-of-bounds write in the LibRaw package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.4%top 66.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | LibRaw | 0.19.5-4.el8 | ALSA-2024:2994 |
| AlmaLinux:9 | LibRaw | 0.20.2-6.el9 | ALSA-2023:6343 |
| AlmaLinux:8 | LibRaw-devel | 0.19.5-4.el8 | ALSA-2024:2994 |
| AlmaLinux:9 | LibRaw-devel | 0.20.2-6.el9 | ALSA-2023:6343 |
| Debian:12 | libraw | 0.20.2-2.1 | DEBIAN-CVE-2021-32142 |
| Debian:13 | libraw | 0.20.2-2.1 | DEBIAN-CVE-2021-32142 |
| Debian:14 | libraw | 0.20.2-2.1 | DEBIAN-CVE-2021-32142 |
| Rocky Linux:8 | LibRaw | 0:0.19.5-4.el8 | RLSA-2024:2994 |
| Ubuntu:22.04:LTS | darktable | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:24.04:LTS | darktable | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:25.10 | darktable | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:26.04:LTS | darktable | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:26.10 | darktable | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:22.04:LTS | dcraw | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:24.04:LTS | dcraw | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:25.10 | dcraw | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:26.04:LTS | dcraw | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:26.10 | dcraw | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:22.04:LTS | exactimage | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:24.04:LTS | exactimage | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:25.10 | exactimage | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:26.04:LTS | exactimage | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:26.10 | exactimage | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:22.04:LTS | kodi | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:24.04:LTS | kodi | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:25.10 | kodi | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:26.04:LTS | kodi | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:26.10 | kodi | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:22.04:LTS | libraw | 0.20.2-2ubuntu2.22.04.1 | USN-6137-1 |
| Ubuntu:22.04:LTS | libraw | 0.20.2-2ubuntu2.22.04.1 | UBUNTU-CVE-2021-32142 |
| Ubuntu:22.04:LTS | rawtherapee | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:24.04:LTS | rawtherapee | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:25.10 | rawtherapee | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:26.04:LTS | rawtherapee | no fix listed | UBUNTU-CVE-2021-32142 |
| Ubuntu:26.10 | rawtherapee | no fix listed | UBUNTU-CVE-2021-32142 |
Affected products (as reported)
Weakness: CWE-787 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/LibRaw/LibRaw/issues/400
- https://github.com/LibRaw/LibRaw/commit/bc3aaf4223fdb70d52d470dae65c5a7923ea2a49
- https://github.com/gtt1995
- https://www.libraw.org/
- FEDORA-2023-220878f1bf vendor-advisory
- FEDORA-2023-be842ba7fb vendor-advisory
- [debian-lts-announce] 20230527 [SECURITY] [DLA 3433-1] libraw security update mailing-list
- DSA-5412 vendor-advisory