Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2022-30187 — azure-storage-blob

🟡 CVSS 4.7 — Medium ✅ No Known Exploit CWE-668 NVD
4.7
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is high, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

  • Attack vector: Local — a local account, shell or session on the host is needed.
  • Attack complexity: High — the attacker first has to win a race, learn a secret or otherwise prepare the target.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: None.
  • Availability impact: None.

Weakness class

CVE-2022-30187 is classified as CWE-668: Exposure of Resource to Wrong Sphere. A resource is made reachable from a context that should not have access to it.

Affected software

CVE-2022-30187 is recorded against 6 packages.

  • azure-storage-blob (fixed in 12.13.0)
  • azure-storage-blobs (fixed in 12.18.0)
  • azure-storage-queue (fixed in 12.4.0)
  • azure.storage.blobs (fixed in 12.13.0)
  • azure.storage.queues (fixed in 12.11.0)
  • com.azure:azure-storage-blob (fixed in 12.18.0)

Timeline and source

Published on 6 July 2026 and last revised on 13 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
msrc.microsoft.com (Web)
portal.msrc.microsoft.com (Web)
pypi.org (Package)
github.com (Advisory)

Other advisories for this package

azure-storage-blob has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-668: Exposure of Resource to Wrong Sphere) in other software:

CVE-2022-30187 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Medium
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
CWE CWE-668
Public Exploit ✅ No
Source NVD
Published 2026-07-06
Updated 2026-08-20
Modified 2026-07-13
Fix URL N/A

Affected Packages

Software From version Fixed in
azure-storage-blob — 12.13.0
azure-storage-blobs — 12.18.0
azure-storage-queue — 12.4.0
azure.storage.blobs — 12.13.0
azure.storage.queues — 12.11.0
com.azure:azure-storage-blob — 12.18.0

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in azure-storage-blob

CVE-2022-30187 is rated CVSS 4.7 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2022
✓