{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2022-2582",
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "state": "PUBLISHED",
        "assignerShortName": "Go",
        "dateReserved": "2022-07-29T19:42:31.027Z",
        "datePublished": "2022-12-27T21:13:47.272Z",
        "dateUpdated": "2024-08-03T00:39:08.166Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
                "shortName": "Go",
                "dateUpdated": "2023-06-12T19:04:12.778Z"
            },
            "title": "Exposure of unencrypted plaintext hash in github.com/aws/aws-sdk-go",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "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"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "CWE 311: Missing Encryption of Sensitive Data"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1"
                },
                {
                    "url": "https://pkg.go.dev/vuln/GO-2022-0391"
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T00:39:08.166Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://pkg.go.dev/vuln/GO-2022-0391",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}