CVE-2020-35532
NixOS vulnerability analysis and mitigation

Overview

An out-of-bounds read vulnerability was discovered in LibRaw's 'simple_decode_row()' function (located in libraw\src\x3f\x3f_utils_patched.cpp). The vulnerability can be triggered via an image with a large row_stride field. This security issue was assigned CVE-2020-35532 and was reported by GitHub user GirlElecta (Debian LTS, CVE Mitre).

Technical details

The vulnerability exists in the simple_decode_row() function within LibRaw's X3F format processing code. The issue occurs when processing images with a large row_stride field, which can lead to an out-of-bounds read condition. The fix involved adding a boundary check to verify that the data offset does not exceed the available buffer size, specifically checking if rowrow_stride is greater than ID->data_size - (ID->columnssizeof(uint32_t)) (LibRaw Commit).

Impact

When exploited, this vulnerability could lead to an out-of-bounds read condition, potentially causing program crashes or allowing an attacker to read sensitive information from memory. The vulnerability affects applications that use LibRaw for processing X3F format images (Debian Security).

Exploitability

The vulnerability can be triggered by processing specially crafted X3F image files with manipulated row_stride values. A proof-of-concept exploit was demonstrated using ImageMagick's convert command, which resulted in a crash when processing a malicious X3F file (GitHub Issue).

Mitigation and workarounds

The vulnerability has been patched in various LibRaw versions across different distributions. Debian released version 0.19.2-2+deb10u1 for Debian 10 (Buster) to address this issue. Users are recommended to upgrade their LibRaw packages to the latest available version that includes the security fix (Debian LTS).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-84121CRITICAL9.6
  • NixOS logoNixOS
  • firefox-esr
NoYesSep 01, 2026
CVE-2026-84123HIGH8.8
  • NixOS logoNixOS
  • thunderbird
NoYesSep 01, 2026
CVE-2026-84125MEDIUM5.4
  • NixOS logoNixOS
  • firefox
NoYesSep 01, 2026
CVE-2026-84124MEDIUM5.4
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesSep 01, 2026
CVE-2026-84122MEDIUM5.4
  • NixOS logoNixOS
  • firefox-esr
NoYesSep 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management