LibRaw Image File x3f_utils_patched.cpp get_huffman_diff out-of-bounds

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.

A vulnerability classified as problematic was found in LibRaw (Image Processing Software) (the affected version is unknown). This vulnerability affects the function get_huffman_diff of the file libraw\src\x3f\x3f_utils_patched.cpp of the component Image File Handler. The manipulation with an unknown input leads to a out-of-bounds vulnerability. The CWE definition for the vulnerability is CWE-125. The software reads data past the end, or before the beginning, of the intended buffer. As an impact it is known to affect confidentiality. CVE summarizes:

In LibRaw, an out-of-bounds read vulnerability exists within the get_huffman_diff() function (libraw\src\x3f\x3f_utils_patched.cpp) when reading data from an image file.

The weakness was presented 09/02/2022 as 270. The advisory is shared for download at This vulnerability was named CVE-2020-35531 since 12/17/2020. Successful exploitation requires user interaction by the victim. There are known technical details, but no exploit is available.

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





  • open-source

CPE 2.3info

CPE 2.2info


VulDB Meta Base Score: 4.9
VulDB Meta Temp Score: 4.8

VulDB Base Score: 4.3
VulDB Temp Score: 4.1
VulDB Vector: 🔒
VulDB Reliability: 🔍

NVD Base Score: 5.5
NVD Vector: 🔒



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


Class: Out-of-bounds
CWE: CWE-125 / CWE-119
ATT&CK: Unknown

Local: No
Remote: Yes

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒


Threat Intelligenceinfo

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


Recommended: Patch
Status: 🔍

0-Day Time: 🔒

Patch: d75af00681a74dcc8b929207eb895611a6eceb68


12/17/2020 CVE reserved
09/02/2022 +623 days Advisory disclosed
09/02/2022 +0 days VulDB entry created
10/11/2022 +39 days VulDB last update


Advisory: 270
Status: Confirmed

CVE: CVE-2020-35531 (🔒)


Created: 09/02/2022 09:38 AM
Updated: 10/11/2022 10:38 AM
Changes: 09/02/2022 09:38 AM (43), 10/11/2022 10:38 AM (11)
Complete: 🔍


No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!