Vulnerabilities in pkg:maven/com.amazonaws/aws-encryption-sdk-java

PACKAGE
Advisory Identifier: GHSA-55xh-53m6-936r
Advisory Summary

CVE-2024-23680 is a MODERATE improper verification of cryptographic signature vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Aws encryption sdk java libraries in the Maven ecosystem. The issue involves improper verification of cryptographic signature in aws-encryption-sdk-java. Remediation is available by upgrading affected packages to version 1.9.0, 2.2.0.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.amazonaws/aws-encryption-sdk-java

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.amazonaws/aws-encryption-sdk-java. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-55xh-53m6-936r CVE-2024-23680 MODERATE Improper Verification of Cryptographic Signature in aws-encryption-sdk-java
GHSA-gvc7-gjrw-hj65 - MODERATE Duplicate Advisory: Improper Verification of Cryptographic Signature in aws-encryption-sdk-java
GHSA-wqgp-vphw-hphf CVE-2020-8897 HIGH Security issues in AWS KMS and AWS Encryption SDKs: in-band protocol negotiation and robustness

CVE-2024-23680 at a Glance

CVE Identifier CVE-2024-23680
GHSA Identifier GHSA-55xh-53m6-936r
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Aws encryption sdk java
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2024-23680

To remediate this vulnerability, upgrade all affected Aws encryption sdk java dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.amazonaws:aws-encryption-sdk-java fixed: 1.9.0
<dependency>
    <groupId>com.amazonaws</groupId>
    <artifactId>aws-encryption-sdk-java</artifactId>
    <version>1.9.0</version>
</dependency>
com.amazonaws:aws-encryption-sdk-java fixed: 2.2.0
<dependency>
    <groupId>com.amazonaws</groupId>
    <artifactId>aws-encryption-sdk-java</artifactId>
    <version>2.2.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.amazonaws

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-23680, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.amazonaws

Analyze the terminal output to locate any version of Aws encryption sdk java in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.amazonaws command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Aws encryption sdk java, 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

### Impact This advisory addresses several LOW severity issues with streaming signed messages and restricting processing of certain types of invalid messages. This update addresses an issue where certain invalid ECDSA signatures incorrectly passed validation. These signatures provide defense in depth and there is no impact on the integrity of decrypted plaintext. This ESDK supports a streaming mode where callers may stream the plaintext of signed messages before the ECDSA signature is validated. In addition to these signatures, the ESDK uses AES-GCM encryption and all plaintext is verified before being released to a caller. There is no impact on the integrity of the ciphertext or decrypted plaintext, however some callers may rely on the the ECDSA signature for non-repudiation. Without validating the ECDSA signature, an actor with trusted KMS permissions to decrypt a message may also be able to encrypt messages. This update introduces a new API for callers who wish to stream only unsigned messages. For customers who process ESDK messages from untrusted sources, this update also introduces a new configuration to limit the number of Encrypted Data Keys (EDKs) that the ESDK will attempt to process per message. This configuration provides customers with a way to limit the number of AWS KMS Decrypt API calls that the ESDK will make per message. This setting will reject messages with more EDKs than the configured limit. Finally, this update adds early rejection of invalid messages with certain invalid combinations of algorithm suite and header data. ### Patches Fixed in versions 1.9 and 2.2. We recommend that all users upgrade to address these issues. Customers leveraging the ESDK’s streaming features have several options to protect signature validation. One is to ensure that client code reads to the end of the stream before using released plaintext. With this release, using the new API for streaming and falling back to the non-streaming decrypt API for signed messages prevents using any plaintext from signed data before the signature is validated. See https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/about-versions.html#version2.2.x Users processing ESDK messages from untrusted sources should use the new maximum encrypted data keys parameter. See https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/about-versions.html#version2.2.x ### Workarounds None ### For more information https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/concepts.html#digital-sigs https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/about-versions.html#version2.2.x

CVE-2024-23680 Affected Aws encryption sdk java Versions

2 component(s)
Fixed Versions:
1.9.02.2.0
Product / Package Ecosystem Affected Versions Fixed Version
com.amazonaws:aws-encryption-sdk-java
Maven
< 1.9.0
1.9.0
com.amazonaws:aws-encryption-sdk-java
Maven
≥ 2.0.0
< 2.2.0
2.2.0

References

Frequently Asked Questions

What is CVE-2024-23680?
CVE-2024-23680 is a security vulnerability in Aws encryption sdk java involving Improper Verification of Cryptographic Signature in aws-encryption-sdk-java under CWE-347: Improper Verification of Cryptographic Signature.
Which Aws encryption sdk java versions are affected?
Affected versions include releases prior to 1.9.0, 2.2.0 across affected packages: com.amazonaws:aws-encryption-sdk-java.
What version fixes CVE-2024-23680?
Upgrading to 1.9.0, 2.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aws-encryption-sdk-java affected?
Yes, com.amazonaws:aws-encryption-sdk-java is affected in releases prior to 1.9.0, 2.2.0. Upgrade your dependency to 1.9.0, 2.2.0 or later.
What CWE is associated with CVE-2024-23680?
CVE-2024-23680 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check Maven dependencies for CVE-2024-23680?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.amazonaws'. 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-55xh-53m6-936r",
  "modified" : "2026-01-22T20:52:23Z",
  "published" : "2021-06-01T21:17:36Z",
  "aliases" : [ "CVE-2024-23680" ],
  "summary" : "Improper Verification of Cryptographic Signature in aws-encryption-sdk-java",
  "details" : "### Impact\n\nThis advisory addresses several LOW severity issues with streaming signed messages and restricting processing of certain types of invalid messages. \n\nThis update addresses an issue where certain invalid ECDSA signatures incorrectly passed validation. These signatures provide defense in depth and there is no impact on the integrity of decrypted plaintext.\n\nThis ESDK supports a streaming mode where callers may stream the plaintext of signed messages before the ECDSA signature is validated. In addition to these signatures, the ESDK uses AES-GCM encryption and all plaintext is verified before being released to a caller. There is no impact on the integrity of the ciphertext or decrypted plaintext, however some callers may rely on the the ECDSA signature for non-repudiation. Without validating the ECDSA signature, an actor with trusted KMS permissions to decrypt a message may also be able to encrypt messages. This update introduces a new API for callers who wish to stream only unsigned messages. \n\nFor customers who process ESDK messages from untrusted sources, this update also introduces a new configuration to limit the number of Encrypted Data Keys (EDKs) that the ESDK will attempt to process per message. This configuration provides customers with a way to limit the number of AWS KMS Decrypt API calls that the ESDK will make per message. This setting will reject messages with more EDKs than the configured limit.\n\nFinally, this update adds early rejection of invalid messages with certain invalid combinations of algorithm suite and header data.\n\n### Patches\n\nFixed in versions 1.9 and 2.2. We recommend that all users upgrade to address these issues.\n\nCustomers leveraging the ESDK’s streaming features have several options to protect signature validation. One is to ensure that client code reads to the end of the stream before using released plaintext. With this release, using the new API for streaming and falling back to the non-streaming decrypt API for signed messages prevents using any plaintext from signed data before the signature is validated. See https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/about-versions.html#version2.2.x\n\nUsers processing ESDK messages from untrusted sources should use the new maximum encrypted data keys parameter. See https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/about-versions.html#version2.2.x\n\n### Workarounds\n\nNone\n\n### For more information\n\nhttps://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/concepts.html#digital-sigs\n\nhttps://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/about-versions.html#version2.2.x",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.amazonaws:aws-encryption-sdk-java"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.amazonaws:aws-encryption-sdk-java"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/aws/aws-encryption-sdk-java/security/advisories/GHSA-55xh-53m6-936r"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23680"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/aws/aws-encryption-sdk-java"
  }, {
    "type" : "WEB",
    "url" : "https://vulncheck.com/advisories/vc-advisory-GHSA-55xh-53m6-936r"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-06-01T19:14:06Z",
    "nvd_published_at" : null
  }
}