GHSA-2xwp-m7mq-7q3r: Aws encryption sdk cli CLI Does Not Correctly Implement Vulnerability
LOWGHSA-2xwp-m7mq-7q3r is a LOW cli does not correctly implement vulnerability (CWE-326: Inadequate Encryption Strength) affecting Aws encryption sdk cli libraries in the PyPI ecosystem. The issue involves cli does not correctly implement strict mode. Remediation is available by upgrading affected packages to version 1.8.0, 2.1.0.
GHSA-2xwp-m7mq-7q3r at a Glance
How to Fix GHSA-2xwp-m7mq-7q3r
To remediate this vulnerability, upgrade all affected Aws encryption sdk cli dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install aws-encryption-sdk-cli>=1.8.0
pip install aws-encryption-sdk-cli>=2.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show aws-encryption-sdk-cli
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-2xwp-m7mq-7q3r, inspect your installed packages using pip:
pip show aws-encryption-sdk-cli
Analyze the terminal output to locate any version of Aws encryption sdk cli in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.0), your application is affected.
Note: The pip show aws-encryption-sdk-cli command checks currently installed packages in your active Python environment.
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 Aws encryption sdk cli, 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-2xwp-m7mq-7q3r Affected Aws encryption sdk cli Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aws-encryption-sdk-cli
|
PyPI |
< 1.8.0
|
1.8.0
|
|
aws-encryption-sdk-cli
|
PyPI |
≥ 2.0.0
< 2.1.0
|
2.1.0
|
References
Frequently Asked Questions
What is GHSA-2xwp-m7mq-7q3r?
Which Aws encryption sdk cli versions are affected?
What version fixes GHSA-2xwp-m7mq-7q3r?
Is aws-encryption-sdk-cli affected?
What CWE is associated with GHSA-2xwp-m7mq-7q3r?
How can I check PyPI dependencies for GHSA-2xwp-m7mq-7q3r?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2xwp-m7mq-7q3r",
"modified" : "2020-10-28T17:04:54Z",
"published" : "2020-10-28T17:05:38Z",
"aliases" : [ ],
"summary" : "CLI does not correctly implement strict mode",
"details" : "In the affected versions, the AWS Encryption CLI operated in \"discovery mode\" even when \"strict mode\" was specified. Although decryption only succeeded if the user had permission to decrypt with at least one of the CMKs, decryption could be successful using a CMK that was not included in the user-defined set when the CLI was operating in \"strict mode.\"\n\nAffected users should upgrade to Encryption CLI v1.8.x or v2.1.x as soon as possible.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "aws-encryption-sdk-cli"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "aws-encryption-sdk-cli"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aws/aws-encryption-sdk-cli/security/advisories/GHSA-2xwp-m7mq-7q3r"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/aws-encryption-sdk-cli/commit/7d21b8051cab9e52e056fe427d2bff19cf146460"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-326" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2020-10-28T17:04:54Z",
"nvd_published_at" : null
}
}