{"id":"CVE-2026-6550","aliases":["CVE-2026-6550","GHSA-v638-38fc-rhfv","PYSEC-2026-2387"],"related":[],"kind":"vulnerability","state":"published","title":"Key commitment policy bypass via shared key cache in AWS Encryption SDK for Python","summary":"Cryptographic algorithm downgrade in the caching layer of Amazon AWS Encryption SDK for Python before version 3.3.1 and before version  4.0.5 might allow an authenticated local threat actor to bypass key commitment policy enforcement via a shared key cache, resulting in ciphertext that can be decrypted to multiple different plaintexts.\n\nTo remediate this issue, users should upgrade to version 3.3.1, 4.0.5 or above.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Cryptographic algorithm downgrade in the caching layer of Amazon AWS Encryption SDK for Python before version 3.3.1 and before version  4.0.5 might allow an authenticated local threat actor to bypass key commitment policy enforcement via a shared key cache, resulting in ciphertext that can be decrypted to multiple different plaintexts.\n\nTo remediate this issue, users should upgrade to version 3.3.1, 4.0.5 or above.","source":"cvelist"},{"lang":"en","text":"## Summary\nAWS Encryption SDK (ESDK) for Python is a client-side encryption library. An issue exists where, under certain circumstances, a specific cryptographic algorithm downgrade in the caching layer might allow an authenticated local threat actor to bypass key commitment policy enforcement via a shared key cache, resulting in ciphertext that can be decrypted to multiple different plaintexts.\n\n## Impact\nThis issue requires all of the following conditions to be true: (1) Two ESDK for Python clients with different commitment policies share a single CachingCryptoMaterialsManager instance within the same process. (2) The client with the weaker commitment policy encrypts first, warming the cache. (3) Both clients use matching encryption contexts. (4) Both clients use the pre-configured default algorithm suite.\n\nThese conditions may occur during a migration from ESDK for Python v1 to newer versions, as v1 did not support key commitment.\n\nWhen the weaker-policy client encrypts first, the cache stores encryption materials that do not enforce key commitment. Subsequent callers — including those configured to require key commitment — are served these cached materials instead of generating new ones that satisfy their policy. This results in encryption without key commitment, meaning the same ciphertext can be validly decrypted to different plaintexts under different keys (the \"Invisible Salamanders\" issue; see https://github.com/google/security-research/security/advisories/GHSA-wqgp-vphw-hphf). A threat actor who controls ciphertext can cause a recipient to decrypt a message different from what the sender encrypted, breaking message integrity.\n\n## Impacted versions\n- From 2.0 to 2.5.1\n- From 3.0 to 3.3.0\n- From 4.0 to 4.0.4\n\n## Patches\nThis issue has been addressed in ESDK for Python versions 3.3.1 and 4.0.5. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.\n\n## Workarounds\nIf a customer requires operating multiple instances of the Python ESDK each with differently configured key commitment policies, they must not share a key cache.\n\nReferences\nIf there are any questions or comments about this advisory, contact AWS Security through the [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n## Acknowledgement\nThanks to [1seal.org](http://1seal.org/) for collaborating on this issue through the coordinated vulnerability disclosure process.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Degradación del algoritmo criptográfico en la capa de caché de Amazon AWS SDK de Cifrado para Python anterior a la versión 3.3.1 y anterior a la versión 4.0.5 podría permitir a un actor de amenaza local autenticado eludir la aplicación de la política de compromiso de clave a través de una caché de claves compartida, lo que resulta en texto cifrado que puede ser descifrado a múltiples textos planos diferentes.\n\nPara remediar este problema, los usuarios deberían actualizar a la versión 3.3.1, 4.0.5 o superior.","source":"nvd"}],"published":"2026-04-20T19:20:23.383Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"AMZN","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":5.7,"rating":"MEDIUM"},"severities":[{"scorer":"AMZN","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","score":4.7,"rating":"MEDIUM"},{"scorer":"AMZN","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":5.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","score":4.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","score":4.7,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-757"],"affected":[{"ranges":[{"type":"custom","introduced":"2","lastAffected":"2.5.1","status":"affected"},{"type":"custom","introduced":"3","lastAffected":"3.3.0","status":"affected"},{"type":"custom","introduced":"4","lastAffected":"4.0.4","status":"affected"}],"vendor":"AWS","product":"AWS Encryption SDK for Python","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"3.3.1"}],"ecosystem":"PyPI","package":"aws-encryption-sdk","purl":"pkg:pypi/aws-encryption-sdk","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.5"}],"ecosystem":"PyPI","package":"aws-encryption-sdk","purl":"pkg:pypi/aws-encryption-sdk","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"3.3.1"},{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.5"}],"ecosystem":"PyPI","package":"aws-encryption-sdk","purl":"pkg:pypi/aws-encryption-sdk","source":"pysec"}],"references":[{"url":"https://aws.amazon.com/security/security-bulletins/2026-017-aws/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/aws/aws-encryption-sdk-python/releases/tag/v4.0.5","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/aws/aws-encryption-sdk-python/releases/tag/v3.3.1","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/aws/aws-encryption-sdk-python/security/advisories/GHSA-v638-38fc-rhfv","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/google/security-research/security/advisories/GHSA-wqgp-vphw-hphf","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6550","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://aws.amazon.com/security/security-bulletins/2026-017-aws","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/aws/aws-encryption-sdk-python","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/aws-encryption-sdk","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-v638-38fc-rhfv","tags":["advisory"],"sources":["pysec"]}],"credits":["1seal.org"],"assigner":"AMZN","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-20T19:44:04.637Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-6550","url":"https://www.cve.org/CVERecord?id=CVE-2026-6550","licence":"CVE Terms of Use","modified":"2026-04-20T19:44:11.685Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v638-38fc-rhfv","url":"https://github.com/advisories/GHSA-v638-38fc-rhfv","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:01.768Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-6550","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6550","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2387","url":"https://osv.dev/vulnerability/PYSEC-2026-2387","licence":"CC-BY-4.0","modified":"2026-07-13T16:31:31.667Z"}],"updatedAt":"2026-11-25T22:59:19.058Z","epss":{"score":0.001,"percentile":0.00885,"date":"2026-12-02T12:00:21.000Z"}}