CVE-2024-25129 in Github Codeql Cli
The CodeQL CLI repo holds binaries for the CodeQL command line interface (CLI). Prior to version 2.16.3, an XML parser used by the CodeQL CLI to read various auxiliary files is vulnerable to an XML External Entity attack. If a vulnerable version of the CLI is used to process either a maliciously modified CodeQL data...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Github | Codeql Cli | < 2.16.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
The CodeQL CLI repo holds binaries for the CodeQL command line interface (CLI). Prior to version 2.16.3, an XML parser used by the CodeQL CLI to read various auxiliary files is vulnerable to an XML External Entity attack. If a vulnerable version of the CLI is used to process either a maliciously modified CodeQL database, or a specially prepared set of QL query sources, the CLI can be made to make an outgoing HTTP request to an URL that contains material read from a local file chosen by the attacker. This may result in a loss of privacy of exfiltration of secrets. Security researchers and QL authors who receive databases or QL source files from untrusted sources may be impacted. A single untrusted `.ql` or `.qll` file cannot be affected, but a zip archive or tarball containing QL sources may unpack auxiliary files that will trigger an attack when CodeQL sees them in the file system. Those using CodeQL for routine analysis of source trees with a preselected set of trusted queries are not affected. In particular, extracting XML files from a source tree into the CodeQL database does not make one vulnerable. The problem is fixed in release 2.16.3 of the CodeQL CLI. Other than upgrading, workarounds include not accepting CodeQL databases or queries from untrusted sources, or only processing such material on a machine without an Internet connection. Customers who use older releases of CodeQL for security scanning in an automated CI system and cannot upgrade for compliance reasons can continue using that version. That use case is safe. If such customers have a private query pack and use the `codeql pack create` command to precompile them before using them in the CI system, they should be using the production CodeQL release to run `codeql pack create`. That command is safe as long as the QL source it precompiled is trusted. All other development of the query pack should use an upgraded CLI.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-25129 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-190014-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| Published | 2024-02-22 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-611: CWE-611
Related attack patterns (CAPEC)
CAPEC-221 Data Serialization External Entities Blowup via CWE-611
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
The CodeQL CLI prior to version 2.16.3 is vulnerable to an XML External Entity (XXE) attack due to an insecure XML parser. This could allow an attacker to perform unauthorized actions, such as reading arbitrary files or making network requests, if a maliciously crafted XML file is processed by the CLI.
An attacker can exploit this vulnerability by creating a malicious XML file that, when processed by the CodeQL CLI, triggers the XXE vulnerability. This can lead to unauthorized access to files on the system or network requests to external servers.
Questions
What is CVE-2024-25129?
The CodeQL CLI prior to version 2.16.3 is vulnerable to an XML External Entity (XXE) attack due to an insecure XML parser. This could allow an attacker to perform unauthorized actions, such as reading arbitrary files or making network requests, if a maliciously crafted XML file is processed by the CLI.
What is the CVSS score for CVE-2024-25129?
CVE-2024-25129 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N. EPSS: 1.1%.
Is CVE-2024-25129 actively exploited?
No confirmed active exploitation of CVE-2024-25129 as of 2026-09-25.
How do I remediate CVE-2024-25129?
Priority: MEDIUM. Advisory: https://github.com/github/codeql-cli-binaries/releases/tag/v2.16.3 PSIRT: [email protected]
What systems are affected by CVE-2024-25129?
CVE-2024-25129 affects Github Codeql Cli.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Github","product":"Codeql Cli","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.