Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious CramFS image with path traversal filenames
-
DeliveryProvide image to local user or system
-
ExploitLocal user runs cramfsck on image
-
ExecutionParser fails to validate filename syntax
-
PersistTraversal sequences escape target directory
-
ImpactArbitrary file write or read occurs
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a local authenticated user (PR:L per CVSS vector) capable of providing or creating a CramFS filesystem image containing malicious filenames, and the ability to execute cramfs-tools on that image. Specific conditions are: (1) A CramFS image with directory entries containing path traversal sequences (e.g., '..' filenames or embedded slashes in filenames) must be supplied to cramfs-tools; (2) A local user with at least standard user privileges must invoke cramfs-tools (cramfsck or similar command) to process the malicious image; (3) The attack succeeds if the tool's output directory is writable by the invoking user and no OS-level pathname restrictions (SELinux, AppArmor) prevent directory traversal. Impact is elevated if cramfs-tools is executed with sudo or elevated privileges, enabling file overwrites in protected directories. No remote exploitation is possible - the attack is strictly local, triggered via direct image file provision or command-line invocation. |
| Impact | Despite the low CVSS score of 1.9, this vulnerability poses moderate practical risk in specific contexts. CVSS vector AV:L/AC:L/PR:L indicates local access by a low-privileged user is required, and impact metrics (VC:L/VI:L/VA:L) indicate limited confidentiality, integrity, and availability consequences. However, CVSS v4.0 impact ratings are relative within scope. The path traversal primitive is real and enables an attacker with local access and ability to create or provide a CramFS image (e.g., via shared storage, software supply chain, or container image) to write files outside the intended extraction directory, potentially overwriting critical files if the tool runs with elevated privileges. The publicly available exploit code and path traversal nature (which is often chained into larger attack scenarios) elevates practical risk beyond the numeric score. The low EPSS score (implied by the E:P evidence tag suggesting proof-of-concept level) and absence of CISA KEV confirmation suggest this is not yet widely exploited in the wild, but the attack complexity is low (AC:L) and feasible for local threat actors. Risk is highest for embedded Linux distributions, container supply chains, and firmware analysis workflows processing untrusted filesystem images. |
| Exploit ScenarioDerived | An attacker creates a malicious CramFS filesystem image containing directory entries with path traversal filenames (e.g., '../../../etc/passwd' or '../../../../tmp/evil.sh'). A local user with cramfs-tools installed processes this image using the cramfsck utility to verify or extract its contents. The unvalidated filename causes the tool to write files outside the intended extraction directory, potentially overwriting system files or injecting malicious scripts if the tool is invoked with elevated privileges (e.g., via sudo or as part of a privileged firmware update process). Publicly disclosed exploit code enables this attack without requiring deep reverse engineering. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
Path traversal vulnerability in cramfs-tools up to version 2.1 allows local authenticated users to escape directory restrictions via malformed filenames in the Directory Handler component (do_directory function in cramfsck.c). Publicly available exploit code exists. CVSS score of 1.9 reflects low confidentiality, integrity, and availability impact combined with local-only attack vector and required low privilege level; however, the vulnerability enables directory traversal that could facilitate unauthorized file access or modification on systems where cramfs-tools processes untrusted filesystem images.
RemediationAI
Upgrade cramfs-tools to version 2.2 or later immediately. The vendor-released patch is available at https://github.com/npitre/cramfs-tools/releases/tag/v2.2 and was committed via patch identifier 2fc492747115b24d8a07eddd27a2d45229cb273c. The fix adds strict filename validation in the do_directory function, rejecting entries with names containing '.' or '..' components and embedded forward slashes. If immediate upgrade is not feasible, restrict execution of cramfs-tools to trusted administrators only and limit the tool's ability to write to sensitive filesystem locations via OS-level controls (e.g., SELinux, AppArmor, or chroot jails). Avoid processing CramFS images from untrusted sources (third-party firmware, unverified downloads, or adversary-controlled uploads) until patching is complete. Note that restricting tool privileges may break legitimate workflows; upgrade should be prioritized over compensating controls.
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 for creating and checking CramFS (Compressed ROM FileSystem) images, commonly used in embedded Linux systems. The vulnerability resides in the do_directory function of cramfsck.c, which processes directory entries when validating or extracting CramFS filesystem structures. The root cause is improper input validation of filenames within archive entries - specifically, the function fails to sanitize filenames containing path traversal sequences (e.g., '..', absolute paths, or embedded slashes) before constructing output paths. This is a classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) issue where untrusted filenames from an archive are concatenated into file system paths without canonicalization or validation. The vulnerability manifests when processing a specially crafted CramFS image containing malicious directory entries.
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:L/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
3DescriptionCVE.org
A security vulnerability has been detected in npitre cramfs-tools up to 2.1. Affected is the function do_directory of the file cramfsck.c of the component Directory Handler. Such manipulation leads to path traversal. The attack can only be performed from a local environment. The exploit has been disclosed publicly and may be used. Upgrading to version 2.2 is able to address this issue. The name of the patch is 2fc492747115b24d8a07eddd27a2d45229cb273c. Upgrading the affected component is recommended.
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-29032
GHSA-2x6r-r8j5-prxm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB