Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver malicious cramfs image
-
DeliverySocial engineer privileged user to extract
-
Exploitcramfsck processes symlink entry
-
ExecutionFollow symlink to sensitive file
-
PersistApply attacker-controlled metadata
-
ImpactExploit altered permissions for privilege abuse
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling UNIX symlink resolution
|
| Exploitation Conditions | Attacker must have local access to the target system and ability to deliver a malicious cramfs image that a privileged user (root or equivalent) will process using cramfsck. Specific conditions: (1) cramfsck must be invoked with sufficient privileges to perform chown/utime operations (typically root), (2) the extraction target directory must overlap with or allow symlinks to sensitive filesystem locations, (3) the victim user must extract an attacker-controlled cramfs image. Exploitation is limited by PR:H (high privileges required) - the vulnerability does not provide initial access or privilege escalation from unprivileged users, but rather abuses existing privileged contexts. Not remotely exploitable (AV:L). Attack complexity is low (AC:L) once local access and social engineering conditions are met. No user interaction required (UI:N) beyond the privileged user's decision to run cramfsck. |
| Impact | Real-world risk is LOW to MODERATE despite the publicly available exploit. CVSS 4.2 accurately reflects limited exploitability: AV:L (local only), PR:H (high privileges required - attacker needs root or equivalent to run cramfsck with dangerous options), and S:U (no privilege escalation boundary crossed). The attack requires both local access AND the ability to convince a privileged user/process to extract a malicious cramfs image, significantly limiting practical scenarios. Impact is C:L/I:L/A:L (low confidentiality/integrity/availability) - an attacker can manipulate metadata but not directly read/write file contents or execute code. The public exploit (GitHub issue #13) demonstrates proof-of-concept but no evidence of active exploitation exists (not in CISA KEV, no EPSS score provided). Primary risk scenario: embedded device firmware unpacking pipelines or system administrators manually extracting untrusted cramfs images as root. However, examining the patch diff reveals a critical discrepancy: the fix converts metadata operation failures to warnings in continue-on-error mode but does NOT add symlink validation (e.g., O_NOFOLLOW flags or realpath checks). This suggests the 'patch' may address error handling brittleness rather than the symlink following root cause, raising questions about completeness of remediation. Defenders should verify whether commit b4a3a695c fully mitigates CWE-61 or merely improves error reporting. |
| Exploit ScenarioDerived | An attacker with local access crafts a malicious cramfs filesystem image containing a symbolic link at /etc/shadow pointing to a sensitive file like /etc/passwd or /root/.ssh/authorized_keys. They socially engineer a system administrator to run cramfsck with root privileges to extract or verify the image, perhaps disguised as legitimate firmware. When cramfsck's change_file_status function processes the symlink entry, it follows the link and applies attacker-controlled ownership or timestamp metadata to the target file, potentially enabling privilege escalation (e.g., making /etc/shadow world-readable) or persistence (e.g., altering SSH key timestamps to evade detection). Public exploit code exists at GitHub issue #13. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 18, 2026
Symlink following in cramfs-tools 2.2 and earlier allows local privileged attackers to manipulate file ownership or timestamps on arbitrary filesystem locations during cramfs extraction. The vulnerability exists in the change_file_status function in cramfsck.c, which performs metadata operations (chown, chmod, utime) without validating that extracted paths are not symbolic links pointing outside the extraction directory. A publicly available exploit exists (GitHub issue #13), and the vendor has released patch commit b4a3a695c. EPSS data not available; not listed in CISA KEV. CVSS 4.2 reflects the local high-privilege requirement, though real-world risk depends heavily on whether cramfs extraction occurs in privileged contexts.
RemediationAI
Apply vendor patch commit b4a3a695c9873f824907bd15659f2a6ac7667b4f available at https://github.com/npitre/cramfs-tools/commit/b4a3a695c9873f824907bd15659f2a6ac7667b4f. Note that no tagged release version incorporating this fix has been independently confirmed from available data - users may need to build from the patched commit directly. Until patching, implement these compensating controls: (1) Never run cramfsck as root or with elevated privileges on untrusted cramfs images - extract as an unprivileged user in an isolated directory first, then inspect contents before applying with privileges. Trade-off: breaks workflows requiring privileged extraction for device/driver nodes. (2) Use mandatory access control (AppArmor/SELinux) to confine cramfsck processes, denying write access outside the intended extraction path. Trade-off: requires policy development and may break legitimate use cases. (3) Extract cramfs images inside ephemeral containers or VMs when processing untrusted sources. Trade-off: adds operational complexity. WARNING: Review the patch diff carefully - it converts fatal errors to warnings for metadata operations but does not add explicit symlink validation (O_NOFOLLOW, lstat checks). Confirm with vendor whether this fully addresses CWE-61 or if additional hardening is needed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
cramfs-tools is a utility suite for creating and checking cramfs (Compressed ROM File System) filesystems, commonly used in embedded Linux systems. The vulnerability stems from CWE-61 (UNIX Symbolic Link Following), a classic TOCTOU (time-of-check-time-of-use) race condition class. The change_file_status function in cramfsck.c applies ownership and timestamp metadata to extracted files using lchown/chown/utime without first validating that the target path is not a symlink controlled by an attacker. When cramfsck extracts a malicious cramfs image containing crafted symlinks, it can be tricked into modifying metadata on arbitrary files the privileged user has access to. The patch (commit b4a3a695c) converts fatal die() calls to warn_error() for metadata operations and adds comments distinguishing corruption checks from best-effort metadata updates, suggesting the fix focuses on error handling rather than eliminating the symlink following itself. CPE 2.3:a:npitre:cramfs-tools:*:*:*:*:*:*:*:* indicates all versions through 2.2 are affected.
Know when Cramfs Tools gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was detected in npitre cramfs-tools up to 2.2. Affected is the function change_file_status of the file cramfsck.c. Performing a manipulation results in symlink following. The attack requires a local approach. The exploit is now public and may be used. The patch is named b4a3a695c9873f824907bd15659f2a6ac7667b4f. It is recommended to apply a patch to fix this issue.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-30728
GHSA-qv27-xjwp-hw6f
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB