{"id":"GHSA-f5pg-7wfw-84q9","revision":null,"records":[{"revision":"5084277b4837401ab141f307dd6d3fea","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2020-8911","aliases":[],"title":"CBC padding oracle in AWS S3 Crypto SDK for GoLang","description":"A padding oracle vulnerability exists in the AWS S3 Crypto SDK for GoLang versions prior to V2. The SDK allows users to encrypt files with AES-CBC without computing a Message Authentication Code (MAC), which then allows an attacker who has write access to the target's S3 bucket and can observe whether or not an endpoint with access to the key can decrypt a file, they can reconstruct the plaintext with (on average) 128*length (plaintext) queries to the endpoint, by exploiting CBC's ability to manipulate the bytes of the next block and PKCS5 padding errors. It is recommended to update your SDK to V2 or later, and re-encrypt your files.","state":0,"publishedAt":"2020-08-11T19:20:14+00:00","modifiedAt":"2024-08-04T10:12:11.063+00:00","affected":[{"ecosystem":"Vendor product","name":"AWS S3 Crypto SDK for GoLang","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"AWS S3 Crypto SDK for GoLang\",\n                    \"vendor\": \"Google LLC\",\n                    \"versions\": [\n                        {\n                            \"lessThanOrEqual\": \"V1\",\n                            \"status\": \"affected\",\n                            \"version\": \"stable\",\n                            \"versionType\": \"custom\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":5.6,"severity":"MEDIUM"}],"references":["https://aws.amazon.com/blogs/developer/updates-to-the-amazon-s3-encryption-client/?s=09","https://github.com/google/security-research/security/advisories/GHSA-f5pg-7wfw-84q9"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2020-8911","license":"CVE Program Terms of Use","key":"cve-program:CVE-2020-8911","identifiers":["CVE-2020-8911"]},"retained":false,"historicalAffected":[]},{"revision":"9ec3461ac08047f283cf9e7f8c6b76f9","observedAt":"2026-11-18T00:29:43.079+00:00","statement":{"source":"euvd","id":"EUVD-2022-0971","aliases":["CVE-2020-8911","GHSA-f5pg-7wfw-84q9"],"title":"A padding oracle vulnerability exists in the AWS S3 Crypto SDK for GoLang versions prior to V2. The SDK allows users to encrypt files with AES-CBC without computing a Message Authentication Code (MAC), which then allows an attacker who has …","description":"A padding oracle vulnerability exists in the AWS S3 Crypto SDK for GoLang versions prior to V2. The SDK allows users to encrypt files with AES-CBC without computing a Message Authentication Code (MAC), which then allows an attacker who has write access to the target's S3 bucket and can observe whether or not an endpoint with access to the key can decrypt a file, they can reconstruct the plaintext with (on average) 128*length (plaintext) queries to the endpoint, by exploiting CBC's ability to manipulate the bytes of the next block and PKCS5 padding errors. It is recommended to update your SDK to V2 or later, and re-encrypt your files.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":5.6,"severity":null}],"references":["https://aws.amazon.com/blogs/developer/updates-to-the-amazon-s3-encryption-client/?s=09","https://github.com/google/security-research/security/advisories/GHSA-f5pg-7wfw-84q9"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-0971","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 11, 2020, 7:20:14 PM","dateUpdated":"Aug 4, 2024, 10:12:11 AM"},"relatedAdvisories":[{"id":"WID-SEC-W-2024-0794","title":"Dell ECS: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2018-18074","CVE-2020-10663","CVE-2020-10672","CVE-2020-10673","CVE-2020-10735","CVE-2020-10968","CVE-2020-10969","CVE-2020-11111","CVE-2020-11112","CVE-2020-11113","CVE-2020-11612","CVE-2020-11619","CVE-2020-11620","CVE-2020-11979","CVE-2020-12762","CVE-2020-12825","CVE-2020-13956","CVE-2020-14060","CVE-2020-14061","CVE-2020-14062","CVE-2020-14195","CVE-2020-15250","CVE-2020-1945","CVE-2020-1967","CVE-2020-1971","CVE-2020-24616","CVE-2020-24750","CVE-2020-25649","CVE-2020-25658","CVE-2020-26116","CVE-2020-26137","CVE-2020-26541","CVE-2020-27216","CVE-2020-27218","CVE-2020-27223","CVE-2020-28366","CVE-2020-28493","CVE-2020-29509","CVE-2020-29511","CVE-2020-29582","CVE-2020-29651","CVE-2020-35490","CVE-2020-35491","CVE-2020-35728","CVE-2020-36179","CVE-2020-36180","CVE-2020-36181","CVE-2020-36182","CVE-2020-36183","CVE-2020-36184","CVE-2020-36185","CVE-2020-36186","CVE-2020-36187","CVE-2020-36188","CVE-2020-36189","CVE-2020-36516","CVE-2020-36518","CVE-2020-36557","CVE-2020-36558","CVE-2020-36691","CVE-2020-7238","CVE-2020-8840","CVE-2020-8908","CVE-2020-8911","CVE-2020-8912","CVE-2020-9488","CVE-2020-9493","CVE-2020-9546","CVE-2020-9547","CVE-2020-9548","CVE-2021-20190","CVE-2021-20323","CVE-2021-21290","CVE-2021-21295","CVE-2021-21409","CVE-2021-23840","CVE-2021-23841","CVE-2021-2471","CVE-2021-25642","CVE-2021-26341","CVE-2021-27918","CVE-2021-28153","CVE-2021-28165","CVE-2021-28169","CVE-2021-28861","CVE-2021-29425","CVE-2021-30560","CVE-2021-3114","CVE-2021-33036","CVE-2021-33194","CVE-2021-33195","CVE-2021-33196","CVE-2021-33197","CVE-2021-33503","CVE-2021-33655","CVE-2021-33656","CVE-2021-3424","CVE-2021-34428","CVE-2021-3449","CVE-2021-3450","CVE-2021-3530","CVE-2021-36221","CVE-2021-36373","CVE-2021-36374","CVE-2021-3648","CVE-2021-36690","CVE-2021-3711","CVE-2021-3712","CVE-2021-37136","CVE-2021-37137","CVE-2021-37404","CVE-2021-37533","CVE-2021-3754","CVE-2021-3778","CVE-2021-3796","CVE-2021-3826","CVE-2021-3827","CVE-2021-38297","CVE-2021-3872","CVE-2021-3875","CVE-2021-3903","CVE-2021-3923","CVE-2021-3927","CVE-2021-3928","CVE-2021-3968","CVE-2021-3973","CVE-2021-3974","CVE-2021-3984","CVE-2021-4019","CVE-2021-4037","CVE-2021-4069","CVE-2021-4104","CVE-2021-4136","CVE-2021-4157","CVE-2021-4166","CVE-2021-41771","CVE-2021-4192","CVE-2021-4193","CVE-2021-4203","CVE-2021-42567","CVE-2021-43797","CVE-2021-44531","CVE-2021-44532","CVE-2021-44533","CVE-2021-44716","CVE-2021-44878","CVE-2021-45078","CVE-2021-46195","CVE-2021-46828","CVE-2021-46848","CVE-2022-0128","CVE-2022-0213","CVE-2022-0225","CVE-2022-0261","CVE-2022-0318","CVE-2022-0319","CVE-2022-0351","CVE-2022-0359","CVE-2022-0361","CVE-2022-0392","CVE-2022-0407","CVE-2022-0413","CVE-2022-0561","CVE-2022-0696","CVE-2022-0778","CVE-2022-1184","CVE-2022-1245","CVE-2022-1271","CVE-2022-1292","CVE-2022-1381","CVE-2022-1420","CVE-2022-1462","CVE-2022-1466","CVE-2022-1471","CVE-2022-1586","CVE-2022-1587","CVE-2022-1616","CVE-2022-1619","CVE-2022-1620","CVE-2022-1679","CVE-2022-1705","CVE-2022-1720","CVE-2022-1729","CVE-2022-1733","CVE-2022-1735","CVE-2022-1771","CVE-2022-1785","CVE-2022-1796","CVE-2022-1851","CVE-2022-1897","CVE-2022-1898","CVE-2022-1927","CVE-2022-1962","CVE-2022-1968","CVE-2022-1974","CVE-2022-1975","CVE-2022-20132","CVE-2022-20141","CVE-2022-20154","CVE-2022-20166","CVE-2022-20368","CVE-2022-20369","CVE-2022-2047","CVE-2022-2048","CVE-2022-20567","CVE-2022-2068","CVE-2022-2097","CVE-2022-21216","CVE-2022-21233","CVE-2022-2124","CVE-2022-2125","CVE-2022-2126","CVE-2022-2129","CVE-2022-21363","CVE-2022-21385","CVE-2022-21499","CVE-2022-2153","CVE-2022-21540","CVE-2022-21541","CVE-2022-21549","CVE-2022-21618","CVE-2022-21619","CVE-2022-21624","CVE-2022-21626","CVE-2022-21628","CVE-2022-21702","CVE-2022-2175","CVE-2022-2182","CVE-2022-2183","CVE-2022-2206","CVE-2022-2207","CVE-2022-2208","CVE-2022-2210","CVE-2022-2231","CVE-2022-2256","CVE-2022-2257","CVE-2022-2264","CVE-2022-2284","CVE-2022-2285","CVE-2022-2286","CVE-2022-2287","CVE-2022-22976","CVE-2022-22978","CVE-2022-2304","CVE-2022-2318","CVE-2022-23302","CVE-2022-23305","CVE-2022-23307","CVE-2022-2343","CVE-2022-2344","CVE-2022-2345","CVE-2022-23471","CVE-2022-23521","CVE-2022-23772","CVE-2022-23773","CVE-2022-24302","CVE-2022-24329","CVE-2022-24823","CVE-2022-24903","CVE-2022-2503","CVE-2022-25147","CVE-2022-25168","CVE-2022-2519","CVE-2022-2520","CVE-2022-2521","CVE-2022-2522","CVE-2022-25647","CVE-2022-2571","CVE-2022-2580","CVE-2022-2581","CVE-2022-25857","CVE-2022-2588","CVE-2022-2598","CVE-2022-26148","CVE-2022-26365","CVE-2022-26373","CVE-2022-2639","CVE-2022-26612","CVE-2022-2663","CVE-2022-27781","CVE-2022-27782","CVE-2022-27943","CVE-2022-2795","CVE-2022-28131","CVE-2022-2816","CVE-2022-2817","CVE-2022-2819","CVE-2022-28327","CVE-2022-2845","CVE-2022-2849","CVE-2022-2862","CVE-2022-2867","CVE-2022-2868","CVE-2022-2869","CVE-2022-28693","CVE-2022-2874","CVE-2022-28748","CVE-2022-2880","CVE-2022-2889","CVE-2022-29162","CVE-2022-29187","CVE-2022-2923","CVE-2022-2946","CVE-2022-29526","CVE-2022-29583","CVE-2022-2964","CVE-2022-2977","CVE-2022-2980","CVE-2022-2982","CVE-2022-29900","CVE-2022-29901","CVE-2022-2991","CVE-2022-3016","CVE-2022-3028","CVE-2022-3037","CVE-2022-30580","CVE-2022-30630","CVE-2022-30631","CVE-2022-30632","CVE-2022-30633","CVE-2022-3099","CVE-2022-31030","CVE-2022-31159","CVE-2022-3134","CVE-2022-3153","CVE-2022-3169","CVE-2022-31690","CVE-2022-32148","CVE-2022-32149","CVE-2022-32206","CVE-2022-32208","CVE-2022-32221","CVE-2022-3234","CVE-2022-3235","CVE-2022-3239","CVE-2022-3278","CVE-2022-3296","CVE-2022-3297","CVE-2022-33196","CVE-2022-3324","CVE-2022-3352","CVE-2022-33740","CVE-2022-33741","CVE-2022-33742","CVE-2022-33972","CVE-2022-33981","CVE-2022-34169","CVE-2022-3424","CVE-2022-34266","CVE-2022-34526","CVE-2022-34903","CVE-2022-3491","CVE-2022-3515","CVE-2022-3520","CVE-2022-3521","CVE-2022-3524","CVE-2022-35252","CVE-2022-3542","CVE-2022-3545","CVE-2022-3564","CVE-2022-3565","CVE-2022-3566","CVE-2022-3567","CVE-2022-35737","CVE-2022-3586","CVE-2022-3591","CVE-2022-3594","CVE-2022-3597","CVE-2022-3599","CVE-2022-36109","CVE-2022-3621","CVE-2022-3626","CVE-2022-3627","CVE-2022-3628","CVE-2022-36280","CVE-2022-3629","CVE-2022-3635","CVE-2022-3643","CVE-2022-36437","CVE-2022-3646","CVE-2022-3649","CVE-2022-36760","CVE-2022-36879","CVE-2022-36946","CVE-2022-3705","CVE-2022-37434","CVE-2022-37436","CVE-2022-37865","CVE-2022-37866","CVE-2022-38090","CVE-2022-38096","CVE-2022-38126","CVE-2022-38127","CVE-2022-38177","CVE-2022-38178","CVE-2022-3821","CVE-2022-38533","CVE-2022-38749","CVE-2022-38750","CVE-2022-38751","CVE-2022-38752","CVE-2022-39028","CVE-2022-3903","CVE-2022-39188","CVE-2022-39399","CVE-2022-3970","CVE-2022-40149","CVE-2022-40150","CVE-2022-40151","CVE-2022-40152","CVE-2022-40153","CVE-2022-40303","CVE-2022-40304","CVE-2022-40307","CVE-2022-40674","CVE-2022-40768","CVE-2022-40899","CVE-2022-4095","CVE-2022-41218","CVE-2022-4129","CVE-2022-4141","CVE-2022-41717","CVE-2022-41721","CVE-2022-41848","CVE-2022-41850","CVE-2022-41854","CVE-2022-41858","CVE-2022-41881","CVE-2022-41903","CVE-2022-41915","CVE-2022-41966","CVE-2022-41974","CVE-2022-42003","CVE-2022-42004","CVE-2022-42010","CVE-2022-42011","CVE-2022-42012","CVE-2022-42328","CVE-2022-42329","CVE-2022-42703","CVE-2022-42889","CVE-2022-42895","CVE-2022-42896","CVE-2022-42898","CVE-2022-4292","CVE-2022-4293","CVE-2022-42969","CVE-2022-4304","CVE-2022-43552","CVE-2022-43680","CVE-2022-43750","CVE-2022-4378","CVE-2022-43945","CVE-2022-43995","CVE-2022-4415","CVE-2022-4450","CVE-2022-44638","CVE-2022-45061","CVE-2022-45688","CVE-2022-45884","CVE-2022-45885","CVE-2022-45886","CVE-2022-45887","CVE-2022-45919","CVE-2022-45934","CVE-2022-45939","CVE-2022-4662","CVE-2022-46751","CVE-2022-46908","CVE-2022-47629","CVE-2022-47929","CVE-2022-48281","CVE-2022-48337","CVE-2022-48339","CVE-2023-0045","CVE-2023-0049","CVE-2023-0051","CVE-2023-0054","CVE-2023-0215","CVE-2023-0286","CVE-2023-0288","CVE-2023-0433","CVE-2023-0464","CVE-2023-0465","CVE-2023-0466","CVE-2023-0512","CVE-2023-0590","CVE-2023-0597","CVE-2023-0833","CVE-2023-1076","CVE-2023-1095","CVE-2023-1118","CVE-2023-1127","CVE-2023-1170","CVE-2023-1175","CVE-2023-1370","CVE-2023-1380","CVE-2023-1390","CVE-2023-1436","CVE-2023-1513","CVE-2023-1611","CVE-2023-1670","CVE-2023-1855","CVE-2023-1989","CVE-2023-1990","CVE-2023-1998","CVE-2023-20862","CVE-2023-2124","CVE-2023-2162","CVE-2023-2176","CVE-2023-21830","CVE-2023-21835","CVE-2023-21843","CVE-2023-21930","CVE-2023-21937","CVE-2023-21938","CVE-2023-21939","CVE-2023-2194","CVE-2023-21954","CVE-2023-21967","CVE-2023-21968","CVE-2023-22490","CVE-2023-2253","CVE-2023-22809","CVE-2023-23454","CVE-2023-23455","CVE-2023-23559","CVE-2023-23916","CVE-2023-23946","CVE-2023-24329","CVE-2023-24532","CVE-2023-24534","CVE-2023-2483","CVE-2023-24998","CVE-2023-2513","CVE-2023-25193","CVE-2023-25652","CVE-2023-25690","CVE-2023-25809","CVE-2023-25815","CVE-2023-26048","CVE-2023-26049","CVE-2023-2650","CVE-2023-26545","CVE-2023-26604","CVE-2023-27533","CVE-2023-27534","CVE-2023-27535","CVE-2023-27536","CVE-2023-27538","CVE-2023-27561","CVE-2023-2828","CVE-2023-28320","CVE-2023-28321","CVE-2023-28322","CVE-2023-28328","CVE-2023-28464","CVE-2023-28486","CVE-2023-28487","CVE-2023-28642","CVE-2023-28772","CVE-2023-28840","CVE-2023-28841","CVE-2023-28842","CVE-2023-29007","CVE-2023-29383","CVE-2023-29402","CVE-2023-29406","CVE-2023-29409","CVE-2023-2976","CVE-2023-30630","CVE-2023-30772","CVE-2023-31084","CVE-2023-3138","CVE-2023-31436","CVE-2023-31484","CVE-2023-32269","CVE-2023-32697","CVE-2023-33264","CVE-2023-34034","CVE-2023-34035","CVE-2023-34453","CVE-2023-34454","CVE-2023-34455","CVE-2023-34462","CVE-2023-35116","CVE-2023-3635","CVE-2023-36479","CVE-2023-39533","CVE-2023-40167","CVE-2023-40217","CVE-2023-41105","CVE-2023-41900","CVE-2023-43642","CVE-2023-43804","CVE-2023-44487","CVE-2023-45803","CVE-2024-21626"]},{"id":"openSUSE-SU-2024:14513-1","title":"govulncheck-vulndb-0.0.20241119T173509-1.1 on GA media","vulnerabilityIds":["CVE-2020-8911","CVE-2023-0109","CVE-2024-0793","CVE-2024-24425","CVE-2024-24426","CVE-2024-44625","CVE-2024-52010","CVE-2024-52308","CVE-2024-52522","CVE-2024-9526"]},{"id":"RHSA-2021:3851","title":"Red Hat Security Advisory: Red Hat 3scale API Management 2.11.0 Release - Container Images","vulnerabilityIds":["CVE-2020-8911","CVE-2020-8912","CVE-2021-3442","CVE-2021-3814","CVE-2021-23017"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2022-0971","identifiers":["EUVD-2022-0971","CVE-2020-8911","GHSA-f5pg-7wfw-84q9"]},"retained":false,"historicalAffected":[]},{"revision":"3b4f5884c0904f839553f976816e3bac","observedAt":"2026-10-24T17:17:33.481+00:00","statement":{"source":"nvd","id":"CVE-2020-8911","aliases":[],"title":"A padding oracle vulnerability exists in the AWS S3 Crypto SDK for GoLang versions prior to V2. The SDK allows users to encrypt files with AES-CBC without computing a Message Authentication Code (MAC), which then allows an attacker who has …","description":"A padding oracle vulnerability exists in the AWS S3 Crypto SDK for GoLang versions prior to V2. The SDK allows users to encrypt files with AES-CBC without computing a Message Authentication Code (MAC), which then allows an attacker who has write access to the target's S3 bucket and can observe whether or not an endpoint with access to the key can decrypt a file, they can reconstruct the plaintext with (on average) 128*length (plaintext) queries to the endpoint, by exploiting CBC's ability to manipulate the bytes of the next block and PKCS5 padding errors. It is recommended to update your SDK to V2 or later, and re-encrypt your files.","state":0,"publishedAt":"2020-08-11T20:15:13.23+00:00","modifiedAt":"2026-06-17T03:27:10.323+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · cve-coordination@google.com · Secondary","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":5.6,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":5.6,"severity":"MEDIUM"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","score":2.1,"severity":"LOW"}],"references":["https://aws.amazon.com/blogs/developer/updates-to-the-amazon-s3-encryption-client/?s=09","https://github.com/google/security-research/security/advisories/GHSA-f5pg-7wfw-84q9"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2020-8911","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-327"],"productCriteria":["cpe:2.3:a:amazon:aws_s3_crypto_sdk:*:*:*:*:*:golang:*:*"],"sourceDates":{"published":"2020-08-11T20:15:13.230","lastModified":"2026-06-17T03:27:10.323"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2020-8911","identifiers":["CVE-2020-8911"]},"retained":false,"historicalAffected":[]},{"revision":"64b245dc5696416db7b57a8633bd7b25","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-f5pg-7wfw-84q9","aliases":["CVE-2020-8911","GO-2022-0646"],"title":"CBC padding oracle issue in AWS S3 Crypto SDK for golang","description":"### Summary\n\nThe golang AWS S3 Crypto SDK is impacted by an issue that can result in loss of confidentiality and message forgery. The attack requires write access to the bucket in question, and that the attacker has access to an endpoint that reveals decryption failures (without revealing the plaintext) and that when encrypting the CBC option was chosen as content cipher.\n\n### Risk/Severity\n\nThe vulnerability pose insider risks/privilege escalation risks, circumventing KMS controls for stored data.\n\n### Impact\n\nThis advisory describes the plaintext revealing vulnerabilities in the golang AWS S3 Crypto SDK, with a similar issue in the non \"strict\" versions of C++ and Java S3 Crypto SDKs being present as well.\n\nV1 prior to 1.34.0 of the S3 crypto SDK, allows users to encrypt files with AES-CBC, without computing a MAC on the data. Note that there is an alternative option of using AES-GCM, which is used in the examples of the documentation and not affected by this vulnerability, but by CVE-2020-8912.\n\nThis exposes a padding oracle vulnerability: If the attacker has write access to the S3 bucket and can observe whether or not an endpoint with access to the key can decrypt a file (without observing the file contents that the endpoint learns in the process), they can reconstruct the plaintext with (on average) `128*length(plaintext)` queries to the endpoint, by exploiting CBC's ability to manipulate the bytes of the next block and PKCS5 padding errors.\n\nThis issue is fixed in V2 of the API, by disabling encryption with CBC mode for new files. Old files, if they have been encrypted with CBC mode, remain vulnerable until they are reencrypted with AES-GCM.\n\n### Mitigation\n\nUsing the version 2 of the S3 crypto SDK will not produce vulnerable files anymore. Old files remain vulnerable to this problem if they were originally encrypted with CBC mode.\n\n### Proof of concept\n\nA [Proof of concept](https://github.com/sophieschmieg/exploits/tree/master/aws_s3_crypto_poc) is available in a separate github repository.\n\nThis particular issue is described in [padding_oracle_exploit.go](https://github.com/sophieschmieg/exploits/blob/master/aws_s3_crypto_poc/exploit/padding_oracle_exploit.go):\n\n```golang\nfunc PaddingOracleExploit(bucket string, key string, input *OnlineAttackInput) (string, error) {\n\tdata, header, err := input.S3Mock.GetObjectDirect(bucket, key)\n\tif alg := header.Get(\"X-Amz-Meta-X-Amz-Cek-Alg\"); alg != \"AES/CBC/PKCS5Padding\" {\n\t\treturn \"\", fmt.Errorf(\"Algorithm is %q, not CBC!\", alg)\n\t}\n\tlength, err := strconv.Atoi(header.Get(\"X-Amz-Meta-X-Amz-Unencrypted-Content-Length\"))\n\tpadding := byte(len(data) - length)\n\tplaintext := make([]byte, length)\n\tfor i := length - 1; i >= 0; i-- {\n\t\tnewLength := 16 * (i/16 + 1)\n\t\tdataCopy := make([]byte, newLength)\n\t\theaderCopy := header.Clone()\n\t\tcopy(dataCopy, data)\n\t\t// Set Padding\n\t\tnewPadding := byte(newLength - i)\n\t\tfor j := i + 1; j < newLength; j++ {\n\t\t\tvar oldValue byte\n\t\t\tif j >= length {\n\t\t\t\toldValue = padding\n\t\t\t} else {\n\t\t\t\toldValue = plaintext[j]\n\t\t\t}\n\t\t\tdataCopy, headerCopy, err = xorData(oldValue^newPadding, j, dataCopy, headerCopy)\n\t\t\tif err != nil {\n\t\t\t\treturn \"\", err\n\t\t\t}\n\t\t}\n\t\t// Guess\n\t\tfor c := 0; c < 256; c++ {\n\t\t\tdataCopy, headerCopy, err := xorData(byte(c)^newPadding, i, dataCopy, headerCopy)\n\t\t\tinput.S3Mock.PutObjectDirect(bucket, key+\"guess\", dataCopy, headerCopy)\n\t\t\tif input.Oracle(bucket, key+\"guess\") {\n\t\t\t\tplaintext[i] = byte(c)\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tdataCopy, headerCopy, err = xorData(byte(c)^newPadding, i, dataCopy, headerCopy)\n\t\t}\n\t}\n\treturn string(plaintext), nil\n}\n```","state":0,"publishedAt":"2022-02-11T23:26:26+00:00","modifiedAt":"2026-09-10T03:49:12.0540803+00:00","affected":[{"ecosystem":"Go","name":"github.com/aws/aws-sdk-go","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.34.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/google/security-research/security/advisories/GHSA-f5pg-7wfw-84q9","https://nvd.nist.gov/vuln/detail/CVE-2020-8911","https://github.com/aws/aws-sdk-go/pull/3403","https://github.com/aws/aws-sdk-go/commit/1e84382fa1c0086362b5a4b68e068d4f8518d40e","https://github.com/aws/aws-sdk-go/commit/ae9b9fd92af132cfd8d879809d8611825ba135f4","https://aws.amazon.com/blogs/developer/updates-to-the-amazon-s3-encryption-client/?s=09","https://bugzilla.redhat.com/show_bug.cgi?id=1869800","https://github.com/aws/aws-sdk-go","https://github.com/sophieschmieg/exploits/tree/master/aws_s3_crypto_poc","https://pkg.go.dev/vuln/GO-2022-0646"],"sourceUrl":"https://github.com/advisories/GHSA-f5pg-7wfw-84q9","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-f5pg-7wfw-84q9","identifiers":["GHSA-f5pg-7wfw-84q9","CVE-2020-8911","GO-2022-0646"]},"retained":false,"historicalAffected":[]},{"revision":"1951555f56664aa9a9bf36a6fe5d5ce8","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2022-0646","aliases":["CVE-2020-8911","GHSA-f5pg-7wfw-84q9"],"title":"CBC padding oracle issue in AWS S3 Crypto SDK for golang in github.com/aws/aws-sdk-go","description":"A padding oracle vulnerability exists in the AWS S3 Crypto SDK for GoLang versions prior to V2. The SDK allows users to encrypt files with AES-CBC without computing a Message Authentication Code (MAC), which then allows an attacker who has write access to the target's S3 bucket and can observe whether or not an endpoint with access to the key can decrypt a file, they can reconstruct the plaintext with (on average) 128*length (plaintext) queries to the endpoint, by exploiting CBC's ability to manipulate the bytes of the next block and PKCS5 padding errors. It is recommended to update your SDK to V2 or later, and re-encrypt your files.","state":0,"publishedAt":"2022-02-11T23:26:26+00:00","modifiedAt":"2026-02-04T02:16:32.06693+00:00","affected":[{"ecosystem":"Go","name":"github.com/aws/aws-sdk-go","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/google/security-research/security/advisories/GHSA-f5pg-7wfw-84q9","https://github.com/aws/aws-sdk-go/commit/1e84382fa1c0086362b5a4b68e068d4f8518d40e","https://github.com/aws/aws-sdk-go/commit/ae9b9fd92af132cfd8d879809d8611825ba135f4","https://github.com/aws/aws-sdk-go/pull/3403","https://aws.amazon.com/blogs/developer/updates-to-the-amazon-s3-encryption-client/?s=09","https://bugzilla.redhat.com/show_bug.cgi?id=1869800","https://github.com/sophieschmieg/exploits/tree/master/aws_s3_crypto_poc"],"sourceUrl":"https://osv.dev/vulnerability/GO-2022-0646","license":"OSV · upstream source license applies","key":"osv:GO-2022-0646","identifiers":["GO-2022-0646","CVE-2020-8911","GHSA-f5pg-7wfw-84q9"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T05:22:48.4383343+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T05:22:48.4383343+00:00","lastSuccessAt":"2026-11-19T05:22:48.5819004+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.581904+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-a3c5d1f50b99987b637138fdc7cd9e1e0d772b1c81dbbff4bcc8be865c192a98","complete":true,"records":428232,"lastAttemptAt":"2026-11-19T05:22:47.9486287+00:00","lastSuccessAt":"2026-11-19T05:22:47.9265788+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:47.9486287+00:00","snapshotPublishedAt":"2026-11-19T04:33:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-7c1103063ba0426d8e585240e558964c","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T05:32:28.4240909+00:00","lastSuccessAt":"2026-11-19T05:32:27.403+00:00","error":"218 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T05:32:27.403+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13568,"expectedIdentifiers":13908,"failedIdentifiers":218},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T05:22:48.4383343+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T05:22:48.4383343+00:00","lastSuccessAt":"2026-11-19T05:22:48.5827402+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.5827403+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-84b4b212d7ef41cb9ec24b71e9d8e5d8","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T05:22:49.1394496+00:00","lastSuccessAt":"2026-11-19T04:24:39.391+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:39.391+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T05:22:48.2819697+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.2819697+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T05:22:48.0028407+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.0028407+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-c0d9c71c6fa06d617f979e7bec0d97aca70ca5aea1558184002f8e44516f2fac","complete":true,"records":3177,"lastAttemptAt":"2026-11-19T05:22:48.391557+00:00","lastSuccessAt":"2026-11-18T21:25:09.5127964+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.391557+00:00","snapshotPublishedAt":"2026-11-18T21:18:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-2556fa291ec863b7fd77332e55dcff5569878e06b48ea32c182e52878cdd1ce8","complete":true,"records":232702,"lastAttemptAt":"2026-11-19T05:22:48.1723185+00:00","lastSuccessAt":"2026-11-19T04:24:35.8955272+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.1723185+00:00","snapshotPublishedAt":"2026-11-19T03:33:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}