Back

MEDIUM

CBC padding oracle in AWS S3 Crypto SDK for GoLang

Published Aug 11, 2020

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 products

Remediation

Red Hat statement

The following products include components that use the AWS SDK (aws/aws-sdk-go), however they do not include code that encrypts or decrypts files in S3 buckets (aws/aws-sdk-go/service/s3/s3crypto). The below products are not affected by this flaw: * Red Hat Cluster Application Migration * Red Hat OpenShift Container Platform * Red Hat OpenShift ServiceMesh * Red Hat OpenShift Container Storage * Red Hat Ceph Storage * Red Hat Gluster Storage

References (13)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Google
Published Aug 11, 2020
Updated Aug 4, 2024
Reserved Feb 12, 2020
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date Aug 11, 2020
ENISA EUVD
Assigner Google
Published Aug 11, 2020
Updated Aug 4, 2024
Exploited since n/a
EUVD-2022-0971 GHSA-F5PG-7WFW-84Q9