PT-2026-158399

CVE-2026-62271

·

Published

2026-11-24

·

Updated

2026-11-24

Description by

CVSS 4.0
2.1
Low
MetricsAV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
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.
Exploitability
Fix
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾