Technical impact
The Google::Auth module for Perl accepts an OAuth2 authorization code from any local process because the gcloud-auth login callback fails to verify the OAuth state returned by the provider. This omission allows a local attacker to supply a valid code from the attacker's own Google account. When the CLI exchanges the code, it stores the resulting refresh token as the user’s credentials, meaning subsequent operations performed with the user’s tools will act on behalf of the attacker’s account.
Affected Systems
Affected systems are installations of the Google::Auth CPAN module for Perl, specifically version 0.11 and 0.12. Any environment that invokes the gcloud‑auth CLI in these versions is vulnerable. Users who have updated their module or replaced it with a newer release beyond 0.12 are not affected by this flaw.
Risk and Exploitability
The vulnerability requires local access to the machine running the CLI or the ability to launch a process that can listen on the loopback interface used by gcloud-auth. The lack of an implemented state check means exploitation is straightforward for any local attacker and can occur without network connectivity. The CVSS score is 8.8, indicating high severity, and the EPSS score is <1%, suggesting a low probability of exploitation. The issue is not yet listed in CISA’s KEV catalog. Nevertheless, the flaw allows complete credential hijacking; once a malicious refresh token is stored, all commands executed by the affected tools will run as the attacker’s Google account. The risk is therefore high in environments where local code execution or untrusted processes can run on the user’s workstation or server.