GHSA-mjv9-vp6w-3rc9

Suggest an improvement
Source
https://github.com/advisories/GHSA-mjv9-vp6w-3rc9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-mjv9-vp6w-3rc9/GHSA-mjv9-vp6w-3rc9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mjv9-vp6w-3rc9
Aliases
Published
2023-04-26T16:01:10Z
Modified
2023-11-08T04:12:25.966160Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
AWS SDK for Rust will log AWS credentials when TRACE-level logging is enabled for request sending
Details

The aws_sigv4::SigningParams struct had a derived Debug implementation. When debug-formatted, it would include a user's AWS access key, AWS secret key, and security token in plaintext. When TRACE-level logging is enabled for an SDK, SigningParams is printed, thereby revealing those credentials to anyone with access to logs.

Impact

All users of the AWS SDK for Rust who enabled TRACE-level logging, either globally (e.g. RUST_LOG=trace), or for the aws-sigv4 crate specifically.

Patches

  • Versions >= 0.55.1
  • 0.54.2
  • 0.53.2
  • 0.52.1
  • 0.51.1
  • 0.50.1
  • 0.49.1
  • 0.48.1
  • 0.47.1
  • 0.46.1
  • 0.15.1
  • 0.14.1
  • 0.13.1
  • 0.12.1
  • 0.11.1
  • 0.10.2
  • 0.9.1
  • 0.8.1
  • 0.7.1
  • 0.6.1
  • 0.5.3
  • 0.3.1
  • 0.2.1

Workarounds

Disable TRACE-level logging for AWS Rust SDK crates.

Database specific
{
    "nvd_published_at": "2023-04-19T18:15:07Z",
    "cwe_ids": [
        "CWE-532"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-04-26T16:01:10Z"
}
References

Affected packages

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.55.0
Fixed
0.55.1

Affected versions

0.*

0.55.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.54.1
Fixed
0.54.2

Affected versions

0.*

0.54.1

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.53.1
Fixed
0.53.2

Affected versions

0.*

0.53.1

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.52.0
Fixed
0.52.1

Affected versions

0.*

0.52.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.51.0
Fixed
0.51.1

Affected versions

0.*

0.51.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.49.0
Fixed
0.49.1

Affected versions

0.*

0.49.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.48.0
Fixed
0.48.1

Affected versions

0.*

0.48.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.47.0
Fixed
0.47.1

Affected versions

0.*

0.47.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.46.0
Fixed
0.46.1

Affected versions

0.*

0.46.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.15.0
Fixed
0.15.1

Affected versions

0.*

0.15.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.14.0
Fixed
0.14.1

Affected versions

0.*

0.14.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.13.0
Fixed
0.13.1

Affected versions

0.*

0.13.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.12.0
Fixed
0.12.1

Affected versions

0.*

0.12.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.11.0
Fixed
0.11.1

Affected versions

0.*

0.11.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.10.1
Fixed
0.10.2

Affected versions

0.*

0.10.1

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.9.0
Fixed
0.9.1

Affected versions

0.*

0.9.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.8.0
Fixed
0.8.1

Affected versions

0.*

0.8.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.7.0
Fixed
0.7.1

Affected versions

0.*

0.7.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.6.0
Fixed
0.6.1

Affected versions

0.*

0.6.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.5.2
Fixed
0.5.3

Affected versions

0.*

0.5.2

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.4.1
Fixed
0.4.2

Affected versions

0.*

0.4.1

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.3.0
Fixed
0.3.1

Affected versions

0.*

0.3.0

crates.io / aws-sigv4

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.2.0
Fixed
0.2.1

Affected versions

0.*

0.2.0