Skip to content

ex_aws_kms

ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/3

CVE-2026-62271Published 24 Nov 2026, 12:22 UTC

Real-world risk

0.3/ 10Low

Routine

If the vulnerable configuration applies to you: 0.6

PreliminaryFrom the CVSS vector only · confidence low

CVSS

2.1

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from EEF)

Use of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (ExAws.KMS module) causes callers who import external key material to wrap their secret KMS key material with the deprecated PKCS#1 v1.5 padding scheme by default. This vulnerability is associated with program file lib/ex_aws/kms.ex and program routine ExAws.KMS.get_parameters_for_import/3. ExAws.KMS.get_parameters_for_import/3 defaults its wrapping_algorithm argument to "RSAES_PKCS1_V1_5". AWS KMS returns this value as the WrappingAlgorithm for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling ImportKeyMaterial. AWS KMS also supports the stronger RSAES_OAEP_SHA_1 and RSAES_OAEP_SHA_256 schemes. By defaulting to RSAES_PKCS1_V1_5, the library steers callers who do not explicitly override the argument toward the weakest of the three. PKCS#1 v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing "RSAES_OAEP_SHA_256" (or "RSAES_OAEP_SHA_1") as the wrapping algorithm. This issue affects ex_aws_kms: from 2.1.0 before 2.7.0.

Am I affected?

ProductAffected versions (from the sources)Fixed in
ex_aws_kmsNiche>= 2.1.0, < 2.7.02.7.0

What to do

Update to a fixed version: 2.7.0.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionLocalMust already run code or have a shell on the machineFrom the CVSS vector0.50
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.1% chance of exploitation in 30 days (percentile 1), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.101
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.1013 × threat 0.850.258
  4. Rounded to one decimal between 0.1 and 100.3

How the score works

Exploitation and evidence timeline

  1. 24 Nov 2026 Published
  2. 3 Dec 2026 Risk 0.3 (cvss fallback)

Weakness

CWE-780

References

Get alerts for ex_aws_kms

Free email or text alerts when a vulnerability in ex_aws_kms reaches risk 8 or higher. Nothing else.