Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

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

cve-program · severity unknownEUVD CVSS 3.1 4.3 CVSS 3.1 · [email protected] · Primary 4.3 MEDIUMCVSS 3.1 · 134c704f-9b21-4f2e-91b3-4a467353bcc0 · Secondary 4.3 MEDIUMCVSS_V3 Publisher rating MODERATEFixed by github.com/aws/aws-sdk-go 1.34.0Publisher rating MODERATEFixed by github.com/aws/aws-sdk-go 1.34.0osv · severity unknownFixed by github.com/aws/aws-sdk-go 1.34.0KEV status unknown

cve-program · CVE-2022-2582

Published

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.

Read the publisher's advisory

euvd · EUVD-2022-7534

Published

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.

Read the publisher's advisory

nvd · CVE-2022-2582

Published

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.

Read the publisher's advisory

osv · GHSA-6jvc-q2x7-pchv

Published

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.

Read the publisher's advisory

osv · GHSA-76wf-9vgp-pj7w

Withdrawn

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-6jvc-q2x7-pchv. This link is maintained to preserve external references. ## Original Description ### Summary The 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. ### Specific Go Packages Affected github.com/aws/aws-sdk-go/service/s3/s3crypto ### Risk/Severity The vulnerability poses insider risks/privilege escalation risks, circumventing KMS controls for stored data. ### Impact The issue has been fully mitigated by AWS as of Aug. 5th by disallowing the header in question. The 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. The issue has been fixed server-side by AWS as of Aug 5th, by blocking the related metadata field. No S3 objects are affected anymore. ### Mitigation The header in question is no longer served by AWS, making this attack fully mitigated as of Aug. 5th. ### Proof of concept A [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): ```golang func HashExploit(bucket string, key string, input *OfflineAttackInput) (string, error) { _, header, err := input.S3Mock.GetObjectDirect(bucket, key) length, err := strconv.Atoi(header.Get("X-Amz-Meta-X-Amz-Unencrypted-Content-Length")) plaintextMd5 := header.Get("X-Amz-Meta-X-Amz-Unencrypted-Content-Md5") blocks := length / 16 possiblePlaintextNum := 1 segNum := len(input.PossiblePlaintextSegments) for i := 0; i < blocks; i++ { possiblePlaintextNum *= segNum } for i := 0; i < possiblePlaintextNum; i++ { w := i guess := "" for j := 0; j < blocks; j++ { guess += input.PossiblePlaintextSegments[w%segNum] w /= segNum } guessMd5 := md5.Sum([]byte(guess)) if plaintextMd5 == base64.StdEncoding.EncodeToString(guessMd5[:]) { return guess, nil } } return "", fmt.Errorf("No plaintext found!") } ``` The PoC will only work on old versions of the library, as the hash has been removed from being calculated as well.

Read the publisher's advisory

osv · GO-2022-0391

Published

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.

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2022-2582

Published

github.com/aws/aws-sdk-go/service/s3/s3crypto

https://pkg.go.dev

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "vendor": "github.com/aws/aws-sdk-go",
                    "product": "github.com/aws/aws-sdk-go/service/s3/s3crypto",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "github.com/aws/aws-sdk-go/service/s3/s3crypto",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "1.34.0",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "programRoutines": [
                        {
                            "name": "encodeMeta"
                        },
                        {
                            "name": "DecryptionClient.GetObject"
                        },
                        {
                            "name": "DecryptionClient.GetObjectWithContext"
                        },
                        {
                            "name": "EncryptionClient.PutObject"
                        },
                        {
                            "name": "EncryptionClient.PutObjectWithContext"
                        },
                        {
                            "name": "S3LoadStrategy.Load"
                        },
                        {
                            "name": "S3SaveStrategy.Save"
                        },
                        {
                            "name": "defaultV2LoadStrategy.Load"
                        },
                        {
                            "name": "kmsKeyHandler.DecryptKey"
                        },
                        {
                            "name": "kmsKeyHandler.DecryptKeyWithContext"
                        },
                        {
                            "name": "kmsKeyHandler.GenerateCipherData"
                        },
                        {
                            "name": "kmsKeyHandler.GenerateCipherDataWithContext"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }

Original source record · Cite this exact observation · Complete original publisher JSON

euvd · EUVD-2022-7534

Published

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.

Original publisher date fields

datePublished: Dec 27, 2022, 9:13:47 PM

dateUpdated: Apr 11, 2025, 4:20:04 PM

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

nvd · CVE-2022-2582

Published

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.

Source analysis status: Modified

Weakness classifications: CWE-326

Original publisher date fields

published: 2022-12-27T22:15:12.390

lastModified: 2026-06-17T04:42:09.430

1 source CPE criteria · context only
  • cpe:2.3:a:amazon:aws_software_development_kit:*:*:*:*:*:go:*:*

The original JSON retains the logical configuration operators, exclusions and version bounds.

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GHSA-6jvc-q2x7-pchv

Published

github.com/aws/aws-sdk-go

Go

SEMVER · introduced 0 → fixed 1.34.0

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GHSA-76wf-9vgp-pj7w

Withdrawn

github.com/aws/aws-sdk-go

Go

SEMVER · introduced 0 → fixed 1.34.0

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GO-2022-0391

Published

github.com/aws/aws-sdk-go

Go

SEMVER · introduced 0 → fixed 1.34.0

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 19 Nov 04:49 UTC · 273 of 275 readable · 269 fully read · documentation 469/469 current