AWS Encryption CLI does not correctly implement strict mode

aws-encryption-sdk-cli Updated 02 Oct 2025

Summary

28/10/2020
LOW
Yes i
Low
Not published

GHSA-2xwp-m7mq-7q3r: CLI does not correctly implement strict mode. Affects aws-encryption-sdk-cli across 2 version ranges.

< 1.8.0 >= 2.0.0, < 2.1.0

Fixed in 1.8.0 or 2.1.0, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The AWS Encryption CLI is a command-line tool that enables users to encrypt and decrypt data using the AWS Key Management Service (KMS). It provides a simple interface for managing encryption keys and performing cryptographic operations. The CLI is available for Python and can be installed via PyPI. However, certain versions of the AWS Encryption CLI have a vulnerability related to the implementation of strict mode.

Vulnerability Detail

The vulnerability in the AWS Encryption CLI affects versions 0.0.0 to 1.7.0 and 2.0.0 to 2.0.9. When operating in strict mode, the CLI should only allow decryption using the user-defined set of customer master keys (CMKs). However, due to a flaw in the implementation, decryption can be successful using a CMK that is not included in the user-defined set. This means that an unauthorized user could potentially decrypt data using a CMK they do not have permission to access. The impact of this vulnerability depends on the specific use case and the sensitivity of the data being encrypted.

How To Fix

Latest published version: 4.3.0 as of 23 Oct 2026

pip install --upgrade "aws-encryption-sdk-cli==4.3.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.8.0 1.8.0
    pip install --upgrade "aws-encryption-sdk-cli==1.8.0"
  • >= 2.0.0, < 2.1.0 2.1.0
    pip install --upgrade "aws-encryption-sdk-cli==2.1.0"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed versions as soon as possible.

Conclusion

The AWS Encryption CLI has a vulnerability that allows unauthorized decryption of data when operating in strict mode. Users should upgrade to the fixed versions (1.8.0 or higher for versions 0.0.0 to 1.7.0, and 2.1.0 or higher for versions 2.0.0 to 2.0.9) to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for aws-encryption-sdk-cli →

Share this vulnerability

FAQ

The AWS Encryption CLI is a command-line tool for encrypting and decrypting data using the AWS Key Management Service (KMS). It provides an interface for managing encryption keys and performing cryptographic operations.

Strict mode is a feature in the AWS Encryption CLI that restricts decryption to a user-defined set of customer master keys (CMKs). It ensures that only authorized users can decrypt data.

An unauthorized user could exploit this vulnerability by decrypting data using a CMK they do not have permission to access. This could potentially lead to unauthorized access to sensitive information.

No, only versions 0.0.0 to 1.7.0 and 2.0.0 to 2.0.9 are affected. Users should upgrade to the fixed versions (1.8.0 or higher for versions 0.0.0 to 1.7.0, and 2.1.0 or higher for versions 2.0.0 to 2.0.9).

No, there is no known workaround. It is recommended to upgrade to the fixed versions as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for aws-encryption-sdk-cli.

How To Fix

Latest published version: 4.3.0 as of 23 Oct 2026

pip install --upgrade "aws-encryption-sdk-cli==4.3.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.8.0 1.8.0
    pip install --upgrade "aws-encryption-sdk-cli==1.8.0"
  • >= 2.0.0, < 2.1.0 2.1.0
    pip install --upgrade "aws-encryption-sdk-cli==2.1.0"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback