Vulnerabilities in pkg:maven/software.amazon.cryptography/aws-database-encryption-sdk-dynamodb
PACKAGEGHSA-72fp-w44g-625q is a LOW signing dynamodb sets when using vulnerability (General Security Weakness) affecting Aws database encryption sdk dynamodb libraries in the Maven ecosystem. The issue involves signing dynamodb sets when using the aws database encryption sdk.. Remediation is available by upgrading affected packages to version 3.1.1.
pkg:maven/software.amazon.cryptography/aws-database-encryption-sdk-dynamodb
Vulnerability advisories affecting package pkg:maven/software.amazon.cryptography/aws-database-encryption-sdk-dynamodb. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-72fp-w44g-625q | - | LOW | Signing DynamoDB Sets when using the AWS Database Encryption SDK. |
GHSA-72fp-w44g-625q at a Glance
How to Fix GHSA-72fp-w44g-625q
To remediate this vulnerability, upgrade all affected Aws database encryption sdk dynamodb dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>software.amazon.cryptography</groupId>
<artifactId>aws-database-encryption-sdk-dynamodb</artifactId>
<version>3.1.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=software.amazon.cryptography
How to Check if You Are Affected
To determine whether your Java application is affected by GHSA-72fp-w44g-625q, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=software.amazon.cryptography
Analyze the terminal output to locate any version of Aws database encryption sdk dynamodb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=software.amazon.cryptography 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 General Security Weakness. In Aws database encryption sdk dynamodb, 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
GHSA-72fp-w44g-625q Affected Aws database encryption sdk dynamodb Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
software.amazon.cryptography:aws-database-encryption-sdk-dynamodb
|
Maven |
≥ 3.0.0
< 3.1.1
|
3.1.1
|
References
Frequently Asked Questions
What is GHSA-72fp-w44g-625q?
Which Aws database encryption sdk dynamodb versions are affected?
What version fixes GHSA-72fp-w44g-625q?
Is aws-database-encryption-sdk-dynamodb affected?
What CWE is associated with GHSA-72fp-w44g-625q?
How can I check Maven dependencies for GHSA-72fp-w44g-625q?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-72fp-w44g-625q",
"modified" : "2023-11-09T16:02:51Z",
"published" : "2023-11-09T16:02:51Z",
"aliases" : [ ],
"summary" : "Signing DynamoDB Sets when using the AWS Database Encryption SDK.",
"details" : "### Impact\nThis advisory addresses an issue when a DynamoDB Set attribute is marked as SIGN_ONLY in the AWS Database Encryption SDK (DB-ESDK) for DynamoDB. This also includes when a Set is part of a List or a Map.\n\nDB-ESDK for DynamoDB supports `SIGN_ONLY` and `ENCRYPT_AND_SIGN` attribute actions. In version 3.1.0 and below, when a Set type is assigned a `SIGN_ONLY` attribute action, there is a chance that signature validation of the record containing a Set will fail on read, even if the Set attributes contain the same values. The probability of a failure depends on the order of the elements in the Set combined with how DynamoDB returns this data, which is undefined.\n\nThis update addresses the issue by ensuring that any Set values are canonicalized in the same order while written to DynamoDB as when read back from DynamoDB.\n\n### Patches\nFixed in version 3.1.1 \nWe recommend all users upgrade as soon as possible.\n\n### Workarounds\nNone\n\n### References\nFor more information on how to address records with Sets marked as `SIGN_ONLY` written by versions 3.1.0 and below of DB-ESDK, see [AWS Database Encryption SDK Decrypt with Permute](https://github.com/aws/aws-database-encryption-sdk-dynamodb-java/tree/v3.1.1/DecryptWithPermute)",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "software.amazon.cryptography:aws-database-encryption-sdk-dynamodb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aws/aws-database-encryption-sdk-dynamodb-java/security/advisories/GHSA-72fp-w44g-625q"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/aws-database-encryption-sdk-dynamodb-java/commit/e3aa016895a3e2533b9a3c1ec88458d6667b3245"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aws/aws-database-encryption-sdk-dynamodb-java"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/aws-database-encryption-sdk-dynamodb-java/releases/tag/v3.1.1"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2023-11-09T16:02:51Z",
"nvd_published_at" : null
}
}