CVE-2022-2582: Github.com/aws/aws sdk go AWS S3 Crypto SDK Sends Vulnerability
MODERATECVE-2022-2582 is a MODERATE (CVSS 4.3) aws s3 crypto sdk sends vulnerability (CWE-326: Inadequate Encryption Strength) affecting Github.com/aws/aws sdk go libraries in the Go ecosystem. The issue involves aws s3 crypto sdk sends an unencrypted hash of the plaintext alongside the ciphertext as a metadata field. Remediation is available by upgrading affected packages to version 1.34.0.
CVE-2022-2582 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2022-2582
To remediate this vulnerability, upgrade all affected Github.com/aws/aws sdk go dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/aws/aws-sdk-go to 1.34.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/aws/aws-sdk-go
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-2582, inspect your project dependencies for Github.com/aws/aws sdk go:
inspect dependencies for github.com/aws/aws-sdk-go
Analyze the terminal output to locate any version of Github.com/aws/aws sdk go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.34.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-326: Inadequate Encryption Strength, where the product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required. In Github.com/aws/aws sdk go, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-2582 Affected Github.com/aws/aws sdk go Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/aws/aws-sdk-go
|
Go |
< 1.34.0
|
1.34.0
|
References
Frequently Asked Questions
What is CVE-2022-2582?
Which Github.com/aws/aws sdk go versions are affected?
What version fixes CVE-2022-2582?
Is github.com/aws/aws-sdk-go affected?
What is the CVSS score of CVE-2022-2582?
What CWE is associated with CVE-2022-2582?
How can I check Go dependencies for CVE-2022-2582?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6jvc-q2x7-pchv",
"modified" : "2026-02-03T17:28:52Z",
"published" : "2022-12-28T00:30:23Z",
"aliases" : [ "CVE-2022-2582" ],
"summary" : "AWS S3 Crypto SDK sends an unencrypted hash of the plaintext alongside the ciphertext as a metadata field",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/aws/aws-sdk-go"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.34.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-2582"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/aws-sdk-go/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aws/aws-sdk-go"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2022-0391"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-326" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-30T18:53:40Z",
"nvd_published_at" : "2022-12-27T22:15:00Z"
}
}