GHSA-64x4-9hc6-r2h6

Suggest an improvement
Source
https://github.com/advisories/GHSA-64x4-9hc6-r2h6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-64x4-9hc6-r2h6/GHSA-64x4-9hc6-r2h6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-64x4-9hc6-r2h6
Aliases
  • CVE-2022-30187
Published
2022-07-13T00:00:39Z
Modified
2024-05-23T17:16:02.952815Z
Severity
  • 4.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Microsoft: CBC Padding Oracle in Azure Blob Storage Encryption Library
Details

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

Database specific
{
    "nvd_published_at": "2022-07-12T23:15:00Z",
    "cwe_ids": [
        "CWE-668"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-07-21T22:35:57Z"
}
References

Affected packages

NuGet / Azure.Storage.Queues

Package

Name
Azure.Storage.Queues
View open source insights on deps.dev
Purl
pkg:nuget/Azure.Storage.Queues

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
12.11.0

Affected versions

12.*

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

NuGet / Azure.Storage.Blobs

Package

Name
Azure.Storage.Blobs
View open source insights on deps.dev
Purl
pkg:nuget/Azure.Storage.Blobs

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
12.13.0

Affected versions

12.*

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

Maven / com.azure:azure-storage-blob

Package

Name
com.azure:azure-storage-blob
View open source insights on deps.dev
Purl
pkg:maven/com.azure/azure-storage-blob

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
12.18.0

Affected versions

12.*

12.0.0
12.0.0-preview.1
12.0.0-preview.2
12.0.0-preview.3
12.0.0-preview.4
12.0.1
12.1.0
12.2.0-beta.1
12.2.0
12.3.0
12.3.1
12.4.0
12.5.0
12.6.0
12.6.1
12.7.0-beta.1
12.7.0
12.8.0-beta.1
12.8.0
12.9.0-beta.1
12.9.0-beta.2
12.9.0
12.10.0-beta.1
12.10.0
12.10.1
12.10.2
12.11.0-beta.1
12.11.0-beta.2
12.11.0-beta.3
12.11.0
12.11.1
12.12.0-beta.1
12.12.0
12.13.0
12.14.0-beta.1
12.14.0
12.14.1
12.14.2
12.14.3
12.14.4
12.15.0-beta.1
12.15.0-beta.2
12.15.0-beta.3
12.15.0
12.16.0
12.16.1
12.17.0-beta.1
12.17.0
12.17.1
12.18.0-beta.1

PyPI / azure-storage-queue

Package

Name
azure-storage-queue
View open source insights on deps.dev
Purl
pkg:pypi/azure-storage-queue

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
12.4.0

Affected versions

0.*

0.37.0

1.*

1.0.0
1.1.0
1.2.0rc1
1.3.0
1.4.0

2.*

2.0.0
2.0.1
2.1.0

12.*

12.0.0b1
12.0.0b2
12.0.0b3
12.0.0b4
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.0b1
12.3.0
12.4.0b1

PyPI / azure-storage-blob

Package

Name
azure-storage-blob
View open source insights on deps.dev
Purl
pkg:pypi/azure-storage-blob

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
12.13.0

Affected versions

0.*

0.37.0
0.37.1

1.*

1.0.0
1.1.0
1.2.0rc1
1.3.0
1.3.1
1.4.0
1.5.0

2.*

2.0.0
2.0.1
2.1.0

12.*

12.0.0b1
12.0.0b2
12.0.0b3
12.0.0b4
12.0.0
12.1.0
12.2.0
12.3.0
12.3.1
12.3.2
12.4.0b1
12.4.0
12.5.0
12.6.0b1
12.6.0
12.7.0b1
12.7.0
12.7.1
12.8.0b1
12.8.0
12.8.1
12.9.0b1
12.9.0
12.10.0b1
12.10.0b2
12.10.0b3
12.10.0b4
12.10.0
12.11.0
12.12.0b1
12.12.0
12.13.0b1