The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2024-9675

CVE-2024-9675: Buildah Path Traversal Vulnerability

CVE-2024-9675 is a path traversal flaw in Buildah that allows attackers to mount arbitrary host directories into containers. This article covers the technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2024-9675 Overview

A path traversal vulnerability was discovered in Buildah, a tool for building OCI-compatible container images. The flaw exists in how Buildah handles cache mounts during container image builds. Cache mounts do not properly validate that user-specified paths are within the designated cache directory, allowing a RUN instruction in a Containerfile to mount an arbitrary directory from the host system (with read/write access) into the container, provided those files are accessible by the user running Buildah.

Critical Impact

Local attackers can leverage malicious Containerfiles to escape the intended cache directory boundaries and access or modify arbitrary host filesystem locations accessible to the Buildah process user, potentially leading to information disclosure or unauthorized file modifications.

Affected Products

  • Buildah Project Buildah
  • Red Hat OpenShift Container Platform (versions 4.13-4.17)
  • Red Hat Enterprise Linux 8.0 and 9.0 (including EUS, ARM64, IBM Z Systems, and Power variants)

Discovery Timeline

  • October 9, 2024 - CVE-2024-9675 published to NVD
  • August 25, 2025 - Last updated in NVD database

Technical Details for CVE-2024-9675

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as Path Traversal. The core issue lies in Buildah's cache mount handling logic, which fails to properly sanitize and validate user-supplied path arguments. When a user specifies a cache mount path in a Containerfile's RUN instruction, Buildah does not adequately verify that the resolved path remains within the expected cache directory boundaries.

The vulnerability requires local access and low privileges to exploit. An attacker must be able to execute buildah build commands with a malicious Containerfile. The impact is limited to confidentiality and integrity without availability impact, as the attacker can read from and write to arbitrary host directories that the Buildah process has permission to access.

Root Cause

The root cause is insufficient input validation in Buildah's cache mount implementation. When processing --mount=type=cache directives in RUN instructions, the code does not properly canonicalize paths or check for directory traversal sequences (such as ../) that could escape the intended cache directory. This allows an attacker to craft a Containerfile that references paths outside the designated cache storage location.

Attack Vector

The attack requires local access to a system running Buildah. An attacker crafts a malicious Containerfile containing a RUN instruction with a cache mount that specifies a path traversal sequence pointing to a sensitive host directory. When an unsuspecting user or automated CI/CD pipeline executes buildah build on this Containerfile, the malicious cache mount directive causes an arbitrary host directory to be mounted into the build container with read/write permissions.

The attacker can then access sensitive configuration files, credentials, or other data accessible to the user running Buildah. Additionally, they could modify files on the host system, potentially achieving persistence or escalating the attack.

Detection Methods for CVE-2024-9675

Indicators of Compromise

  • Containerfiles containing --mount=type=cache directives with path traversal sequences such as ../ in the target or source paths
  • Buildah processes accessing files or directories outside of expected cache locations (typically under /var/tmp/ or user-specified cache directories)
  • Unexpected file access patterns during container build operations

Detection Strategies

  • Audit Containerfiles for suspicious cache mount configurations before executing builds, particularly looking for relative path components
  • Monitor file system access by Buildah processes using tools like auditd or eBPF-based monitoring to detect access to sensitive directories
  • Implement static analysis scanning in CI/CD pipelines to flag potentially malicious Containerfile instructions

Monitoring Recommendations

  • Enable audit logging for Buildah operations and review logs for unusual cache mount paths
  • Monitor for unexpected modifications to files outside of container build directories
  • Track Buildah version usage across your environment to ensure patched versions are deployed

How to Mitigate CVE-2024-9675

Immediate Actions Required

  • Update Buildah to the latest patched version available for your distribution
  • Review and audit existing Containerfiles for suspicious cache mount configurations
  • Restrict which users can execute Buildah builds on production systems
  • Consider running Buildah in rootless mode to limit potential impact of exploitation

Patch Information

Red Hat has released multiple security advisories addressing this vulnerability across their product portfolio. Organizations should apply the appropriate patches based on their specific Red Hat Enterprise Linux or OpenShift Container Platform version:

  • RHSA-2024:8563 and subsequent advisories for RHEL 8.x and 9.x
  • RHSA-2024:9454 and RHSA-2024:9459 for RHEL 9
  • Additional advisories through 2025 including RHSA-2025:2445, RHSA-2025:2449, and RHSA-2025:3573

Refer to the Red Hat CVE page for CVE-2024-9675 for the complete list of available patches and affected versions.

Workarounds

  • Implement strict Containerfile review policies before allowing builds, rejecting any files with suspicious mount configurations
  • Use container image scanning tools to validate Containerfiles in automated pipelines before execution
  • Run Buildah with minimal filesystem permissions and in isolated environments where possible
  • Consider using SELinux or AppArmor policies to restrict Buildah's filesystem access patterns
bash
# Example: Check for suspicious cache mounts in Containerfiles
grep -rn "mount=type=cache" /path/to/containerfiles/ | grep -E "\.\.\/"

# Run buildah in rootless mode to limit impact
buildah unshare buildah build -t myimage .

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechBuildah

  • SeverityMEDIUM

  • CVSS Score4.4

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • Red Hat Security Advisory RHSA-2024:8563

  • Red Hat Security Advisory RHSA-2024:8675

  • Red Hat Security Advisory RHSA-2024:8679

  • Red Hat Security Advisory RHSA-2024:8686

  • Red Hat Security Advisory RHSA-2024:8690

  • Red Hat Security Advisory RHSA-2024:8700

  • Red Hat Security Advisory RHSA-2024:8703

  • Red Hat Security Advisory RHSA-2024:8707

  • Red Hat Security Advisory RHSA-2024:8708

  • Red Hat Security Advisory RHSA-2024:8709

  • Red Hat Security Advisory RHSA-2024:8846

  • Red Hat Security Advisory RHSA-2024:8984

  • Red Hat Security Advisory RHSA-2024:8994

  • Red Hat Security Advisory RHSA-2024:9051

  • Red Hat Security Advisory RHSA-2024:9454

  • Red Hat Security Advisory RHSA-2024:9459

  • Red Hat Security Advisory RHSA-2025:2445

  • Red Hat Security Advisory RHSA-2025:2449

  • Red Hat Security Advisory RHSA-2025:2454

  • Red Hat Security Advisory RHSA-2025:2701

  • Red Hat Security Advisory RHSA-2025:2710

  • Red Hat Security Advisory RHSA-2025:3301

  • Red Hat Security Advisory RHSA-2025:3573

  • Red Hat CVE Analysis CVE-2024-9675

  • Red Hat Bug Report #2317458
  • Related CVEs
  • CVE-2024-1753: Buildah Privilege Escalation Vulnerability

  • CVE-2022-2990: Buildah Information Disclosure Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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