Documented incidentPublished 2022-04-29Microsoft AzureEngineering postmortem

Privilege escalation and a certificate-validation flaw allow cross-account database access (Azure PostgreSQL "ExtraReplica", 2022)

Researchers exploited a bug in Azure's modified PostgreSQL engine to gain superuser privileges and run operating-system commands on their own database instance.

What happened

  • A flaw in certificate validation let them forge a client certificate matching another customer's instance and access other customers' databases across accounts.Wiz Research discovers "ExtraReplica": a cross-account database vulnerability in Azure PostgreSQL

The failure pattern

Watch the pattern: Cross-tenant access through a caller-controlled identifier

Safeguards that address it

CollectSEA's engineering analysis of what would have prevented or contained this failure.

  • Validate tenant identity with strict, anchored certificate checksMatch the full identity of a client certificate rather than a loosely matched pattern, and fuzz identity parsing.
  • Isolate tenant containers from host networkingGive each tenant workload its own network namespace and do not grant superuser to customer-controlled roles.

Related standards

CollectSEA's mapping through this incident's failure pattern; not an official determination by the standards bodies.

Building something similar?

Describe your design and see every precedent that applies, with safeguards you can hand to your coding agent.

Analyze your design
Security advisory2026-12-01

PerfreeBlog issue could allow unauthorized access

A flaw has been found in PerfreeBlog up to 4.0.11. This affects an unknown part of the file CodegenController.java of the component Codegen Module. This manipulation causes missing authorization.

Cross-tenant access through a caller-controlled identifiernvd.nist.gov