{"id":"CVE-2020-8911","published":"2020-08-11T19:20:14Z","modified":"2024-08-04T10:12:11Z","title":"CBC padding oracle in AWS S3 Crypto SDK for GoLang","vendor":"Google","product":"AWS S3 Crypto SDK for GoLang","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00346,"percentile":0.28949,"provenance":"source"},"cwes":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm"}],"references":[{"url":"https://aws.amazon.com/blogs/developer/updates-to-the-amazon-s3-encryption-client/?s=09","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/google/security-research/security/advisories/GHSA-f5pg-7wfw-84q9","tags":["x_refsource_CONFIRM"]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":5.79},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.92}]},"vendorSlug":"google","affectedVersions":[{"vendor":"Google LLC","product":"AWS S3 Crypto SDK for GoLang","versions":[">= stable, <= V1"]}],"affected":[{"ecosystem":"Go","package":"github.com/aws/aws-sdk-go","vulnerableRanges":["<1.34.0","all versions"],"patched":["1.34.0"],"from":["GHSA-f5pg-7wfw-84q9","GO-2022-0646"],"provenance":"source"}],"summary":{"text":"The padding oracle flaw lies in the AWS S3 Crypto SDK for GoLang, which in versions prior to V2 encrypts data with AES-CBC and no Message Authentication Code. An attacker who has write access to the target's S3 bucket and can observe whether an endpoint holding the key successfully decrypts a file can reconstruct the plaintext, at an average cost of about 128 × plaintext length queries, by exploiting CBC block manipulation and PKCS5 padding errors.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:13Z"},"euvd":{"id":"EUVD-2022-0971","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/sophieschmieg/exploits/tree/master/aws_s3_crypto_poc"],"lineage":{"familyId":"fam-google-aws-s3-crypto-sdk-for-golang-cve-2020-8911","children":[{"from":"CVE-2020-8911","to":"CVE-2022-2582","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["service/s3/s3crypto/aes_cbc_content_cipher.go","service/s3/s3crypto/aes_gcm_content_cipher.go","service/s3/s3crypto/cipher_util.go","service/s3/s3crypto/decryption_client.go","service/s3/s3crypto/decryption_client_v2.go"],"commits":["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/commit/35fa6ddf45c061e0f08d3a3b5119f8f4da38f6d1"],"basis":"shared function","functions":["ContentCipherWithContext","GenerateCipherData","GetObject","NewDecryptionClient","NewEncryptionClient"]}]}]}}