Read the docs

Weak RSA padding default in ex_aws_kms key material import

Priority LOW 10CWE-780Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

ex-aws ex_aws_kms from 2.1.0 before 2.7.0 defaults RSA key material wrapping to the deprecated PKCS#1 v1.5 padding (CWE-780). ExAws.KMS.get_parameters_for_import/3 sets the wrapping algorithm to RSAES_PKCS1_V1_5 for callers who do not override it, a padding scheme open to Bleichenbacher padding oracle attacks. A local attacker with no privileges would need a padding oracle, and the source rates practical exploitability as low.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.001 0th percentileScored 2026-12-01
Fix Fixed ex_aws_kms (ex-aws): 2.7.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
ex-awsex_aws_kms2.1.0 to before 2.7.02.7.0Patch availableCNA
  • ex_aws_kms Vendorex-aws Affected 2.1.0 to before 2.7.0 Fixed in 2.7.0 Patch available CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*———
  • cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:* Versions — — ·—

Remediation

Upgrade ex_aws_kms to version 2.7.0 or later. Until then, callers can pass RSAES_OAEP_SHA_256 or RSAES_OAEP_SHA_1 explicitly as the wrapping algorithm.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

  • Fix · CNA ex_aws_kms (ex-aws) Fixed in 2.7.0

Timeline

  1. 2026-11-24 Threatist record created from CVE-2026-62271
  2. 2026-11-24 Alias added: GHSA-cgv4-6337-qcvw
  3. 2026-12-01 CISA SSVC decision points changed

References

  • TI-2026-97430 XML injection in ex_aws_s3 bucket configuration builders CVSS 4.0MEDIUM 6.9
  • TI-2026-97439 XML injection in ExAws S3 batch delete lets attackers remove extra objects CVSS 4.0MEDIUM 5.9
  • TI-2026-97429 XML injection in ex_aws_s3 object and bucket tagging CVSS 4.0LOW 2.1
  • TI-2026-34676 ex_aws_sns SigningCertURL not validated in verify_message/1 CVSS 4.0HIGH 8.7
  • TI-2026-97227 ex_aws IMDSv2 token request follows HTTP redirects (SSRF) CVSS 4.0HIGH 7.6
  • TI-2026-97235 ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape CVSS 4.0HIGH 7.4
See all 16 →

Sources