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-2024-42471

CVE-2024-42471: GitHub Actions Artifact Path Traversal

CVE-2024-42471 is a path traversal vulnerability in GitHub Actions artifact that enables arbitrary file writes through crafted artifacts. This article covers the technical details, affected versions, security impact, and mitigation.

Published: June 2, 2026

CVE-2024-42471 Overview

CVE-2024-42471 is a path traversal vulnerability [CWE-22] affecting the actions/artifact package in the GitHub Actions Toolkit. Versions on the 2.x branch before 2.1.2 fail to validate filenames inside downloaded artifacts. An attacker who supplies a maliciously crafted artifact can write arbitrary files outside the intended extraction directory when a workflow calls downloadArtifactInternal, downloadArtifactPublic, or streamExtractExternal. The flaw follows the classic Zip Slip pattern, where archive entries contain ../ sequences. GitHub released a fix in version 2.1.2 of the toolkit.

Critical Impact

Arbitrary file write through artifact extraction can lead to source code tampering, CI/CD pipeline compromise, and lateral movement into downstream build systems.

Affected Products

  • GitHub actions/artifact (Node.js) versions 2.0.0 through 2.1.1
  • GitHub actions/toolkit repository components consuming the vulnerable artifact module
  • Workflows and self-hosted runners depending on the 2.x branch prior to 2.1.2

Discovery Timeline

  • 2024-09-02 - CVE-2024-42471 published to the National Vulnerability Database
  • 2025-08-27 - Last updated in NVD database

Technical Details for CVE-2024-42471

Vulnerability Analysis

The actions/artifact package downloads and extracts artifact archives produced by GitHub Actions workflows. The 2.x branch before 2.1.2 extracts archive entries without validating that resolved file paths remain inside the target directory. An attacker who controls or uploads an artifact can embed entries with traversal sequences such as ../../etc/cron.d/payload. When a downstream workflow extracts the artifact, the runner writes attacker-controlled content to arbitrary locations on the file system.

The impact depends on runner privileges and reused build directories. On self-hosted runners, an attacker can overwrite shell profile scripts, SSH keys, or build configuration files. On GitHub-hosted runners, an attacker can poison subsequent build steps within the same job by overwriting source files, lockfiles, or compiled binaries before they are signed or published.

Root Cause

The root cause is missing path canonicalization during artifact extraction. The extraction logic concatenated archive entry names with the destination directory without verifying that the normalized path remained within the destination. This is the Zip Slip class of vulnerability documented by Snyk. The fix in pull request #1666 validates each entry path against the resolved extraction root before writing.

Attack Vector

Exploitation requires an attacker to deliver a crafted artifact that a victim workflow downloads. In public repositories, this can occur when a workflow consumes artifacts from a forked pull request or from a workflow run triggered by an untrusted contributor. Cross-repository artifact downloads via downloadArtifactPublic widen the attack surface. The vector is network-based and requires no authentication or user interaction once a vulnerable workflow is triggered. See the GitHub Security Advisory GHSA-6q32-hq47-5qq3 and Snyk Zip Slip Vulnerability Analysis for additional technical detail.

Detection Methods for CVE-2024-42471

Indicators of Compromise

  • Files written outside the documented artifact extraction path on GitHub Actions runners
  • Modifications to shell startup scripts, SSH authorized_keys, or build configuration files immediately following an artifact download step
  • Unexpected changes to source files or lockfiles between checkout and build steps within the same workflow run
  • Workflow logs containing artifact entry names with .. path segments

Detection Strategies

  • Inventory all workflows and reusable actions that depend on @actions/artifact 2.x and flag versions earlier than 2.1.2
  • Inspect CI/CD audit logs for artifact downloads originating from forked pull requests or untrusted workflow runs
  • Run filesystem integrity checks on self-hosted runners after artifact extraction to detect writes outside the workspace

Monitoring Recommendations

  • Forward GitHub Actions audit logs and runner filesystem telemetry to a centralized analytics platform for retrospective hunting
  • Alert on artifact archives that contain entries with traversal sequences or absolute paths
  • Monitor self-hosted runner hosts for unexpected file creation outside _work directories during workflow execution

How to Mitigate CVE-2024-42471

Immediate Actions Required

  • Upgrade @actions/artifact to version 2.1.2 or later across all workflows, composite actions, and internal toolchains
  • Audit package.json and package-lock.json files in private actions for transitive dependencies pinned to vulnerable 2.x releases
  • Rotate any secrets exposed on self-hosted runners that processed untrusted artifacts before patching

Patch Information

GitHub fixed the issue in @actions/artifact version 2.1.2. The patch is described in GitHub Pull Request #1666 and disclosed in GitHub Security Advisory GHSA-6q32-hq47-5qq3. The fix validates extracted file paths against the destination root and rejects entries that resolve outside it.

Workarounds

  • No vendor-supplied workarounds exist; upgrading to 2.1.2 or later is the only supported remediation
  • As a defense-in-depth measure, isolate artifact extraction in ephemeral runners or containers so traversal writes do not persist
  • Restrict workflows that download artifacts from forks using pull_request_target controls and require maintainer approval
bash
# Upgrade the vulnerable package in a Node.js action or toolchain
npm install @actions/artifact@^2.1.2

# Verify the resolved version
npm ls @actions/artifact

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechGithub Actions

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability7.71%

  • 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-22
  • Technical References
  • GitHub Pull Request #1666

  • Snyk Zip Slip Vulnerability Analysis
  • Vendor Resources
  • GitHub Security Advisory GHSA-6q32-hq47-5qq3
  • Latest CVEs
  • CVE-2024-8261: Prolizyazilim OBS Auth Bypass Vulnerability

  • CVE-2024-13068: LimonDesk Auth Bypass Vulnerability

  • CVE-2025-53679: Fortinet FortiSandbox RCE Vulnerability

  • CVE-2026-9446: Simple POS Inventory System SQLi Flaw
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