Email me

Rust advisories / azure_core

Vulnerability MediumRUSTSEC-2026-0275 · azure_core

RUSTSEC-2026-0275: Legacy `azure_core` writes the `authorization` header value to logs

Short answerA security vulnerability in the azure_core crate: Legacy `azure_core` writes the `authorization` header value to logs. Medium severity (CVSS 6.5). Fixed in 0.2.0, 0.22.0: update to a fixed version.

Crateazure_core
TypeVulnerability
Affected versionsBefore 0.2.0; from 0.2.1 before 0.22.0.
Fixed in0.2.0, 0.22.0
SeverityMedium, CVSS 6.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Published2026-08-15
Last changed2026-09-01
Also known asnone

What to do

  1. See which version you have: cargo tree -i azure_core (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p azure_core. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example azure_core = "0.22.0") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

Applications built on the legacy Azure SDK for Rust (azure_core 0.21.0 and earlier) write the value of the outgoing authorization header to their logs whenever debug-level logging is enabled, and in every affected version also at trace level. The leaked values are live credentials , Microsoft Entra ID bearer tokens, Azure Storage SharedKey signatures, and SAS tokens , and anyone with read access to the logs can replay them until they expire (CWE-532).

Versions 0.22.0 and later, which are the rewritten and currently supported SDK, do not contain the affected code.

Affected versions

Every published legacy version except 0.2.0 writes the authorization header value to logs: 0.1.1 (2022-01-25), and 0.2.1 through 0.21.0 (2024-10-15).

Mitigation

  • Upgrade to azure_core 1.0.0 or newer.
  • If you are unable to upgrade, raise the log level above debug for the impacted crates or submit a feature request for missing crates built on azure_core 1.0.0 or newer.
  • Treat logs produced by an affected build as credential-bearing: rotate any long-lived secret that authenticated a request while debug logging was on.

Coordination

The finding was reported to the Microsoft Security Response Center (VULN-211331), which determined that it does not meet the Microsoft Security Servicing Criteria definition of a security vulnerability.

It was then disclosed publicly as Azure/azure-sdk-for-rust#5074 on 2026-08-15, asking the maintainers to confirm the behavior so that an advisory could be filed for the legacy crates. A maintainer replied on 2026-08-26 and closed the issue as not planned: the legacy branch is unsupported, there are no plans to update it, and users should move to crates built on azure_core 1.0.0 or newer.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ