Skip to content
RCE Write-up Intermediate

Some notes about CVE-2026–21531 in Azure SDK ( CVSS: 9.8)

The Azure SDK for Python's conversations authoring package deserialised a user-supplied continuation token with Python's pickle module, allowing arbitrary code execution. An attacker who could supply a crafted token to a long-running operation could run system commands on the host.

medium.com

Published on medium.com

This is a technical deep-dive blog post based on our successful research and Proof of Concept (PoC) for the CVE-2026–21531 vulnerability.

hieudp01, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The SDK passed a caller-supplied continuation token directly to pickle.loads after Base64 decoding, so untrusted data was deserialised into arbitrary Python objects.

Impact

An attacker who can supply a continuation token to an affected long-running operation could execute arbitrary system commands on the machine running the SDK.

What the attacker needed

Ability to supply a continuation token; use of affected SDK version 1.0.0b3; call a long-running operation using the token

How it was found

  1. Create a malicious object whose __reduce__ returns a system command.
  2. Serialise that object with pickle and Base64-encode it to form a token.
  3. Create a ConversationAuthoringClient with any endpoint and credential.
  4. Call a long-running operation such as begin_cancel_training_job with the malicious continuation token.
  5. The SDK unpickles the token and the command runs.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Some programs save their state by converting objects into a special format called 'pickle'. Loading a pickle can run code, so if an attacker controls the pickle data, they can make the program run their own commands. Here the SDK accepted a token from the caller and unpickled it without checking, so a malicious token led to code execution.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.