{"id":"CVE-2022-2582","published":"2022-12-27T21:13:47Z","modified":"2025-04-11T16:20:04Z","title":"Exposure of unencrypted plaintext hash in github.com/aws/aws-sdk-go","vendor":"github.com/aws/aws-sdk-go","product":"github.com/aws/aws-sdk-go/service/s3/s3crypto","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00514,"percentile":0.44684,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2022-0391","tags":[]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":8.94},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"github-com-aws-aws-sdk-go","affectedVersions":[{"vendor":"github.com/aws/aws-sdk-go","product":"github.com/aws/aws-sdk-go/service/s3/s3crypto","versions":["< 1.34.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-11T16:19:30.823999Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/aws/aws-sdk-go","vulnerableRanges":["<1.34.0"],"patched":["1.34.0"],"from":["GHSA-6jvc-q2x7-pchv","GO-2022-0391"],"provenance":"source"}],"summary":{"text":"The s3crypto package in github.com/aws/aws-sdk-go (the AWS S3 Crypto SDK) attaches an unencrypted hash of the plaintext to ciphertext as a metadata field, and older SDK versions still send this field. An attacker who can read that metadata over the network, with low-privilege authentication and no user interaction, could use the hash to brute-force the plaintext.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:40Z"},"euvd":{"id":"EUVD-2022-7534","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-google-aws-s3-crypto-sdk-for-golang-cve-2020-8911","parents":[{"from":"CVE-2020-8911","to":"CVE-2022-2582","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["service/s3/s3crypto/aes_cbc_content_cipher.go","service/s3/s3crypto/aes_gcm_content_cipher.go","service/s3/s3crypto/cipher_util.go","service/s3/s3crypto/decryption_client.go","service/s3/s3crypto/decryption_client_v2.go"],"commits":["https://github.com/aws/aws-sdk-go/commit/1e84382fa1c0086362b5a4b68e068d4f8518d40e","https://github.com/aws/aws-sdk-go/commit/ae9b9fd92af132cfd8d879809d8611825ba135f4","https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1"],"basis":"shared function","functions":["ContentCipherWithContext","GenerateCipherData","GetObject","NewDecryptionClient","NewEncryptionClient"]}]},{"from":"CVE-2020-8912","to":"CVE-2022-2582","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["service/s3/s3crypto/aes_cbc_content_cipher.go","service/s3/s3crypto/aes_gcm_content_cipher.go","service/s3/s3crypto/cipher_util.go","service/s3/s3crypto/decryption_client.go","service/s3/s3crypto/decryption_client_v2.go"],"commits":["https://github.com/aws/aws-sdk-go/commit/1e84382fa1c0086362b5a4b68e068d4f8518d40e","https://github.com/aws/aws-sdk-go/commit/ae9b9fd92af132cfd8d879809d8611825ba135f4","https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1"],"basis":"shared function","functions":["ContentCipherWithContext","GenerateCipherData","GetObject","NewDecryptionClient","NewEncryptionClient"]}]}]}}