Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/aws/aws-sdk-go
  4. ›
  5. CVE-2022-2582

CVE-2022-2582: AWS S3 Crypto SDK sends an unencrypted hash of the plaintext alongside the ciphertext as a metadata field

December 27, 2022 (updated January 5, 2023)

The AWS S3 Crypto SDK sends an unencrypted hash of the plaintext alongside the ciphertext as a metadata field. This hash can be used to brute force the plaintext, if the hash is readable to the attacker. AWS now blocks this metadata field, but older SDK versions still send it.

References

  • github.com/advisories/GHSA-6jvc-q2x7-pchv
  • github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1
  • nvd.nist.gov/vuln/detail/CVE-2022-2582
  • pkg.go.dev/vuln/GO-2022-0391

Code Behaviors & Features

Detect and mitigate CVE-2022-2582 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.34.0

Fixed versions

  • 1.34.0

Solution

Upgrade to version 1.34.0 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-326: Inadequate Encryption Strength

Source file

go/github.com/aws/aws-sdk-go/CVE-2022-2582.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:05 +0000.