MEDIUM4.3
GHSA-6jvc-q2x7-pchv
AWS S3 Crypto SDK sends an unencrypted hash of the plaintext alongside the ciphertext as a metadata field
Quick fix
GHSA-6jvc-q2x7-pchv — github.com/aws/aws-sdk-go: upgrade to the fixed version with the command below.
go get github.com/aws/aws-sdk-go@v1.34.0Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/aws/aws-sdk-go
Introduced in:
0Fixed in: 1.34.0Fix
go get github.com/aws/aws-sdk-go@v1.34.0References
- https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2022-2582[ADVISORY]
- https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1[WEB]
- https://github.com/aws/aws-sdk-go[PACKAGE]
- https://pkg.go.dev/vuln/GO-2022-0391[WEB]