Weak RSA padding default in ex_aws_kms key material import
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
ex-aws ex_aws_kms from 2.1.0 before 2.7.0 defaults RSA key material wrapping to the deprecated PKCS#1 v1.5 padding (CWE-780). ExAws.KMS.get_parameters_for_import/3 sets the wrapping algorithm to RSAES_PKCS1_V1_5 for callers who do not override it, a padding scheme open to Bleichenbacher padding oracle attacks. A local attacker with no privileges would need a padding oracle, and the source rates practical exploitability as low.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ex-aws | ex_aws_kms | 2.1.0 to before 2.7.0 | 2.7.0 | Patch available | CNA |
- ex_aws_kms Vendorex-aws Affected 2.1.0 to before 2.7.0 Fixed in 2.7.0 Patch available CNA
CPE names CNA · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
Upgrade ex_aws_kms to version 2.7.0 or later. Until then, callers can pass RSAES_OAEP_SHA_256 or RSAES_OAEP_SHA_1 explicitly as the wrapping algorithm.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
- Fix · CNA ex_aws_kms (ex-aws) Fixed in 2.7.0
Timeline
- 2026-11-24 Threatist record created from CVE-2026-62271
- 2026-11-24 Alias added: GHSA-cgv4-6337-qcvw
- 2026-12-01 CISA SSVC decision points changed
References
More ex-aws vulnerabilities
- TI-2026-97430 XML injection in ex_aws_s3 bucket configuration builders CVSS 4.0MEDIUM 6.9
- TI-2026-97439 XML injection in ExAws S3 batch delete lets attackers remove extra objects CVSS 4.0MEDIUM 5.9
- TI-2026-97429 XML injection in ex_aws_s3 object and bucket tagging CVSS 4.0LOW 2.1
- TI-2026-34676 ex_aws_sns SigningCertURL not validated in verify_message/1 CVSS 4.0HIGH 8.7
- TI-2026-97227 ex_aws IMDSv2 token request follows HTTP redirects (SSRF) CVSS 4.0HIGH 7.6
- TI-2026-97235 ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape CVSS 4.0HIGH 7.4
Sources
- CVE-2026-62271 · CVE Program
- CVE-2026-62271 · NVD
- FIRST EPSS
- GHSA-cgv4-6337-qcvw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences