Security Advisories (2)
CVE-2026-74759 (2026-11-01)

Google::Auth versions 0.12 for Perl allow server side request forgery via unvalidated credential_source URLs in AWS external account credentials. An external_account configuration with the AWS subject token type selects Google::Auth::ExternalAccountCredentials::Aws. Its retrieve_subject_token sends requests to the imdsv2_session_token_url, url and region_url fields of credential_source without the host check that the other credential classes apply. Any caller that builds credentials from a configuration it does not fully control issues GET and PUT requests to hosts the configuration names, including internal services and link-local metadata endpoints.

CVE-2026-74760 (2026-11-01)

Google::Auth versions from 0.11 through 0.12 for Perl accept an authorization code from any local process because the gcloud-auth login callback does not check the OAuth state. The gcloud-auth login and application-default login commands send a state parameter with the authorization request, then take the code from the first request to reach their loopback listener without comparing the returned state. A local attacker can submit an authorization code for their own Google account. The CLI exchanges it and stores the refresh token as the user's credentials, so the user's tools then act as the attacker's account.

NAME

Google::Auth::EnvironmentVars - Environment variables used by Google::Auth

VERSION

Version 0.09

SYNOPSIS

Canonical package for reading environment variables used with Google::Auth

METHODS

PROJECT

This env variable is used by Google::Auth to explicitly set a project ID. This environment variable is also used by the Google Cloud Perl Library.

LEGACY_PROJECT

This environment variable is used instead of the current one in some situations (such as Google App Engine).

CREDENTIALS

Environment variable defining the location of Google application default credentials

CLOUD_SDK_CONFIG_DIR

The environment variable name which can replace ~/.config if set

GCE_METADATA_ROOT

This and the following variable allow for customization of the addresses used when contacting the GCE metadata service.

GCE_METADATA_IP

AUTHOR

C.J. Collier, <cjac at google.com>

BUGS AND SUPPORT

Please report any bugs or feature requests to the GitHub issue tracker at https://github.com/GoogleCloudPlatform/google-auth-library-perl/issues or via RT at https://rt.cpan.org/Dist/Display.html?Name=Google-Auth.

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2020 Google LLC and contributors

This program is released under the following license: Apache 2.0