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

- Severity: Low 2.1 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-11-24T12:22:05.337Z
- Modified: 2026-12-01T17:17:40.270Z
- Also known as: EEF-CVE-2026-62271, GHSA-wq7g-9pm7-5crv
- Weaknesses: CWE-780
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

## Description

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.

(As written by CVE List.)

## Affected

- ex_aws_kms: from 2.1.0 before 2.7.0
- ex-aws/ex_aws_kms: from b66631f206ec207ab7016c0c4d9f1ec898b56e85 before 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7
- ex_aws_kms (Hex): from 2.1.0 before 2.7.0
- https://github.com/ex-aws/ex_aws_kms: from b66631f206ec207ab7016c0c4d9f1ec898b56e85 before 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7

## Every score

- EEF: CVSS:4.0 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:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/ex-aws/ex_aws_kms/security/advisories/GHSA-wq7g-9pm7-5crv> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-62271.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-62271> (related)
- <https://github.com/ex-aws/ex_aws_kms/commit/b66631f206ec207ab7016c0c4d9f1ec898b56e85> (related, web)
- <https://github.com/ex-aws/ex_aws_kms/commit/2d7f308da3cf75ab0385c0aebdc84ce65f6754f7> (fix, patch)
- <https://hex.pm/packages/ex_aws_kms> (package)

## Sources

- CVE List: [CVE-2026-62271](https://www.cve.org/CVERecord?id=CVE-2026-62271), CVE Terms of Use, modified 2026-12-01
- Erlang Ecosystem Foundation: [EEF-CVE-2026-62271](https://osv.dev/vulnerability/EEF-CVE-2026-62271), CC-BY-4.0, modified 2026-11-26
- NVD: [CVE-2026-62271](https://nvd.nist.gov/vuln/detail/CVE-2026-62271), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-62271 · Whole record: https://cve.day/CVE-2026-62271.json · Rebuilt by cve.day 2026-12-01T17:32:12.840Z
