Vulnerability · Published Aug 11, 2020 · Assigned by Google

CVE-2020-8911CBC padding oracle in AWS S3 Crypto SDK for GoLang

Medium 5.6

In plain English

A medium-severity broken cryptography in AWS S3 Crypto SDK for GoLang from Google LLC. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.6Medium
Exploit odds (30 days)0.3%top 71.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/aws/aws-sdk-go1.34.0GHSA-f5pg-7wfw-84q9
Gogithub.com/aws/aws-sdk-gono fix listedGO-2022-0646

Affected products (as reported)

VendorProductVersions
Google LLC AWS S3 Crypto SDK for GoLang stable – through V1

Weakness: CWE-327 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N

References