{"id":"GHSA-6jvc-q2x7-pchv","revision":null,"records":[{"revision":"1fd17425d89d4ea78952eba27d5df940","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2022-2582","aliases":[],"title":"Exposure of unencrypted plaintext hash in github.com/aws/aws-sdk-go","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.","state":0,"publishedAt":"2022-12-27T21:13:47.272+00:00","modifiedAt":"2025-04-11T16:20:04.368+00:00","affected":[{"ecosystem":"https://pkg.go.dev","name":"github.com/aws/aws-sdk-go/service/s3/s3crypto","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"github.com/aws/aws-sdk-go\",\n                    \"product\": \"github.com/aws/aws-sdk-go/service/s3/s3crypto\",\n                    \"collectionURL\": \"https://pkg.go.dev\",\n                    \"packageName\": \"github.com/aws/aws-sdk-go/service/s3/s3crypto\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"1.34.0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"encodeMeta\"\n                        },\n                        {\n                            \"name\": \"DecryptionClient.GetObject\"\n                        },\n                        {\n                            \"name\": \"DecryptionClient.GetObjectWithContext\"\n                        },\n                        {\n                            \"name\": \"EncryptionClient.PutObject\"\n                        },\n                        {\n                            \"name\": \"EncryptionClient.PutObjectWithContext\"\n                        },\n                        {\n                            \"name\": \"S3LoadStrategy.Load\"\n                        },\n                        {\n                            \"name\": \"S3SaveStrategy.Save\"\n                        },\n                        {\n                            \"name\": \"defaultV2LoadStrategy.Load\"\n                        },\n                        {\n                            \"name\": \"kmsKeyHandler.DecryptKey\"\n                        },\n                        {\n                            \"name\": \"kmsKeyHandler.DecryptKeyWithContext\"\n                        },\n                        {\n                            \"name\": \"kmsKeyHandler.GenerateCipherData\"\n                        },\n                        {\n                            \"name\": \"kmsKeyHandler.GenerateCipherDataWithContext\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[],"references":["https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1","https://pkg.go.dev/vuln/GO-2022-0391"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-2582","license":"CVE Program Terms of Use","key":"cve-program:CVE-2022-2582","identifiers":["CVE-2022-2582"]},"retained":false,"historicalAffected":[]},{"revision":"fe6c70e3c50848ce895a4eb59cd82ab1","observedAt":"2026-11-18T08:29:36.16+00:00","statement":{"source":"euvd","id":"EUVD-2022-7534","aliases":["CVE-2022-2582","GHSA-6jvc-q2x7-pchv"],"title":"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, …","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"severity":null}],"references":["https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1","https://pkg.go.dev/vuln/GO-2022-0391"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-7534","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Dec 27, 2022, 9:13:47 PM","dateUpdated":"Apr 11, 2025, 4:20:04 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2022-7534","identifiers":["EUVD-2022-7534","CVE-2022-2582","GHSA-6jvc-q2x7-pchv"]},"retained":false,"historicalAffected":[]},{"revision":"4edf6c5d2d4241fcb09337662e54b0e5","observedAt":"2026-10-24T20:17:12.83+00:00","statement":{"source":"nvd","id":"CVE-2022-2582","aliases":[],"title":"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, …","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.","state":0,"publishedAt":"2022-12-27T22:15:12.39+00:00","modifiedAt":"2026-06-17T04:42:09.43+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"severity":"MEDIUM"},{"system":"CVSS 3.1 · 134c704f-9b21-4f2e-91b3-4a467353bcc0 · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"severity":"MEDIUM"}],"references":["https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1","https://pkg.go.dev/vuln/GO-2022-0391"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-2582","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-326"],"productCriteria":["cpe:2.3:a:amazon:aws_software_development_kit:*:*:*:*:*:go:*:*"],"sourceDates":{"published":"2022-12-27T22:15:12.390","lastModified":"2026-06-17T04:42:09.430"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2022-2582","identifiers":["CVE-2022-2582"]},"retained":false,"historicalAffected":[]},{"revision":"961b0d37ec644601abe18c3902308099","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-6jvc-q2x7-pchv","aliases":["CVE-2022-2582","GHSA-76wf-9vgp-pj7w","GO-2022-0391"],"title":"AWS S3 Crypto SDK sends an unencrypted hash of the plaintext alongside the ciphertext as a metadata field","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.","state":0,"publishedAt":"2022-12-28T00:30:23+00:00","modifiedAt":"2026-09-10T03:49:56.1866537+00:00","affected":[{"ecosystem":"Go","name":"github.com/aws/aws-sdk-go","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.34.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w","https://nvd.nist.gov/vuln/detail/CVE-2022-2582","https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1","https://github.com/aws/aws-sdk-go","https://pkg.go.dev/vuln/GO-2022-0391"],"sourceUrl":"https://github.com/advisories/GHSA-6jvc-q2x7-pchv","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-6jvc-q2x7-pchv","identifiers":["GHSA-6jvc-q2x7-pchv","CVE-2022-2582","GHSA-76wf-9vgp-pj7w","GO-2022-0391"]},"retained":false,"historicalAffected":[]},{"revision":"b3834133c6a144a5aa4983ef5971e24b","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-76wf-9vgp-pj7w","aliases":["CVE-2022-2582","GHSA-6jvc-q2x7-pchv","GO-2022-0391"],"title":"Duplicate Advisory: Unencrypted md5 plaintext hash in metadata in AWS S3 Crypto SDK for golang","description":"## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-6jvc-q2x7-pchv. This link is maintained to preserve external references.\n\n## Original Description\n### Summary\n\nThe golang AWS S3 Crypto SDK was impacted by an issue that can result in loss of confidentiality. An attacker with read access to an encrypted S3 bucket was able to recover the plaintext without accessing the encryption key.\n\n### Specific Go Packages Affected\ngithub.com/aws/aws-sdk-go/service/s3/s3crypto\n\n### Risk/Severity\n\nThe vulnerability poses insider risks/privilege escalation risks, circumventing KMS controls for stored data.\n\n### Impact\n\nThe issue has been fully mitigated by AWS as of Aug. 5th by disallowing the header in question.\n\nThe S3 crypto library tries to store an unencrypted hash of the plaintext alongside the ciphertext as a metadata field. This hash can be used to brute force the plaintext in an offline attack, if the hash is readable to the attacker. In order to be impacted by this issue, the attacker has to be able to guess the plaintext as a whole. The attack is theoretically valid if the plaintext entropy is below the key size, i.e. if it is easier to brute force the plaintext instead of the key itself, but practically feasible only for short plaintexts or plaintexts otherwise accessible to the attacker in order to create a rainbow table.\n\nThe issue has been fixed server-side by AWS as of Aug 5th, by blocking the related metadata field. No S3 objects are affected anymore.\n\n### Mitigation\n\nThe header in question is no longer served by AWS, making this attack fully mitigated as of Aug. 5th.\n\n### Proof of concept\n\nA [Proof of concept](https://github.com/sophieschmieg/exploits/tree/master/aws_s3_crypto_poc) is available in a separate github repository, this particular issue can be found at [here](https://github.com/sophieschmieg/exploits/blob/master/aws_s3_crypto_poc/exploit/hash_exploit.go):\n\n```golang\nfunc HashExploit(bucket string, key string, input *OfflineAttackInput) (string, error) {\n\t_, header, err := input.S3Mock.GetObjectDirect(bucket, key)\n\tlength, err := strconv.Atoi(header.Get(\"X-Amz-Meta-X-Amz-Unencrypted-Content-Length\"))\n\tplaintextMd5 := header.Get(\"X-Amz-Meta-X-Amz-Unencrypted-Content-Md5\")\n\tblocks := length / 16\n\tpossiblePlaintextNum := 1\n\tsegNum := len(input.PossiblePlaintextSegments)\n\tfor i := 0; i < blocks; i++ {\n\t\tpossiblePlaintextNum *= segNum\n\t}\n\tfor i := 0; i < possiblePlaintextNum; i++ {\n\t\tw := i\n\t\tguess := \"\"\n\t\tfor j := 0; j < blocks; j++ {\n\t\t\tguess += input.PossiblePlaintextSegments[w%segNum]\n\t\t\tw /= segNum\n\t\t}\n\t\tguessMd5 := md5.Sum([]byte(guess))\n\t\tif plaintextMd5 == base64.StdEncoding.EncodeToString(guessMd5[:]) {\n\t\t\treturn guess, nil\n\t\t}\n\t}\n\treturn \"\", fmt.Errorf(\"No plaintext found!\")\n}\n```\n\nThe PoC will only work on old versions of the library, as the hash has been removed from being calculated as well.","state":2,"publishedAt":"2022-02-11T23:26:12+00:00","modifiedAt":"2026-09-10T03:49:11.6936112+00:00","affected":[{"ecosystem":"Go","name":"github.com/aws/aws-sdk-go","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.34.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w","https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1","https://github.com/aws/aws-sdk-go","https://pkg.go.dev/vuln/GO-2022-0391"],"sourceUrl":"https://github.com/advisories/GHSA-76wf-9vgp-pj7w","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-76wf-9vgp-pj7w","identifiers":["GHSA-76wf-9vgp-pj7w","CVE-2022-2582","GHSA-6jvc-q2x7-pchv","GO-2022-0391"]},"retained":false,"historicalAffected":[]},{"revision":"c8744297e7e14fd385d95eeb909e01db","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2022-0391","aliases":["CVE-2022-2582","GHSA-6jvc-q2x7-pchv","GHSA-76wf-9vgp-pj7w"],"title":"Exposure of unencrypted plaintext hash in github.com/aws/aws-sdk-go","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.\n\nAWS now blocks this metadata field, but older SDK versions still send it.","state":0,"publishedAt":"2022-07-01T20:10:56+00:00","modifiedAt":"2026-02-04T03:52:10.915035+00:00","affected":[{"ecosystem":"Go","name":"github.com/aws/aws-sdk-go","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.34.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1"],"sourceUrl":"https://osv.dev/vulnerability/GO-2022-0391","license":"OSV · upstream source license applies","key":"osv:GO-2022-0391","identifiers":["GO-2022-0391","CVE-2022-2582","GHSA-6jvc-q2x7-pchv","GHSA-76wf-9vgp-pj7w"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T04:24:37.1903365+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T04:24:37.1903365+00:00","lastSuccessAt":"2026-11-19T04:24:37.372166+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:37.3721666+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-0e69c6613585444f641c92f526100c36dd9cd3e99fef2d7247efc88cf506728d","complete":true,"records":428229,"lastAttemptAt":"2026-11-19T04:22:50.7413942+00:00","lastSuccessAt":"2026-11-19T04:22:50.7221018+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:22:50.7413942+00:00","snapshotPublishedAt":"2026-11-19T03:23:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-eed1ef18663c45929f7d7e7a714a8e59","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T04:31:06.4268449+00:00","lastSuccessAt":"2026-11-19T04:31:06.423+00:00","error":"148 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T04:31:06.423+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13703,"expectedIdentifiers":13908,"failedIdentifiers":148},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T04:24:37.1903365+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T04:24:37.1903365+00:00","lastSuccessAt":"2026-11-19T04:24:38.0697004+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:38.0697013+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-84b4b212d7ef41cb9ec24b71e9d8e5d8","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T04:24:39.3964736+00:00","lastSuccessAt":"2026-11-19T04:24:39.391+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:39.391+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T04:24:37.034158+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:37.034158+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T04:22:50.8981544+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:22:50.8981544+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-c0d9c71c6fa06d617f979e7bec0d97aca70ca5aea1558184002f8e44516f2fac","complete":true,"records":3177,"lastAttemptAt":"2026-11-19T04:24:37.1431899+00:00","lastSuccessAt":"2026-11-18T21:25:09.5127964+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:37.1431899+00:00","snapshotPublishedAt":"2026-11-18T21:18:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-2556fa291ec863b7fd77332e55dcff5569878e06b48ea32c182e52878cdd1ce8","complete":true,"records":232702,"lastAttemptAt":"2026-11-19T04:24:36.8996689+00:00","lastSuccessAt":"2026-11-19T04:24:35.8955272+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:36.8996689+00:00","snapshotPublishedAt":"2026-11-19T03:33:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}