Information Exposure Affecting cargo package, versions <0:1.97.0-2.amzn2023


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.28% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-CARGO-18910850
  • published18 Aug 2026
  • disclosed20 Aug 2026

Introduced: 18 Aug 2026

NewCVE-2026-53586  (opens in a new tab)
CWE-201  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 cargo to version 0:1.97.0-2.amzn2023 or higher.
This issue was patched in ALAS2023-2026-2065.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cargo package and not the cargo package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Prior to 1.8.6 and 1.9.5, the built-in HTTP transport in src/libgit2/transports/http.c follows an offsite initial redirect, and handle_remote_auth and handle_auth pass transport->owner->url instead of transport->server.url to the credential callback when the redirected host returns 401 Unauthorized. A callback that scopes credentials to the original trusted URL can therefore return GIT_CREDENTIAL_USERPASS_PLAINTEXT credentials that libgit2 stores in transport->server.cred and sends as an Authorization header to the redirected host. An attacker who controls a trusted Git host or an open redirect on that host can disclose HTTP Basic credentials, personal access tokens, or equivalent credentials. This issue is fixed in versions 1.8.6 and 1.9.5.

CVSS Base Scores

version 3.1