CVE-2022-2582: Github.com/aws/aws sdk go AWS S3 Crypto SDK Sends Vulnerability

MODERATE
Advisory Identifier: GHSA-6jvc-q2x7-pchv
CVSS 4.3
CWE-326
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-2582
GHSA Identifier GHSA-6jvc-q2x7-pchv
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-326: Inadequate Encryption Strength
Affected Product Github.com/aws/aws sdk go
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

github.com/aws/aws-sdk-go fixed: 1.34.0
Upgrade github.com/aws/aws-sdk-go to 1.34.0
Verify Direct and Transitive Dependencies

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

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.

CVE-2022-2582 Affected Github.com/aws/aws sdk go Versions

1 component(s)
Fixed Versions:
1.34.0
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?
CVE-2022-2582 is a security vulnerability in Github.com/aws/aws sdk go involving AWS S3 Crypto SDK sends an unencrypted hash of the plaintext alongside the ciphertext as a metadata field under CWE-326: Inadequate Encryption Strength.
Which Github.com/aws/aws sdk go versions are affected?
Affected versions include releases prior to 1.34.0 across affected packages: github.com/aws/aws-sdk-go.
What version fixes CVE-2022-2582?
Upgrading to 1.34.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/aws/aws-sdk-go affected?
Yes, github.com/aws/aws-sdk-go is affected in releases prior to 1.34.0. Upgrade your dependency to 1.34.0 or later.
What is the CVSS score of CVE-2022-2582?
CVE-2022-2582 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2022-2582?
CVE-2022-2582 is classified under CWE-326: Inadequate Encryption Strength (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.).
How can I check Go dependencies for CVE-2022-2582?
Run the dependency tree command: 'inspect dependencies for github.com/aws/aws-sdk-go'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}