Skip to main content

cramfs-tools EUVDEUVD-2026-29032

| CVE-2026-8274 LOW
Path Traversal (CWE-22)
2026-05-11 VulDB GHSA-2x6r-r8j5-prxm
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious CramFS image with path traversal filenames
  2. Delivery
    Provide image to local user or system
  3. Exploit
    Local user runs cramfsck on image
  4. Execution
    Parser fails to validate filename syntax
  5. Persist
    Traversal sequences escape target directory
  6. Impact
    Arbitrary 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

cramfs-tools 2.1
cramfs-tools 2.0

Affected Packages

euvd cramfs_tools no fix

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

Vendor (VulDB) PRIMARY 1.9 LOW
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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
May 11, 2026 - 05:22 NVD
MEDIUM LOW
CVSS changed
May 11, 2026 - 05:22 NVD
5.3 (MEDIUM) 1.9 (LOW)
CVE Published
May 11, 2026 - 04:45 nvd
LOW 1.9

DescriptionCVE.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

EPSS Score
0.0%
Top 99% exploitable
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy