PT-2021-19822 · Github · Codeql Runner

Jlleitschuh

·

Published

2021-05-25

·

Updated

2022-07-02

·

CVE-2021-32638

CVSS v3.1

4.4

Medium

VectorAV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions CodeQL runner (affected versions not specified)
Description The CodeQL runner previously suggested passing a GitHub token as a command-line parameter, making it visible to other processes on the same machine. This approach can expose the GitHub access token beyond its intended scope if the CI system publicly exposes the output of the ps command. Users of the CodeQL runner on 3rd-party systems who pass a GitHub token via the --github-auth flag are affected. The --github-auth flag is now considered insecure and deprecated. To securely provide a GitHub access token, users should use the --github-auth-stdin flag and pass the token via standard input or set the GITHUB TOKEN environment variable.
Recommendations To resolve the issue, update to a recent version of the CodeQL runner. Store a token in your CI system's secret storage mechanism. Pass 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.

Exploit

Fix

Information Disclosure

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2021-32638
GHSA-G36V-2XFF-PV5M

Affected Products

Codeql Runner