CVE-2026-62271ex-aws ex_aws_kms Use of RSA Algorithm without OAEP
NVD
Vulnerability Summary
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.
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.
CVSS v4.0 Base Metrics — Score 2.1 (LOW)
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NAttack VectorLocal
Attack ComplexityHigh
Attack RequirementsPresent
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)Low
Integrity (Vulnerable System)None
Availability (Vulnerable System)None
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Affected & Patched Versions
- ex-aws ex_aws_kms >= 2.1.0 and < 2.7.0
- ex-aws ex_aws_kms >= b66631f206ec207ab7016c0c4d9f1ec898b56e85 and < 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7
- ex-aws ex_aws_kms 2.7.0
- ex-aws ex_aws_kms 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run ex-aws ex_aws_kms and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 24, 2026Published
- Nov 24, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new ex-aws ex_aws_kms CVEsYou are reading CVE-2026-62271. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://github.com/ex-aws/ex_aws_kms/security/advisories/GHSA-wq7g-9pm7-5crv
- Referencehttps://cna.erlef.org/cves/CVE-2026-62271.html
- Referencehttps://osv.dev/vulnerability/EEF-CVE-2026-62271
- Patchhttps://github.com/ex-aws/ex_aws_kms/commit/b66631f206ec207ab7016c0c4d9f1ec898b56e85
- Patchhttps://github.com/ex-aws/ex_aws_kms/commit/2d7f308da3cf75ab0385c0aebdc84ce65f6754f7
Data last checked: Nov 24, 2026 14:13 UTC