CVE-2022-2582 Exposure of unencrypted plaintext hash in github.com/aws/aws-sdk-go
The AWS S3 Crypto SDK exposes an unencrypted plaintext hash, allowing attackers to brute force the original data if the metadata is accessible.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-2582?
CVE-2022-2582 is a medium-severity vulnerability in github.com/aws/aws-sdk-go/service/s3/s3crypto, published on 27 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-326
Which versions are affected by CVE-2022-2582?
5 open source packages ship an affected version, including github.com/aws/aws-sdk-go. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/aws/aws-sdk-go Go | All versions | 1.34.0 |
github.com/aws/aws-sdk-go Go | All versions | 1.34.0 |
github.com/aws/aws-sdk-go Go | All versions | 1.34.0 |
github.com/aws/aws-sdk-go Go | All versions | 1.34.0 |
github.com/aws/aws-sdk-go Go | All versions | 1.34.0 |
Products include Amazon Aws Software Development Kit.
How do I fix CVE-2022-2582?
Upgrade github.com/aws/aws-sdk-go to 1.34.0 or later.
Is CVE-2022-2582 being exploited?
There is no known exploitation of CVE-2022-2582 in the wild and no public exploit code.
Other vulnerabilities in github.com/aws/aws-sdk-go/service/s3/s3crypto
- CVE-2018-19981 Information disclosure in n/a
- CVE-2026-19642 Out-of-bounds write in the Base64 decoder in Amazon aws-sdk-cpp
- CVE-2026-19643 Out-of-bounds read in the Base64 decoder in Amazon aws-sdk-cpp on signed-char platforms
- CVE-2023-51651 Potential URI resolution path traversal in the AWS SDK for PHP
- CVE-2022-4725 AWS SDK XML Parser XpathUtils.java XpathUtils server-side request forgery
Sources
Also known as DEBIAN-CVE-2022-2582, GHSA-6jvc-q2x7-pchv, GHSA-76wf-9vgp-pj7w, GO-2022-0391, UBUNTU-CVE-2022-2582.