Home / github / codeql-action / CVE-2025-24362
CVE-2025-24362: is it exploited, and which versions of github codeql-action are affected and fixed?
CVE-2025-24362 is a sensitive information written to log files vulnerability in github codeql-action. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: github/codeql-action from 3.26.11 before 3.28.3 and github/codeql-action 2.26.11 and later, no fix listed (GitHub advisory GHSA-vqf5-2xx6-9wfm). Fixed in 3.28.3 (GitHub advisory GHSA-vqf5-2xx6-9wfm). Severity: High (7.1, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:23 UTC.
What is CVE-2025-24362?
CodeQL GitHub Action failed workflow writes GitHub PAT to debug artifacts
In some circumstances, debug artifacts uploaded by the CodeQL Action after a failed code scanning workflow run may contain the environment variables from the workflow run, including any secrets that were exposed as environment variables to the workflow. Users with read access to the repository would be able to access this artifact, containing any secrets from the environment. This vulnerability is patched in CodeQL Action version 3.28.3 or later, or CodeQL CLI version 2.20.3 or later. For some affected workflow runs, the exposed environment variables in the debug artifacts included a valid `GITHUB_TOKEN` for the workflow run, which has access to the repository in which the workflow ran, and all the permissions specified in the workflow or job. The `GITHUB_TOKEN` is valid until the job completes or 24 hours has elapsed, whichever comes first. Environment variables are exposed only from workflow runs that satisfy all of the following conditions: - Code scanning workflow configured to scan the Java/Kotlin languages. - Running in a repository containing Kotlin source code. - Running with debug artifacts enabled. - Using CodeQL Action versions <= 3.28.2, and CodeQL CLI versions >= 2.9.2 (May 2022) and <= 2.20.2. - The workflow run fails before the CodeQL database is finalized within the `github/codeql-action/analyze` step. - Running in any GitHub environment: GitHub.com, GitHub Enterprise Cloud, and GitHub Enterprise Server. Note: artifacts are only accessible to users within the same GitHub environment with access to the scanned repo. The `GITHUB_TOKEN` exposed in this way would only have been valid for workflow runs that satisfy all of the following conditions, in addition to the conditions above: - Using CodeQL Action versions >= 3.26.11 (October 2024) and <= 3.28.2, or >= 2.26.11 and < 3. - Running in GitHub.com or GitHub Enterprise Cloud only (not valid on GitHub Enterprise Server). In rare cases during advanced setup, logging of environment variables may also occur during database creation of Java, Swift, and C/C++. Please read the corresponding CodeQL CLI advisory GHSA-gqh3-9prg-j95m for more details. In CodeQL CLI versions >= 2.9.2 and <= 2.20.2, the CodeQL Kotlin extractor logs all environment variables by default into an intermediate file during the process of creating a CodeQL database for Kotlin code. This is a part of the CodeQL CLI and is invoked by the CodeQL Action for analyzing Kotlin repositories. On Actions, the environment variables logged include GITHUB_TOKEN, which grants permissions to the repository being scanned. The intermediate file containing environment variables is deleted when finalizing the database, so it is not included in a successfully created database. It is, however, included in the debug artifact that is uploaded on a failed analysis run if the CodeQL Action was invoked in debug mode. Therefore, under these specific circumstances (incomplete database creation using the CodeQL Action in debug mode) an attacker with access to the debug artifact would gain unauthorized access to repository secrets from the environment, including both the `GITHUB_TOKEN` and any user-configured secrets made available via environment variables. The impact of the `GITHUB_TOKEN` leaked in this environment is limited: - For workflows on GitHub.com and GitHub Enterprise Cloud using CodeQL Action versions >= 3.26.11 and <= 3.28.2, or >= 2.26.11 and < 3, which in turn use the `actions/artifacts v4` library, the debug artifact is uploaded before the workflow job completes. During this time the `GITHUB_TOKEN` is still valid, providing an opportunity for attackers to gain access to the repository. - For all other workflows, the debug artifact is uploaded after the workflow job completes, at which point the leaked `GITHUB_TOKEN` has been revoked and cannot be used to access the repository.
From the CVE record by GitHub_M, last updated March 31, 2025, 13:47 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| github | codeql-action | >= 3.26.11, <= 3.28.2 >= 2.26.11, < 3 |
As the CVE record by GitHub_M states it, last updated March 31, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| GitHub Actions | github/codeql-action | >= 3.26.11, < 3.28.3 | 3.28.3 | GHSA-vqf5-2xx6-9wfm |
| GitHub Actions | github/codeql-action | >= 2.26.11 | none listed | GHSA-vqf5-2xx6-9wfm |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 31, 2025. Summary: GitHub PAT written to debug artifacts.
How severe is CVE-2025-24362?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.1 | CVSS 4.0 | 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 | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-24362 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, January 24, 2025)
- EPSS
- 1.24% probability of exploitation activity in the next 30 days, percentile 70.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-532 Insertion of Sensitive Information into Log File
- CWE-215 Insertion of Sensitive Information Into Debugging Code
Where are the vendor advisories and references?
- https://github.com/github/codeql-action/security/advisories/GHSA-vqf5-2xx6-9wfm x_refsource_CONFIRM
- https://github.com/github/codeql-cli-binaries/security/advisories/GHSA-gqh3-9prg-j95m x_refsource_MISC
- https://github.com/github/codeql-action/pull/1074 x_refsource_MISC
- https://github.com/github/codeql-action/pull/2482 x_refsource_MISC
- https://github.com/github/codeql-action/commit/519de26711ecad48bde264c51e414658a82ef3fa x_refsource_MISC
- https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/logs-not-detailed-enough x_refsource_MISC
- https://news.ycombinator.com/item?id=43527044
- https://www.praetorian.com/blog/codeqleaked-public-secrets-exposure-leads-to-supply-chain-attack-on-github-codeql/
When was it published, and where is the official record?
- Reserved
- January 20, 2025
- Published
- January 24, 2025, 18:04 UTC
- CVE record updated
- March 31, 2025, 13:47 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 08:58 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:23 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect codeql-action?
- May 25, 2021CVE-2021-32638 github codeql-action: information disclosure
Questions about CVE-2025-24362
Is CVE-2025-24362 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 1.24% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of github codeql-action are affected by CVE-2025-24362?
github/codeql-action from 3.26.11 before 3.28.3 and github/codeql-action 2.26.11 and later, no fix listed, per the GitHub advisory GHSA-vqf5-2xx6-9wfm. The tables above give every range the sources list.
Which version fixes CVE-2025-24362?
3.28.3, per the GitHub advisory GHSA-vqf5-2xx6-9wfm. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-24362?
High (7.1, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-24362?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.