Skip to main content

cramfs-tools EUVDEUVD-2026-30728

| CVE-2026-8784 LOW
UNIX Symbolic Link (Symlink) Following (CWE-61)
2026-05-18 VulDB GHSA-qv27-xjwp-hw6f
1.8
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Deliver malicious cramfs image
  2. Delivery
    Social engineer privileged user to extract
  3. Exploit
    cramfsck processes symlink entry
  4. Execution
    Follow symlink to sensitive file
  5. Persist
    Apply attacker-controlled metadata
  6. Impact
    Exploit 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.

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

cramfs-tools 2.1
cramfs-tools 2.2
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 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

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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
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

2
Severity Changed
May 18, 2026 - 04:22 NVD
MEDIUM LOW
CVSS changed
May 18, 2026 - 04:22 NVD
4.2 (MEDIUM) 1.8 (LOW)

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

EPSS Score
0.0%
Top 96% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
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

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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