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

Medium 4.3 Published Updated

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.

PackageAffectedFixed in
github.com/aws/aws-sdk-go GoAll versions1.34.0
github.com/aws/aws-sdk-go GoAll versions1.34.0
github.com/aws/aws-sdk-go GoAll versions1.34.0
github.com/aws/aws-sdk-go GoAll versions1.34.0
github.com/aws/aws-sdk-go GoAll versions1.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.

Sources

Also known as DEBIAN-CVE-2022-2582, GHSA-6jvc-q2x7-pchv, GHSA-76wf-9vgp-pj7w, GO-2022-0391, UBUNTU-CVE-2022-2582.

Is CVE-2022-2582 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free