npitre cramfs-tools Path Traversal Vulnerability in Directory Handler

Vulnerability

A path traversal vulnerability has been identified in npitre cramfs-tools versions through 2.1. The issue resides in the Directory Handler component, specifically within the do_directory function of cramfsck.c. This vulnerability allows for manipulation that could lead to unauthorized file writes outside the intended extraction directory. The exploitation can only be carried out in a local environment. The vulnerability has been publicly disclosed and can be exploited by crafting a specific cramfs image. Upgrading to version 2.2 addresses this issue.

Impact

Exploitation of this vulnerability allows for arbitrary file writes outside the designated extraction directory, potentially overwriting important files or disrupting firmware analysis processes that rely on proper filesystem extraction.

Reproduction

The vulnerability can be reproduced by creating a cramfs image with a directory entry name that includes path traversal components, such as '../'. This crafted image can then be extracted using the vulnerable version of the cramfsck tool, which will inadvertently write files outside the intended directory.

Remediation

Users are advised to upgrade to npitre cramfs-tools version 2.2, which includes the necessary fix for this vulnerability.

Added: May 11, 2026, 5:20 AM
Updated: May 11, 2026, 5:20 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
4.2
remediation
0.0
relevance
8.0
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.