Home / github / codeql-action / CVE-2021-32638
CVE-2021-32638: is it exploited, and which versions of github codeql-action are affected and fixed?
CVE-2021-32638 is an information disclosure 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, 16:39 UTC). Affected: codeql-action < codeql-bundle-20210304 (CVE record by GitHub_M). Fixed in 20210304 (NVD). Severity: Medium (4.4, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:57 UTC.
What is CVE-2021-32638?
CodeQL runner: Command-line options that make GitHub access tokens visible to other processes are now deprecated
Github's CodeQL action is provided to run CodeQL-based code scanning on non-GitHub CI/CD systems and requires a GitHub access token to connect to a GitHub repository. The runner and its documentation previously suggested passing the GitHub token as a command-line parameter to the process instead of reading it from a file, standard input, or an environment variable. This approach made the token visible to other processes on the same machine, for example in the output of the `ps` command. If the CI system publicly exposes the output of `ps`, for example by logging the output, then the GitHub access token can be exposed beyond the scope intended. Users of the CodeQL runner on 3rd-party systems, who are passing a GitHub token via the `--github-auth` flag, are affected. This applies to both GitHub.com and GitHub Enterprise users. Users of the CodeQL Action on GitHub Actions are not affected. The `--github-auth` flag is now considered insecure and deprecated. The undocumented `--external-repository-token` flag has been removed. To securely provide a GitHub access token to the CodeQL runner, users should **do one of the following instead**: Use the `--github-auth-stdin` flag and pass the token on the command line via standard input OR set the `GITHUB_TOKEN` environment variable to contain the token, then call the command without passing in the token. The old flag remains present for backwards compatibility with existing workflows. If the user tries to specify an access token using the `--github-auth` flag, there is a deprecation warning printed to the terminal that directs the user to one of the above options. All CodeQL runner releases codeql-bundle-20210304 onwards contain the patches. We recommend updating to a recent version of the CodeQL runner, storing a token in your CI system's secret storage mechanism, and passing the token to the CodeQL runner using `--github-auth-stdin` or the `GITHUB_TOKEN` environment variable. If still using the old flag, ensure that process output, such as from `ps`, is not persisted in CI logs.
From the CVE record by GitHub_M, last updated August 3, 2024, 23:25 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| github | codeql-action | < codeql-bundle-20210304 |
As the CVE record by GitHub_M states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| github | codeql action | before 20210304 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:53 UTC.
How severe is CVE-2021-32638?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.4 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N | GitHub_M |
| Medium 4.4 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N | NVD |
| Low 2.1 | CVSS 2.0 | AV:L/AC:L/Au:N/C:P/I:N/A:N | NVD |
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-2021-32638 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.40% probability of exploitation activity in the next 30 days, percentile 36.4 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
- CWE-214 Invocation of Process Using Visible Sensitive Information
Where are the vendor advisories and references?
- https://github.com/github/codeql-action/security/advisories/GHSA-g36v-2xff-pv5m x_refsource_CONFIRM
- https://github.com/github/codeql-action/commit/58defc0652e935f6f2ffc70a82828b98d75476fb x_refsource_MISC
- https://github.com/github/codeql-action/commit/88714e3a60e72ec53caa0e6a203652ee1f3fb1db x_refsource_MISC
- https://github.com/github/codeql-action/releases/tag/codeql-bundle-20210304 x_refsource_MISC
- https://www.netmeister.org/blog/passing-passwords.html x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- May 12, 2021
- Published
- May 25, 2021, 17:10 UTC
- CVE record updated
- August 3, 2024, 23:25 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 03:53 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:57 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect codeql-action?
- Jan 24, 2025CVE-2025-24362 github codeql-action: sensitive information written to log files
Questions about CVE-2021-32638
Is CVE-2021-32638 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.40% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of github codeql-action are affected by CVE-2021-32638?
codeql-action < codeql-bundle-20210304, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2021-32638?
20210304, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-32638?
Medium (4.4, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2021-32638?
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.