CVE-2026-62271
published low CVSS 4.0 · 2.1ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/3
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ex-aws | — | ex_aws_kms2.1.0 to < 2.7.0 · Other versions: unaffected | Affected | Not stated | EEF |
| ex-aws | — | ex-aws/ex_aws_kmsex_aws_kms · b66631f206ec207ab7016c0c4d9f1ec898b56e85 to < 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.1 / 10
- Severity
- low
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ex-aws | ex_aws_kms | 2.1.0 to < 2.7.0 (affected · semver)Default: unaffected | EEF · cna |
| ex-aws | ex_aws_kms | b66631f206ec207ab7016c0c4d9f1ec898b56e85 to < 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-780 CWE-780 Use of RSA Algorithm without OAEP
References
5- EEF CNA record for CVE-2026-62271 https://cna.erlef.org/cves/CVE-2026-62271.html
- Fix commit 2d7f308 in ex-aws/ex_aws_kms https://github.com/ex-aws/ex_aws_kms/commit/2d7f308da3cf75ab0385c0aebdc84ce65f6754f7
- Introducing commit b66631f in ex-aws/ex_aws_kms https://github.com/ex-aws/ex_aws_kms/commit/b66631f206ec207ab7016c0c4d9f1ec898b56e85
- https://github.com/ex-aws/ex_aws_kms/security/advisories/GHSA-wq7g-9pm7-5crv
- OSV record EEF-CVE-2026-62271 https://osv.dev/vulnerability/EEF-CVE-2026-62271
Provider assertions
2EEF · cna
ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/3
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2361134a3ba6974fc1e2b211e830903933aff2fe0b37a1c445613d95abca85d8
- Ingested
- 01 Dec 2026, 17:00:20 UTC
- Source record
- Official CVE record