CVE-2023-33551
NixOS vulnerability analysis and mitigation

Overview

A heap buffer overflow vulnerability (CVE-2023-33551) was discovered in erofs-utils version 1.6. The vulnerability exists in the erofsfsckdirentiter function in fsck/main.c, which allows remote attackers to execute arbitrary code via a crafted erofs filesystem image (GitHub Issue, NVD).

Technical details

The vulnerability occurs when the directory path is too deep and the path name concatenation exceeds the allocated buffer size of PATHMAX (4096 bytes). The issue arises in the erofsfsckdirentiter function where strncpy attempts to concatenate the path string without proper bounds checking, leading to a heap-based buffer overflow ([GitHub Issue](https://github.com/lometsj/blogrepo/issues/2)). The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

A successful exploitation of this vulnerability could allow remote attackers to execute arbitrary code through a specially crafted erofs filesystem image. The high CVSS score indicates potential severe impacts on system confidentiality, integrity, and availability (NVD).

Mitigation and workarounds

The vulnerability has been patched in updated versions of erofs-utils. Fedora has released security updates (version 1.6-3) for both Fedora 38 and 39 that include fixes for this vulnerability (Fedora Update 38, Fedora Update 39).

Additional resources


SourceThis report was generated using AI

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