CVE-2026-62271
ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/3
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.
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
Vulnerability facts
- 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
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- 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:NOpen in CVSS calculator
Show all 11 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
- EPSS
- 0.10% chance of exploitation in 30 days (percentile 0, 2026-11-28)
- CWE
- CWE-780
- Modified
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
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
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.
More ex-aws vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| LOW 2.0 | CVE-2026-62272 ex_aws_lambda relative path traversal via unencoded identifiers in ExAws.Lambda request paths | ex-aws | EPSS 8% | |
| MEDIUM 5.9 | CVE-2026-65622 ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URLs | ex-aws | EPSS 10% | |
| LOW 2.1 | CVE-2026-62273 XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging | ex-aws | PoCEPSS 31% | |
| MEDIUM 6.9 | CVE-2026-63581 ex_aws_s3 XML injection in bucket-configuration builders | ex-aws | PoCEPSS 31% | |
| LOW 2.1 | CVE-2026-63584 Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key | ex-aws | EPSS 13% |