npitre cramfs-tools Symlink Following Vulnerability in Continue-on-Error Mode

Vulnerability

A vulnerability in npitre cramfs-tools versions through 2.2 allows for symlink following during the extraction of cramfs images. This issue arises in the 'cramfsck' utility when it is run with the continue-on-error option, and the extraction directory is a symlink. The 'change_file_status' function in 'cramfsck.c' is affected, leading to potential unauthorized file writes in the user's home directory.

Impact

Exploitation of this vulnerability can cause files to be written through symlink targets, bypassing the intended extraction directory. This could lead to unauthorized data creation in sensitive areas, such as the user's SSH directory.

Reproduction

To reproduce this vulnerability, create a symlinked directory that points to a location outside the intended extraction path. Then, use 'cramfsck' with the '-c' and '-x' options to extract a crafted cramfs image that contains files. The extraction process will follow the symlink and write the files to the target location, effectively exploiting the vulnerability.

Remediation

Users are advised to update to the latest version of npitre cramfs-tools, where this vulnerability has been addressed.

Added: May 18, 2026, 4:20 AM
Updated: May 18, 2026, 4:20 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
3.8
remediation
0.0
relevance
8.7
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.