# 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:** 2.1 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: Low; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.10% (percentile 0, 2026-11-28)
- **CWE:** CWE-780
- **Published:** 2026-11-24T12:22:05.337Z
- **Modified:** 2026-11-24T19:12:16.707Z

## Who should check

- Anyone running ex-aws ex\_aws\_kms \>= 2.1.0, \< 2.7.0
- Anyone running ex-aws ex\_aws\_kms \>= b66631f206ec207ab7016c0c4d9f1ec898b56e85, \< 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7

## 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.

## Affected and fixed versions

- ex-aws ex\_aws\_kms: \>= 2.1.0, \< 2.7.0 (cvelist)
- ex-aws ex\_aws\_kms: \>= b66631f206ec207ab7016c0c4d9f1ec898b56e85, \< 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7 (cvelist)

## Mitigation

- Upgrade ex\_aws\_kms to 2.7.0 or later.
- Upgrade ex\_aws\_kms to 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7 or later.
- Vendor workaround: Explicitly pass "RSAES\_OAEP\_SHA\_256" (or "RSAES\_OAEP\_SHA\_1") as the wrapping\_algorithm argument to ExAws.KMS.get\_parameters\_for\_import/3 instead of relying on the default, and wrap the key material with the corresponding OAEP padding scheme.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-62271. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-62271.md
Affected: ex-aws ex_aws_kms >= 2.1.0, < 2.7.0; ex-aws ex_aws_kms >= b66631f206ec207ab7016c0c4d9f1ec898b56e85, < 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7
Fixed in: ex-aws ex_aws_kms 2.7.0, ex-aws ex_aws_kms 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7

Steps:
1. Search this machine and project for ex-aws ex_aws_kms: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-62271 being exploited?

There is no confirmed exploitation: CVE-2026-62271 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.10% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-62271?

Low: CVSS 2.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-62271?

ex-aws ex\_aws\_kms \>= 2.1.0, \< 2.7.0; ex-aws ex\_aws\_kms \>= b66631f206ec207ab7016c0c4d9f1ec898b56e85, \< 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7.

### Is there a fix for CVE-2026-62271?

Yes. Fixed in ex-aws ex\_aws\_kms 2.7.0, ex-aws ex\_aws\_kms 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7. Upgrade ex\_aws\_kms to 2.7.0 or later. Upgrade ex\_aws\_kms to 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7 or later. Vendor workaround: Explicitly pass "RSAES\_OAEP\_SHA\_256" (or "RSAES\_OAEP\_SHA\_1") as the wrapping\_algorithm argument to ExAws.KMS.get\_parameters\_for\_import/3 instead of relying on the default, and wrap the key material with the corresponding OAEP padding scheme.

### How do I check if I'm affected by CVE-2026-62271?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ex-aws/ex_aws_kms/security/advisories/GHSA-wq7g-9pm7-5crv>
- patch: <https://github.com/ex-aws/ex_aws_kms/commit/b66631f206ec207ab7016c0c4d9f1ec898b56e85>
- patch: <https://github.com/ex-aws/ex_aws_kms/commit/2d7f308da3cf75ab0385c0aebdc84ce65f6754f7>
- other: <https://cna.erlef.org/cves/CVE-2026-62271.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-62271>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-62271>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-62271> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-62271>
