A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-8274

CVE-2026-8274: cramfs-tools Path Traversal Vulnerability

CVE-2026-8274 is a path traversal flaw in npitre cramfs-tools up to version 2.1 that affects the Directory Handler. This local vulnerability allows file system access bypass. Explore technical details, impact, and mitigation.

Published: May 18, 2026

CVE-2026-8274 Overview

CVE-2026-8274 is a path traversal vulnerability [CWE-22] in npitre cramfs-tools versions up to 2.1. The flaw resides in the do_directory function of cramfsck.c within the Directory Handler component. A crafted cramfs image can contain directory entries with names that include path separators or traversal sequences such as .., causing the file system checker to write files outside the intended extraction directory. Exploitation requires local access and limited privileges, and a public disclosure exists. The maintainer fixed the issue in version 2.2 via commit 2fc492747115b24d8a07eddd27a2d45229cb273c.

Critical Impact

A malicious cramfs image processed by cramfsck can write or overwrite files outside the target directory through directory entry names containing /, ., or .. components.

Affected Products

  • npitre cramfs-tools versions up to and including 2.1
  • cramfsck utility (Directory Handler / do_directory function)
  • Downstream tooling and build environments bundling vulnerable cramfs-tools releases

Discovery Timeline

  • 2026-05-11 - CVE-2026-8274 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-8274

Vulnerability Analysis

The vulnerability exists in cramfsck.c, the source of the cramfs file system checker. When do_directory iterates over directory entries inside a cramfs image, it concatenates each entry's name onto the current extraction path without validating the name itself. An attacker who supplies a crafted image can embed directory entry names that contain forward slashes or ./.. components. When cramfsck extracts the image, those names are treated as additional path segments, allowing files to be created outside the intended output directory.

The issue is classified as path traversal [CWE-22]. The attack vector is local because the attacker must convince a user or process to run cramfsck against the malicious image. The impact is bounded by the privileges of the process invoking cramfsck, but in build pipelines or rootfs preparation workflows this can include privileged accounts.

Root Cause

The root cause is missing input validation on filenames read from the cramfs directory structure. The original do_directory implementation enforced only a length check and trusted the on-disk filename. There was no rejection of /, ., or .. components, so attacker-controlled bytes in the image were passed directly into expand_fs and the subsequent file creation calls.

Attack Vector

An attacker crafts a cramfs image whose directory entries contain malicious names such as ../../etc/cron.d/payload. The attacker then delivers this image to a target that runs cramfsck for verification or extraction, for example as part of firmware unpacking, CI workflows, or filesystem inspection tooling. When the checker processes the image, files are written along the traversed path, enabling arbitrary file write within the privileges of the invoking process.

c
// Patch from cramfsck.c - validates dirent names before extraction
 		if ((pathlen + newlen) - strlen(newpath) > 3) {
 			die(FSCK_UNCORRECTED, 0, "bad filename length");
 		}
+		{
+			const char *name = newpath + pathlen;
+			if (strcmp(name, ".") == 0 || strcmp(name, "..") == 0 ||
+			    strchr(name, '/') != NULL) {
+				die(FSCK_UNCORRECTED, 0, "bad filename: %s", name);
+			}
+		}
 		expand_fs(newpath, child);

 		offset += newlen;

Source: GitHub Commit 2fc4927. The patch rejects any directory entry whose name equals ., .., or contains a / separator.

Detection Methods for CVE-2026-8274

Indicators of Compromise

  • Files created by cramfsck outside the intended extraction directory, particularly under system paths such as /etc, /usr, or /root.
  • cramfsck process invocations referencing untrusted .cramfs images received from external sources.
  • Audit log entries showing cramfsck opening or writing files whose paths contain unexpected parent-directory traversals.

Detection Strategies

  • Inspect cramfs images with a hardened parser and flag any directory entry whose name contains /, ., or .. components.
  • Hash the installed cramfs-tools binaries and compare against version 2.2 release artifacts from the upstream GitHub Release v2.2.
  • Add file integrity monitoring on directories adjacent to those used for cramfs extraction so unexpected writes outside the target path generate alerts.

Monitoring Recommendations

  • Log all cramfsck executions in build, CI, and firmware-handling environments, including the image path and invoking user.
  • Monitor execve events for cramfsck followed by file writes outside the working directory using Linux auditd or eBPF.
  • Track ingestion of cramfs images from external suppliers and require provenance checks before processing.

How to Mitigate CVE-2026-8274

Immediate Actions Required

  • Upgrade cramfs-tools to version 2.2, which contains commit 2fc492747115b24d8a07eddd27a2d45229cb273c.
  • Audit build systems, firmware extraction pipelines, and developer workstations for older cramfsck binaries and replace them.
  • Restrict execution of cramfsck against untrusted images to non-privileged, sandboxed accounts.

Patch Information

The fix is included in GitHub Release v2.2. The relevant change is GitHub Commit 2fc4927, which validates directory entry names in do_directory and aborts on any name equal to ., .., or containing /. Additional context is available in GitHub Issue #12 and VulDB #362571.

Workarounds

  • Avoid running cramfsck against cramfs images sourced from untrusted parties until the upgrade to 2.2 is complete.
  • Execute cramfsck inside a chroot, container, or unprivileged user namespace so any traversal write is contained.
  • Pre-screen cramfs images with a custom parser that rejects directory entries containing path separators or dot components.
bash
# Build and install the patched cramfs-tools (v2.2)
git clone https://github.com/npitre/cramfs-tools.git
cd cramfs-tools
git checkout v2.2
make
sudo install -m 0755 cramfsck /usr/local/bin/cramfsck
cramfsck -v /path/to/image.cramfs

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechCramfs Tools

  • SeverityLOW

  • CVSS Score1.9

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Repository: cramfs-tools

  • GitHub Commit: 2fc4927

  • GitHub Issue #12

  • GitHub Issue #12 Details

  • GitHub Release v2.2

  • VulDB Submission #810864

  • VulDB #362571

  • VulDB #362571 CTI
  • Related CVEs
  • CVE-2026-8784: cramfs-tools Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English