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

CVE-2026-25121: apko Path Traversal Vulnerability

CVE-2026-25121 is a path traversal vulnerability in apko affecting versions 0.14.8 to before 1.1.1. Attackers can escape installation directories via malicious APK packages. This article covers technical details, impact, and patches.

Published: February 6, 2026

CVE-2026-25121 Overview

A path traversal vulnerability has been identified in apko, a tool that allows users to build and publish OCI container images from apk packages. The vulnerability exists in apko's dirFS filesystem abstraction, where the MkdirAll, Mkdir, and Symlink methods in pkg/apk/fs/rwosfs.go use filepath.Join() without validating that the resulting path stays within the base directory. This flaw enables attackers to create directories or symlinks outside the intended installation root.

Critical Impact

An attacker who can supply a malicious APK package (e.g., via a compromised or typosquatted repository) could escape the installation root and write files to arbitrary locations on the host filesystem.

Affected Products

  • apko versions 0.14.8 to before 1.1.1

Discovery Timeline

  • 2026-02-04 - CVE CVE-2026-25121 published to NVD
  • 2026-02-05 - Last updated in NVD database

Technical Details for CVE-2026-25121

Vulnerability Analysis

This path traversal vulnerability (CWE-23) occurs due to improper input validation in apko's filesystem abstraction layer. The affected code in pkg/apk/fs/rwosfs.go fails to sanitize user-controlled path components before joining them with the base directory. When processing APK packages, the MkdirAll, Mkdir, and Symlink methods directly concatenate paths using Go's filepath.Join() function without verifying that the resulting path remains within the intended directory boundary.

The vulnerability allows an attacker to break out of the container build environment's sandboxed filesystem by crafting malicious APK packages containing path components with directory traversal sequences (such as ../). Since Go's filepath.Join() cleans paths but does not prevent traversal above the base directory, an attacker-supplied path like ../../etc/malicious would resolve to a location outside the intended installation root.

Root Cause

The root cause is the missing boundary check after filepath.Join() operations in the filesystem abstraction layer. The MkdirAll, Mkdir, and Symlink methods in pkg/apk/fs/rwosfs.go fail to validate that the resolved path remains under the designated base directory. Proper remediation requires comparing the canonical resolved path against the base directory to ensure containment.

Attack Vector

The attack requires an attacker to supply a malicious APK package to a system running vulnerable versions of apko. This can be achieved through several vectors:

  1. Compromised Repository: Gaining access to an APK repository and injecting malicious packages
  2. Typosquatting: Creating packages with names similar to legitimate packages to trick users
  3. Man-in-the-Middle: Intercepting unprotected APK downloads and injecting malicious content
  4. Social Engineering: Convincing users to add untrusted repositories to their apko configuration

Once a malicious APK is processed, the attacker can create arbitrary directories or symlinks outside the installation root, potentially leading to arbitrary file writes or overwriting critical system files during the container build process.

The vulnerability is exploitable over the network without requiring authentication or user interaction. The impact is limited to integrity compromise, as the attacker can modify files outside the intended directory but cannot directly read sensitive data or cause denial of service through this vulnerability alone.

Detection Methods for CVE-2026-25121

Indicators of Compromise

  • Unexpected directories or symlinks created outside the apko working directory during container builds
  • APK packages containing path components with ../ sequences in filenames or paths
  • Unusual file system modifications in parent directories of the apko installation root
  • Build logs showing file operations targeting paths outside the expected container root

Detection Strategies

  • Monitor apko build processes for file system operations that escape the designated build directory
  • Implement file integrity monitoring on critical system directories during container build operations
  • Audit APK package contents for suspicious path traversal patterns before processing
  • Review container build logs for unexpected path resolutions or directory creations

Monitoring Recommendations

  • Enable verbose logging for apko build operations to capture all filesystem activities
  • Implement real-time alerting on filesystem changes in sensitive directories during builds
  • Use sandbox environments with strict filesystem access controls for building untrusted images
  • Monitor network connections to untrusted or recently registered APK repositories

How to Mitigate CVE-2026-25121

Immediate Actions Required

  • Upgrade apko to version 1.1.1 or later immediately
  • Audit all APK repositories configured in your environment for unauthorized packages
  • Review recent container builds for signs of exploitation
  • Implement network segmentation to restrict access to APK repositories from build systems

Patch Information

The vulnerability has been patched in apko version 1.1.1. The fix implements proper path validation to ensure that resolved paths remain within the intended base directory. Users should upgrade to version 1.1.1 or later to address this vulnerability.

For technical details on the patch, refer to the GitHub Commit Details and the GitHub Security Advisory GHSA-5g94-c2wx-8pxw.

Workarounds

  • Restrict APK repository sources to only trusted, verified repositories until the patch can be applied
  • Run apko builds in isolated environments with limited filesystem access
  • Implement strict content scanning of APK packages before processing
  • Use read-only bind mounts for sensitive host directories during container builds
bash
# Configuration example
# Upgrade apko to patched version
go install chainguard.dev/apko@v1.1.1

# Verify installed version
apko version

# Run builds in isolated environment with restricted filesystem access
# Example using Docker to sandbox the build process
docker run --rm -v /path/to/config:/config:ro \
  --read-only --tmpfs /tmp \
  cgr.dev/chainguard/apko:latest build /config/apko.yaml output.tar

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechApko

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-23
  • Technical References
  • GitHub Commit Details

  • GitHub Security Advisory GHSA-5g94-c2wx-8pxw
  • Related CVEs
  • CVE-2026-25122: apko Container Image Tool DoS Vulnerability

  • CVE-2026-25140: apko OCI Image Builder DoS Vulnerability

  • CVE-2025-53945: apko Privilege Escalation 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