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

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

CVE-2026-25140 is a denial of service vulnerability in apko that allows attackers to cause resource exhaustion through malicious APK repositories. This post covers technical details, affected versions, and mitigation steps.

Published: February 6, 2026

CVE-2026-25140 Overview

A resource exhaustion vulnerability exists in apko, a tool that allows users to build and publish OCI container images built from apk packages. From version 0.14.8 to before 1.1.1, an attacker who controls or compromises an APK repository used by apko can cause resource exhaustion on the build host. The ExpandApk function in pkg/apk/expandapk/expandapk.go expands .apk streams without enforcing decompression limits, allowing a malicious repository to serve a small, highly-compressed .apk that inflates into a large tar stream, consuming excessive disk space and CPU time, causing build failures or denial of service.

Critical Impact

Attackers controlling a malicious APK repository can exploit this vulnerability to exhaust system resources on build hosts, leading to denial of service conditions and build infrastructure disruption.

Affected Products

  • apko versions 0.14.8 through 1.1.0
  • OCI container image build environments using vulnerable apko versions
  • CI/CD pipelines relying on apko for container image builds

Discovery Timeline

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

Technical Details for CVE-2026-25140

Vulnerability Analysis

This vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption). The core issue lies in the ExpandApk function within pkg/apk/expandapk/expandapk.go, which processes incoming .apk package streams without implementing proper decompression limits. When apko fetches packages from an APK repository, it trusts the compressed data and expands it without validating the expansion ratio or setting maximum output size constraints.

An attacker who controls or has compromised an APK repository can craft a specially constructed .apk file using compression techniques that achieve extremely high compression ratios. These "zip bomb" style attacks can produce archives that are only a few kilobytes in compressed form but expand to gigabytes or even terabytes when decompressed.

Root Cause

The root cause is the absence of limit readers when consuming data from external sources. The ExpandApk function directly decompresses incoming streams without enforcing size constraints on the decompressed output. This allows unbounded resource consumption during the expansion process.

Attack Vector

The attack requires an adversary to either control an APK repository configured in apko or compromise an existing trusted repository. Once in position, the attacker serves a malicious .apk package designed with high compression ratios. When a build process fetches and attempts to expand this package, the decompression consumes excessive disk space and CPU time, resulting in denial of service conditions on the build host.

go
// Security patch adding limit readers for external data sources
// Source: https://github.com/chainguard-dev/apko/commit/2be3903fe194ad46351840f0569b35f5ac965f09

 	"chainguard.dev/apko/pkg/build"
 	"chainguard.dev/apko/pkg/build/types"
 	"chainguard.dev/apko/pkg/cpio"
+	"chainguard.dev/apko/pkg/options"
 )

 func buildCPIO() *cobra.Command {

The patch introduces the options package which provides limit readers to constrain the amount of data consumed from external sources, preventing unbounded decompression attacks.

Detection Methods for CVE-2026-25140

Indicators of Compromise

  • Abnormally large disk space consumption during container image builds
  • Extended CPU utilization during APK package expansion operations
  • Build process timeouts or failures with out-of-memory or disk space errors
  • Unusual network traffic patterns to untrusted or recently modified APK repositories

Detection Strategies

  • Monitor build host resource utilization for sudden spikes in disk I/O and CPU usage during apko operations
  • Implement file system quotas and alerts for build directories exceeding expected size thresholds
  • Track and audit APK repository sources configured in apko build configurations
  • Review build logs for expansion operations that exceed normal duration or resource patterns

Monitoring Recommendations

  • Configure resource monitoring and alerting on container build infrastructure
  • Implement network-level monitoring for connections to APK repositories
  • Set up automated checks to verify apko version compliance across build environments
  • Establish baseline metrics for normal build resource consumption to detect anomalies

How to Mitigate CVE-2026-25140

Immediate Actions Required

  • Upgrade apko to version 1.1.1 or later immediately
  • Audit all APK repository sources for trustworthiness and integrity
  • Implement resource limits (disk quotas, memory limits) on build hosts as defense-in-depth
  • Review recent builds for signs of resource exhaustion attacks

Patch Information

This vulnerability has been patched in apko version 1.1.1. The fix introduces limit readers for all readers that consume data from external sources, preventing unbounded decompression. For detailed patch information, refer to the GitHub Commit Details and GitHub Security Advisory GHSA-f4w5-5xv9-85f6.

Workarounds

  • Restrict APK repository sources to only trusted, verified repositories
  • Implement container or VM-based isolation for build processes to limit blast radius
  • Configure disk quotas and resource limits on build hosts to prevent complete resource exhaustion
  • Monitor and rate-limit APK downloads during build operations
bash
# Configuration example - Upgrade apko to patched version
# Using go install
go install chainguard.dev/apko@v1.1.1

# Verify installed version
apko version

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

  • Vulnerability Details
  • TypeDOS

  • 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:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Technical References
  • GitHub Commit Details

  • GitHub Security Advisory GHSA-f4w5-5xv9-85f6
  • Related CVEs
  • CVE-2026-25122: apko Container Image Tool DoS Vulnerability

  • CVE-2026-25121: apko Path Traversal 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