{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.ExAws.KMS'"],"packageName":"ex_aws_kms","packageURL":"pkg:hex/ex_aws_kms","product":"ex_aws_kms","programFiles":["lib/ex_aws/kms.ex"],"programRoutines":[{"name":"'Elixir.ExAws.KMS':get_parameters_for_import/3"}],"repo":"https://github.com/ex-aws/ex_aws_kms","vendor":"ex-aws","versions":[{"lessThan":"2.7.0","status":"affected","version":"2.1.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.ExAws.KMS'"],"packageName":"ex-aws/ex_aws_kms","packageURL":"pkg:github/ex-aws/ex_aws_kms","product":"ex_aws_kms","programFiles":["lib/ex_aws/kms.ex"],"programRoutines":[{"name":"'Elixir.ExAws.KMS':get_parameters_for_import/3"}],"repo":"https://github.com/ex-aws/ex_aws_kms","vendor":"ex-aws","versions":[{"lessThan":"2d7f308da3cf75ab0385c0aebdc84ce65f6754f7","status":"affected","version":"b66631f206ec207ab7016c0c4d9f1ec898b56e85","versionType":"git"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*","versionEndExcluding":"2.7.0","versionStartIncluding":"2.1.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Peter Ullrich"},{"lang":"en","type":"reporter","value":"Peter Ullrich"},{"lang":"en","type":"analyst","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"coordinator","value":"Peter Ullrich"},{"lang":"en","type":"remediation developer","value":"Bernard Duggan"}],"datePublic":"2026-11-24T12:22:04.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Use of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (<code>ExAws.KMS</code> module) causes callers who import external key material to wrap their secret KMS key material with the deprecated <code>PKCS#1</code> v1.5 padding scheme by default.</p>\n<p>This vulnerability is associated with program file <code>lib/ex_aws/kms.ex</code> and program routine <code>ExAws.KMS.get_parameters_for_import/3</code>.</p>\n<p><code>ExAws.KMS.get_parameters_for_import/3</code> defaults its <code>wrapping_algorithm</code> argument to <code>\"RSAES_PKCS1_V1_5\"</code>. AWS KMS returns this value as the <code>WrappingAlgorithm</code> for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling <code>ImportKeyMaterial</code>. AWS KMS also supports the stronger <code>RSAES_OAEP_SHA_1</code> and <code>RSAES_OAEP_SHA_256</code> schemes. By defaulting to <code>RSAES_PKCS1_V1_5</code>, the library steers callers who do not explicitly override the argument toward the weakest of the three. <code>PKCS#1</code> 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 <code>\"RSAES_OAEP_SHA_256\"</code> (or <code>\"RSAES_OAEP_SHA_1\"</code>) as the wrapping algorithm.</p>\n<p>This issue affects ex_aws_kms: from 2.1.0 before 2.7.0.</p>"},{"base64":false,"type":"text/markdown","value":"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.\n\nThis vulnerability is associated with program file `lib/ex_aws/kms.ex` and program routine `ExAws.KMS.get_parameters_for_import/3`.\n\n`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.\n\nThis issue affects ex_aws_kms: from 2.1.0 before 2.7.0."}],"value":"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.\n\nThis vulnerability is associated with program file lib/ex_aws/kms.ex and program routine ExAws.KMS.get_parameters_for_import/3.\n\nExAws.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.\n\nThis issue affects ex_aws_kms: from 2.1.0 before 2.7.0."}],"impacts":[{"capecId":"CAPEC-463","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>This is a cryptographic weak-default issue affecting anyone who uses <code>ExAws.KMS.get_parameters_for_import/3</code> to import external key material and relies on the default wrapping algorithm. Such callers wrap sensitive KMS key material with deprecated PKCS#1 v1.5 padding rather than OAEP. Real-world exploitation requires a padding oracle against the RSA decryption, and the KMS-side unwrap does not expose one, so the concrete risk is a defense-in-depth weakness rather than a directly reachable attack.</p>"},{"base64":false,"type":"text/markdown","value":"This is a cryptographic weak-default issue affecting anyone who uses `ExAws.KMS.get_parameters_for_import/3` to import external key material and relies on the default wrapping algorithm. Such callers wrap sensitive KMS key material with deprecated PKCS#1 v1.5 padding rather than OAEP. Real-world exploitation requires a padding oracle against the RSA decryption, and the KMS-side unwrap does not expose one, so the concrete risk is a defense-in-depth weakness rather than a directly reachable attack."}],"value":"This is a cryptographic weak-default issue affecting anyone who uses ExAws.KMS.get_parameters_for_import/3 to import external key material and relies on the default wrapping algorithm. Such callers wrap sensitive KMS key material with deprecated PKCS#1 v1.5 padding rather than OAEP. Real-world exploitation requires a padding oracle against the RSA decryption, and the KMS-side unwrap does not expose one, so the concrete risk is a defense-in-depth weakness rather than a directly reachable attack."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"HIGH","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":2.1,"baseSeverity":"LOW","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-780","description":"CWE-780 Use of RSA Algorithm without OAEP","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-24T12:22:05.337Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"tags":["vendor-advisory","related"],"url":"https://github.com/ex-aws/ex_aws_kms/security/advisories/GHSA-wq7g-9pm7-5crv"},{"name":"EEF CNA record for CVE-2026-62271","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-62271.html"},{"name":"OSV record EEF-CVE-2026-62271","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-62271"},{"name":"Introducing commit b66631f in ex-aws/ex_aws_kms","tags":["related"],"url":"https://github.com/ex-aws/ex_aws_kms/commit/b66631f206ec207ab7016c0c4d9f1ec898b56e85"},{"name":"Fix commit 2d7f308 in ex-aws/ex_aws_kms","tags":["patch"],"url":"https://github.com/ex-aws/ex_aws_kms/commit/2d7f308da3cf75ab0385c0aebdc84ce65f6754f7"}],"source":{"discovery":"EXTERNAL"},"title":"ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/3","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Explicitly pass <code>\"RSAES_OAEP_SHA_256\"</code> (or <code>\"RSAES_OAEP_SHA_1\"</code>) as the <code>wrapping_algorithm</code> argument to <code>ExAws.KMS.get_parameters_for_import/3</code> instead of relying on the default, and wrap the key material with the corresponding OAEP padding scheme.</p>"},{"base64":false,"type":"text/markdown","value":"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."}],"value":"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."}],"x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>Call <code>ExAws.KMS.get_parameters_for_import(\"alias/import-target\")</code> without a wrapping algorithm and read <code>op.data[\"WrappingAlgorithm\"]</code>: it is <code>\"RSAES_PKCS1_V1_5\"</code>.</li>\n<li>Wrap 32 bytes of secret key material with PKCS#1 v1.5 type-2 padding under an RSA public key, producing the ciphertext the attacker observes.</li>\n<li>Give the attacker the public key, the ciphertext and a boolean oracle that reports whether a decrypted value is validly v1.5-padded.</li>\n<li>Run the Bleichenbacher '98 attack: repeatedly multiply the ciphertext by <code>s^e mod n</code>, query the oracle, and narrow the interval containing the plaintext until it converges.</li>\n<li>The recovered plaintext equals the wrapped key material, obtained without the private key.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. Call `ExAws.KMS.get_parameters_for_import(\"alias/import-target\")` without a wrapping algorithm and read `op.data[\"WrappingAlgorithm\"]`: it is `\"RSAES_PKCS1_V1_5\"`.\n2. Wrap 32 bytes of secret key material with PKCS#1 v1.5 type-2 padding under an RSA public key, producing the ciphertext the attacker observes.\n3. Give the attacker the public key, the ciphertext and a boolean oracle that reports whether a decrypted value is validly v1.5-padded.\n4. Run the Bleichenbacher '98 attack: repeatedly multiply the ciphertext by `s^e mod n`, query the oracle, and narrow the interval containing the plaintext until it converges.\n5. The recovered plaintext equals the wrapped key material, obtained without the private key."}],"value":"* Call ExAws.KMS.get_parameters_for_import(\"alias/import-target\") without a wrapping algorithm and read op.data[\"WrappingAlgorithm\"]: it is \"RSAES_PKCS1_V1_5\".\n* Wrap 32 bytes of secret key material with PKCS#1 v1.5 type-2 padding under an RSA public key, producing the ciphertext the attacker observes.\n* Give the attacker the public key, the ciphertext and a boolean oracle that reports whether a decrypted value is validly v1.5-padded.\n* Run the Bleichenbacher '98 attack: repeatedly multiply the ciphertext by s^e mod n, query the oracle, and narrow the interval containing the plaintext until it converges.\n* The recovered plaintext equals the wrapped key material, obtained without the private key."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. Weak default.</strong> <code>ExAws.KMS.get_parameters_for_import/3</code> in <code>lib/ex_aws/kms.ex</code> defaults its <code>wrapping_algorithm</code> argument to <code>\"RSAES_PKCS1_V1_5\"</code>. AWS KMS also offers <code>RSAES_OAEP_SHA_1</code> and <code>RSAES_OAEP_SHA_256</code>, so callers who do not pass the argument get the weakest of the three.</p>\n<p><strong>2. Wrapping with that scheme.</strong> KMS returns the requested value as the <code>WrappingAlgorithm</code> of the import operation, and it dictates the RSA padding the caller uses to encrypt their secret key material under the KMS-provided public key before calling <code>ImportKeyMaterial</code>.</p>\n<p><strong>3. Exposure.</strong> PKCS#1 v1.5 encryption padding is vulnerable to Bleichenbacher adaptive chosen-ciphertext attacks: an adversary who holds the wrapped ciphertext and can query a padding oracle (anything that reveals whether a decrypted value was validly v1.5-padded) recovers the plaintext without the private key. OAEP is not susceptible. The unwrap happens inside AWS KMS, which does not expose such an oracle, so this is a defense-in-depth weakness.</p>"},{"base64":false,"type":"text/markdown","value":"**1. Weak default.** `ExAws.KMS.get_parameters_for_import/3` in `lib/ex_aws/kms.ex` defaults its `wrapping_algorithm` argument to `\"RSAES_PKCS1_V1_5\"`. AWS KMS also offers `RSAES_OAEP_SHA_1` and `RSAES_OAEP_SHA_256`, so callers who do not pass the argument get the weakest of the three.\n\n**2. Wrapping with that scheme.** KMS returns the requested value as the `WrappingAlgorithm` of the import operation, and it dictates the RSA padding the caller uses to encrypt their secret key material under the KMS-provided public key before calling `ImportKeyMaterial`.\n\n**3. Exposure.** PKCS#1 v1.5 encryption padding is vulnerable to Bleichenbacher adaptive chosen-ciphertext attacks: an adversary who holds the wrapped ciphertext and can query a padding oracle (anything that reveals whether a decrypted value was validly v1.5-padded) recovers the plaintext without the private key. OAEP is not susceptible. The unwrap happens inside AWS KMS, which does not expose such an oracle, so this is a defense-in-depth weakness."}],"value":"1. Weak default. ExAws.KMS.get_parameters_for_import/3 in lib/ex_aws/kms.ex defaults its wrapping_algorithm argument to \"RSAES_PKCS1_V1_5\". AWS KMS also offers RSAES_OAEP_SHA_1 and RSAES_OAEP_SHA_256, so callers who do not pass the argument get the weakest of the three.\n\n2. Wrapping with that scheme. KMS returns the requested value as the WrappingAlgorithm of the import operation, and it dictates the RSA padding the caller uses to encrypt their secret key material under the KMS-provided public key before calling ImportKeyMaterial.\n\n3. Exposure. PKCS#1 v1.5 encryption padding is vulnerable to Bleichenbacher adaptive chosen-ciphertext attacks: an adversary who holds the wrapped ciphertext and can query a padding oracle (anything that reveals whether a decrypted value was validly v1.5-padded) recovers the plaintext without the private key. OAEP is not susceptible. The unwrap happens inside AWS KMS, which does not expose such an oracle, so this is a defense-in-depth weakness."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-62271","datePublished":"2026-11-24T12:22:05.337Z","dateReserved":"2026-07-13T18:06:12.918Z","dateUpdated":"2026-11-24T12:22:05.337Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}