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

CVE-2026-42575: apko Container Image RCE Vulnerability

CVE-2026-42575 is a remote code execution vulnerability in apko that allows attackers to install malicious packages through checksum bypass. This article covers technical details, affected versions, and mitigation.

Published: May 18, 2026

CVE-2026-42575 Overview

CVE-2026-42575 is a missing integrity verification vulnerability in apko, a tool that builds and publishes Open Container Initiative (OCI) container images from apk packages. Versions prior to 1.2.7 verify the signature on APKINDEX.tar.gz but never compare individually downloaded .apk packages against the checksum recorded in the signed index. Attackers who can substitute download responses through compromised mirrors, HTTP repositories, or poisoned CDN caches can inject arbitrary packages into built container images. The flaw is tracked under [CWE-345: Insufficient Verification of Data Authenticity].

Critical Impact

Arbitrary package substitution during container image builds enables supply chain compromise of downstream OCI images produced by apko.

Affected Products

  • Chainguard apko versions prior to 1.2.7
  • OCI container images built using vulnerable apko releases
  • Build pipelines consuming apk packages over untrusted transport or mirrors

Discovery Timeline

  • 2026-05-09 - CVE-2026-42575 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42575

Vulnerability Analysis

apko fetches a signed APKINDEX.tar.gz from configured repositories and validates the index signature. The index contains per-package checksums that allow build tools to confirm that each downloaded .apk matches what the repository operator signed. apko exposes the parsed checksum through ChecksumString() and computes the downloaded package's control hash during expansion. The defect is that getPackageImpl() never compares the two values, so a mismatched package is accepted and installed into the resulting image.

Because apk repositories are commonly served over HTTP or through CDN edges, an attacker positioned on the network path or controlling a mirror can return a malicious package body while leaving the signed index untouched. The result is silent substitution at build time without any signature error.

Root Cause

The root cause is a missing equality check between the index-derived checksum and the runtime-computed control hash of the downloaded package. Both values are available within pkg/apk/apk/package_getter.go, but the comparison was never invoked before the patch.

Attack Vector

Exploitation requires the attacker to influence package download responses. Practical paths include operating or compromising a mirror, intercepting HTTP repository traffic, or poisoning a CDN cache fronting the apk repository. No authentication or user interaction is required on the build host.

go
 		return nil, fmt.Errorf("expanding %s: %w", pkg.PackageName(), err)
 	}
 
+	if err := verifyControlHash(pkg, exp.ControlHash); err != nil {
+		_ = exp.Close()
+		return nil, err
+	}
+
 	// If we don't have a cache, we're done.
 	if d.cache == nil {
 		return exp, nil

Source: GitHub commit a118c3d. The patch introduces verifyControlHash to compare the downloaded package's control hash against the checksum recorded in the signed APKINDEX.

Detection Methods for CVE-2026-42575

Indicators of Compromise

  • Container images built by apko versions earlier than 1.2.7 that include packages whose control hashes do not match the signed APKINDEX entry.
  • Build logs referencing apk repositories served over http:// rather than https://, or referencing mirrors outside the organization's allowlist.
  • Unexpected binaries, services, or users inside images produced from previously stable apko configurations.

Detection Strategies

  • Re-fetch the signed APKINDEX.tar.gz for each repository used in past builds and compare the recorded checksums against the .apk files present in produced image layers.
  • Scan published OCI images for package contents that diverge from the expected apk manifest using software bill of materials (SBOM) diffing.
  • Audit CI/CD pipelines for any apko invocation pinned to a version older than 1.2.7.

Monitoring Recommendations

  • Alert on outbound build traffic to apk mirrors that are not part of an approved repository list.
  • Monitor for plaintext HTTP fetches of .apk or APKINDEX.tar.gz from build runners.
  • Track apko binary versions across build infrastructure and flag deployments still running pre-1.2.7 releases.

How to Mitigate CVE-2026-42575

Immediate Actions Required

  • Upgrade apko to version 1.2.7 or later across all build hosts and CI runners.
  • Rebuild and republish any OCI images produced by vulnerable apko versions after confirming the toolchain is patched.
  • Restrict apk repository configuration to HTTPS endpoints under organizational control or trusted upstream mirrors.

Patch Information

The fix is included in apko release v1.2.7. Technical details and credit are documented in GHSA-hcwr-pq9g-rq3m. The implementation change is in commit a118c3d, which adds verifyControlHash invocation inside getPackageImpl().

Workarounds

  • Pin apk repositories to HTTPS origins under direct organizational control to remove the mirror substitution path until patching completes.
  • Run apko builds inside isolated network segments that block egress to untrusted mirrors and CDNs.
  • Validate produced images out-of-band by comparing installed package hashes against the signed APKINDEX before publishing.
bash
# Upgrade apko to the patched release
go install chainguard.dev/apko@v1.2.7

# Verify the 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
  • TypeRCE

  • Vendor/TechApko

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.02%

  • 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-345
  • Technical References
  • GitHub Commit Update

  • GitHub Release v1.2.7

  • GitHub Security Advisory GHSA-hcwr-pq9g-rq3m
  • Related CVEs
  • CVE-2026-42576: apko OCI Image Builder DoS Vulnerability

  • CVE-2026-42574: apko Path Traversal Vulnerability

  • CVE-2026-25122: apko Container Image Tool DoS Vulnerability

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