LibRaw 0.20.0 on Linux/Unix libraw_datastream.cpp gets buffer overflow

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.5$0-$5k0.00

Summaryinfo

A vulnerability identified as critical has been detected in LibRaw 0.20.0 on Linux/Unix. This affects the function LibRaw_buffer_datastream::gets in the library /src/libraw/src/libraw_datastream.cpp. The manipulation leads to buffer overflow. This vulnerability is referenced as CVE-2021-32142. No exploit is available. Applying a patch is the recommended action to fix this issue.

Detailsinfo

A vulnerability was found in LibRaw 0.20.0 on Linux/Unix (Image Processing Software) and classified as critical. This issue affects the function LibRaw_buffer_datastream::gets in the library /src/libraw/src/libraw_datastream.cpp. The manipulation with an unknown input leads to a buffer overflow vulnerability. Using CWE to declare the problem leads to CWE-120. The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow. Impacted is confidentiality, integrity, and availability. The summary by CVE is:

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.

The weakness was published 02/18/2023 as 400. The advisory is shared at github.com. The identification of this vulnerability is CVE-2021-32142 since 05/07/2021. Technical details are known, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 216235 (Ubuntu 16.04 LTS / 18.04 LTS / 20.04 LTS / 22.04 LTS : digiKam vulnerabilities (USN-7266-1)), which helps to determine the existence of the flaw in a target environment.

Applying the patch bc3aaf4223fdb70d52d470dae65c5a7923ea2a49 is able to eliminate this problem. The bugfix is ready for download at github.com.

The vulnerability is also documented in the databases at Tenable (216235) and CERT Bund (WID-SEC-2023-2853). If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Affected

  • Open Source CentOS
  • Debian Linux
  • Amazon Linux 2
  • Red Hat Enterprise Linux
  • Ubuntu Linux
  • SUSE Linux
  • Oracle Linux
  • Gentoo Linux
  • Red Hat OpenShift
  • Meinberg LANTIME

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.6
VulDB Meta Temp Score: 6.5

VulDB Base Score: 5.5
VulDB Temp Score: 5.3
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Buffer overflow
CWE: CWE-120 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Partially

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 216235
Nessus Name: Ubuntu 16.04 LTS / 18.04 LTS / 20.04 LTS / 22.04 LTS : digiKam vulnerabilities (USN-7266-1)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

0-Day Time: 🔍

Patch: bc3aaf4223fdb70d52d470dae65c5a7923ea2a49

Timelineinfo

05/07/2021 🔍
02/18/2023 +652 days 🔍
02/18/2023 +0 days 🔍
12/30/2025 +1046 days 🔍

Sourcesinfo

Product: github.com

Advisory: 400
Status: Confirmed

CVE: CVE-2021-32142 (🔍)
GCVE (CVE): GCVE-0-2021-32142
GCVE (VulDB): GCVE-100-221405
CERT Bund: WID-SEC-2023-2853 - Red Hat Enterprise Linux: Mehrere Schwachstellen

Entryinfo

Created: 02/18/2023 08:00
Updated: 12/30/2025 23:33
Changes: 02/18/2023 08:00 (44), 03/18/2023 16:05 (11), 02/13/2025 16:23 (21), 12/30/2025 23:33 (8)
Complete: 🔍
Cache ID: 216::103

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!