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-2025-24362

CVE-2025-24362: CodeQL Action Information Disclosure Flaw

CVE-2025-24362 is an information disclosure vulnerability in CodeQL Action that exposes environment variables and secrets in debug artifacts. This article covers technical details, affected versions, and mitigation steps.

Published: May 26, 2026

CVE-2025-24362 Overview

CVE-2025-24362 is an information disclosure vulnerability in the GitHub CodeQL Action that exposes workflow environment variables — including the GITHUB_TOKEN and user-defined secrets — through debug artifacts uploaded after a failed code scanning run. The flaw affects CodeQL Action versions <= 3.28.2 and CodeQL CLI versions >= 2.9.2 and <= 2.20.2 when scanning Java or Kotlin repositories with debug artifacts enabled. Any user with read access to the affected repository can download the artifact and recover the exposed secrets. The issue is classified under [CWE-532] (Insertion of Sensitive Information into Log File).

Critical Impact

A leaked GITHUB_TOKEN valid for up to 24 hours can grant attackers the workflow's repository permissions, enabling supply chain attacks against the scanned repository.

Affected Products

  • GitHub CodeQL Action versions <= 3.28.2 (patched in 3.28.3)
  • GitHub CodeQL CLI versions >= 2.9.2 through <= 2.20.2 (patched in 2.20.3)
  • Repositories scanning Java or Kotlin source code on GitHub.com, GitHub Enterprise Cloud, and GitHub Enterprise Server

Discovery Timeline

  • 2025-01-24 - CVE-2025-24362 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-24362

Vulnerability Analysis

The CodeQL Kotlin extractor writes the complete process environment into an intermediate file while building a CodeQL database. Under normal execution, this file is removed when the database is finalized. When the workflow fails before finalization inside the github/codeql-action/analyze step, the file remains on disk and is bundled into the debug artifact that the action uploads on failure.

The debug artifact is stored in GitHub Actions and is downloadable by any user with read access to the repository. On GitHub.com and GitHub Enterprise Cloud, CodeQL Action versions >= 3.26.11 and <= 3.28.2 upload artifacts using actions/artifacts v4, which transmits the artifact before the job completes. Because the GITHUB_TOKEN remains valid until job completion or 24 hours, an attacker who retrieves the artifact during that window can authenticate to the repository with the workflow's permissions.

Root Cause

The Kotlin extractor in the CodeQL CLI logs all environment variables by default during database creation. This includes GITHUB_TOKEN and any secret injected via env: in the workflow. The cleanup step that deletes the intermediate log only runs after successful database finalization, leaving secrets in the working tree on failure paths.

Attack Vector

A user with repository read access — including external contributors on public repositories — can navigate to a failed code scanning workflow run, download the debug artifact, and parse the Kotlin extractor logs to extract environment variables. On GitHub.com and GitHub Enterprise Cloud running affected versions, the attacker can then replay the still-valid GITHUB_TOKEN to push commits, modify workflows, or read additional secrets, enabling supply chain compromise.

javascript
// Patch in lib/debug-artifacts.js — uploading debug artifacts is disabled
     if (toUpload.length === 0) {
         return;
     }
+    logger.info("Uploading debug artifacts is temporarily disabled");
+    return;
     let suffix = "";
     const matrix = (0, actions_util_1.getRequiredInput)("matrix");
     if (matrix) {

Source: GitHub CodeQL Action Commit 519de267

Detection Methods for CVE-2025-24362

Indicators of Compromise

  • Debug artifacts named my-debug-artifacts-* attached to failed code scanning workflow runs in repositories containing Kotlin source code.
  • Use of a GITHUB_TOKEN from a code scanning workflow run to perform Git operations, REST/GraphQL API calls, or artifact downloads from an unexpected IP address.
  • Workflow runs configured with CODEQL_ACTION_DEBUG: true or ACTIONS_STEP_DEBUG: true that fail inside the github/codeql-action/analyze step.

Detection Strategies

  • Audit the GitHub Actions API for failed CodeQL workflow runs on Java/Kotlin repositories that uploaded debug artifacts while using vulnerable CodeQL Action versions.
  • Inspect repository audit logs for git.clone, actions.workflow_run, or pull_request events authenticated by the workflow's GITHUB_TOKEN after the artifact upload timestamp.
  • Correlate artifact download events with subsequent privileged repository activity from the same actor.

Monitoring Recommendations

  • Continuously inventory CodeQL Action and CodeQL CLI versions across all repositories using GitHub's dependency graph or organization-level workflow scans.
  • Alert on any code scanning workflow that enables debug mode in production, especially on repositories handling secrets.
  • Monitor the GitHub Security Advisory GHSA-vqf5-2xx6-9wfm and related GHSA-gqh3-9prg-j95m advisories for updated guidance.

How to Mitigate CVE-2025-24362

Immediate Actions Required

  • Upgrade CodeQL Action to 3.28.3 or later and CodeQL CLI to 2.20.3 or later in all workflows that pin a fixed version.
  • Delete any existing debug artifacts produced by failed CodeQL runs on Java/Kotlin repositories using vulnerable versions.
  • Rotate any user-defined secrets that were exposed as environment variables to affected workflows.
  • Review repository audit logs for unauthorized use of the GITHUB_TOKEN issued to affected workflow runs.

Patch Information

The fix is committed in 519de267, which disables debug artifact uploads pending a deeper remediation, and is shipped in CodeQL Action 3.28.3. The Kotlin extractor in CodeQL CLI 2.20.3 no longer logs the full environment. See pull requests #1074 and #2482 for the implementation details.

Workarounds

  • Disable debug artifact uploads by removing debug: true and unsetting ACTIONS_STEP_DEBUG from CodeQL workflows until patched versions are deployed.
  • Avoid passing sensitive secrets as environment variables to CodeQL workflows; use the action's documented inputs instead.
  • Restrict repository read access where feasible so untrusted users cannot download workflow artifacts on private repositories.
bash
# Pin CodeQL Action to a patched version in .github/workflows/codeql.yml
- uses: github/codeql-action/init@v3.28.3
  with:
    languages: java-kotlin
# Ensure debug mode is not enabled in production scans
# debug: false  (default)

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechGithub

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.29%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-532
  • Technical References
  • GitHub Code Scanning Troubleshooting

  • GitHub CodeQL Action Commit

  • GitHub CodeQL Action Pull Request

  • GitHub CodeQL Action Pull Request

  • GitHub Security Advisory GHSA-vqf5-2xx6-9wfm

  • GitHub Security Advisory GHSA-gqh3-9prg-j95m

  • Hacker News Discussion

  • Praetorian Blog on CodeQL Leak
  • Related CVEs
  • CVE-2026-23654: zero-shot-scfoundation RCE Vulnerability

  • CVE-2026-0573: GitHub Enterprise Server Auth Bypass Flaw

  • CVE-2025-23369: GitHub Enterprise Server Auth Bypass Flaw

  • CVE-2023-36867: GitHub Pull Requests RCE 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