Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS02NHg0LTloYzYtcjJoNs4AAtUo
Microsoft: CBC Padding Oracle in Azure Blob Storage Encryption Library
Summary
The Azure Storage Encryption library in Java and other languages is vulnerable to a CBC Padding Oracle attack, similar to CVE-2020-8911. The library is not vulnerable to the equivalent of CVE-2020-8912, but only because it currently only supports AES-CBC as encryption mode.
Severity
Moderate - The vulnerability poses insider risks/privilege escalation risks, circumventing controls for stored data.
Further Analysis
The Java Azure Blob Storage Encryption SDK is impacted by an issue that can result in loss of confidentiality and message forgery. The attack requires write access to the container 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.
This advisory describes the plaintext revealing vulnerabilities in the Java Azure Blob Storage Encryption SDK, with a similar issue in the other blob storage SDKs being present as well.
In the current version of the Azure Blob Storage crypto SDK, the only algorithm option that allows users to encrypt files is to AES-CBC, without computing a MAC on the data.
This exposes a padding oracle vulnerability: If the attacker has write access to the blob container 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.
Timeline
Date reported: March 29 2022
Date preview: June 16 2022
Date GA: July 11 2022
Date disclosed: July 17 2022
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02NHg0LTloYzYtcjJoNs4AAtUo
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 2 years ago
Updated: 6 months ago
CVSS Score: 4.7
CVSS vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Identifiers: GHSA-64x4-9hc6-r2h6, CVE-2022-30187
References:
- https://nvd.nist.gov/vuln/detail/CVE-2022-30187
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2022-30187
- https://github.com/google/security-research/security/advisories/GHSA-6m8q-r22q-vfxh
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-30187
- https://github.com/advisories/GHSA-64x4-9hc6-r2h6
Affected Packages
pypi:azure-storage-blob
Dependent packages: 397Dependent repositories: 4,509
Downloads: 61,424,470 last month
Affected Version Ranges: < 12.13.0
Fixed in: 12.13.0
All affected versions: 0.37.0, 0.37.1, 1.0.0, 1.1.0, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 2.0.0, 2.0.1, 2.1.0, 12.0.0, 12.1.0, 12.2.0, 12.3.0, 12.3.1, 12.3.2, 12.4.0, 12.5.0, 12.6.0, 12.7.0, 12.7.1, 12.8.0, 12.8.1, 12.9.0, 12.10.0, 12.11.0, 12.12.0
All unaffected versions: 12.13.0, 12.13.1, 12.14.0, 12.14.1, 12.15.0, 12.16.0, 12.17.0, 12.18.0, 12.18.1, 12.18.2, 12.18.3, 12.19.0, 12.19.1, 12.20.0, 12.21.0, 12.22.0, 12.23.0, 12.23.1, 12.24.0
pypi:azure-storage-queue
Dependent packages: 33Dependent repositories: 541
Downloads: 8,954,039 last month
Affected Version Ranges: < 12.4.0
Fixed in: 12.4.0
All affected versions: 0.37.0, 1.0.0, 1.1.0, 1.3.0, 1.4.0, 2.0.0, 2.0.1, 2.1.0, 12.0.0, 12.1.0, 12.1.1, 12.1.2, 12.1.3, 12.1.4, 12.1.5, 12.1.6, 12.2.0, 12.3.0
All unaffected versions: 12.4.0, 12.5.0, 12.6.0, 12.7.0, 12.7.1, 12.7.2, 12.7.3, 12.8.0, 12.9.0, 12.10.0, 12.11.0, 12.12.0
maven:com.azure:azure-storage-blob
Dependent packages: 137Dependent repositories: 970
Downloads:
Affected Version Ranges: < 12.18.0
Fixed in: 12.18.0
All affected versions: 12.7.0, 12.8.0, 12.9.0, 12.10.0, 12.10.1, 12.10.2, 12.11.0, 12.11.1, 12.12.0, 12.13.0, 12.14.0, 12.14.1, 12.14.2, 12.14.3, 12.14.4, 12.15.0, 12.16.0, 12.16.1, 12.17.0, 12.17.1
All unaffected versions: 12.18.0, 12.19.0, 12.19.1, 12.20.0, 12.20.1, 12.20.2, 12.20.3, 12.21.0, 12.21.1, 12.22.0, 12.22.1, 12.22.2, 12.22.3, 12.23.0, 12.23.1, 12.24.0, 12.24.1, 12.25.0, 12.25.1, 12.25.2, 12.25.3, 12.25.4, 12.26.0, 12.26.1, 12.27.0, 12.27.1, 12.28.0, 12.28.1, 12.29.0
nuget:Azure.Storage.Blobs
Dependent packages: 754Dependent repositories: 0
Downloads: 314,948,497 total
Affected Version Ranges: < 12.13.0
Fixed in: 12.13.0
All affected versions: 12.0.0, 12.1.0, 12.2.0, 12.3.0, 12.4.0, 12.4.1, 12.4.2, 12.4.3, 12.4.4, 12.5.0, 12.5.1, 12.6.0, 12.7.0, 12.8.0, 12.8.1, 12.8.2, 12.8.3, 12.8.4, 12.9.0, 12.9.1, 12.10.0, 12.11.0, 12.12.0
All unaffected versions: 12.13.0, 12.13.1, 12.14.0, 12.14.1, 12.15.0, 12.15.1, 12.16.0, 12.17.0, 12.18.0, 12.19.0, 12.19.1, 12.20.0, 12.21.0, 12.21.1, 12.21.2, 12.22.0, 12.22.1, 12.22.2, 12.23.0
nuget:Azure.Storage.Queues
Dependent packages: 158Dependent repositories: 0
Downloads: 89,876,604 total
Affected Version Ranges: < 12.11.0
Fixed in: 12.11.0
All affected versions: 12.0.0, 12.1.0, 12.1.1, 12.2.0, 12.3.0, 12.3.1, 12.3.2, 12.4.0, 12.4.1, 12.4.2, 12.5.0, 12.6.0, 12.6.1, 12.6.2, 12.7.0, 12.8.0, 12.9.0, 12.10.0
All unaffected versions: 12.11.0, 12.11.1, 12.12.0, 12.13.0, 12.13.1, 12.14.0, 12.15.0, 12.16.0, 12.17.0, 12.17.1, 12.18.0, 12.19.0, 12.19.1, 12.20.0, 12.20.1, 12.21.0