GHSA-2xwp-m7mq-7q3r: Aws encryption sdk cli CLI Does Not Correctly Implement Vulnerability

LOW
CWE-326
Published
Advisory Summary

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

CVE Identifier N/A
GHSA Identifier GHSA-2xwp-m7mq-7q3r
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-326: Inadequate Encryption Strength
Affected Product Aws encryption sdk cli
Package Ecosystem PyPI
Published Date
Last Updated

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.

aws-encryption-sdk-cli fixed: 1.8.0
pip install aws-encryption-sdk-cli>=1.8.0
aws-encryption-sdk-cli fixed: 2.1.0
pip install aws-encryption-sdk-cli>=2.1.0
Verify Direct and Transitive Dependencies

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

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." Affected users should upgrade to Encryption CLI v1.8.x or v2.1.x as soon as possible.

GHSA-2xwp-m7mq-7q3r Affected Aws encryption sdk cli Versions

2 component(s)
Fixed Versions:
1.8.02.1.0
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?
GHSA-2xwp-m7mq-7q3r is a security vulnerability in Aws encryption sdk cli involving CLI does not correctly implement strict mode under CWE-326: Inadequate Encryption Strength.
Which Aws encryption sdk cli versions are affected?
Affected versions include releases prior to 1.8.0, 2.1.0 across affected packages: aws-encryption-sdk-cli.
What version fixes GHSA-2xwp-m7mq-7q3r?
Upgrading to 1.8.0, 2.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aws-encryption-sdk-cli affected?
Yes, aws-encryption-sdk-cli is affected in releases prior to 1.8.0, 2.1.0. Upgrade your dependency to 1.8.0, 2.1.0 or later.
What CWE is associated with GHSA-2xwp-m7mq-7q3r?
GHSA-2xwp-m7mq-7q3r 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 PyPI dependencies for GHSA-2xwp-m7mq-7q3r?
Run the dependency tree command: 'pip show aws-encryption-sdk-cli'. 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-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
  }
}