Skip to content
Hacker Posts
Vulnerability

RabbitMQ OAuth2 flaw mints admin tokens with no credentials (9.1)

RabbitMQ's management plugin exposes an OAuth2 token proxy without auth, letting anyone mint signed admin tokens. Fixed in 4.4.1, 4.3.8, 4.2.13. GHSA-cfvg-5q96-8mhm.

Hacker Posts DeskPublished 3 min read

RabbitMQ's management plugin exposes an OAuth2 token-endpoint proxy without any caller authentication, letting an anonymous attacker who can reach the management port mint a signed access token with attacker-chosen scopes. The project rates it CVSS v4 9.1 (critical), tracked as GHSA-cfvg-5q96-8mhm (CWE-306, no CVE assigned yet). If you run the broker with OAuth2 management login, patch today.

The primary source is the project's own GitHub Security Advisory; it is corroborated by reporting at The Hacker News.

What the bug does

The management plugin proxies an OAuth2 token endpoint at /js/oidc-oauth/token-endpoint/<resource-server-id>. The advisory states that path is reachable "without any caller authentication." The broker, acting as a confidential OAuth2 client, will request a token on the caller's behalf with whatever scopes the caller asks for. If the configured identity provider grants administrator scopes to that client, the attacker gets a token that performs privileged actions on the management API — and the same token is accepted on the AMQP 0-9-1 listener as a SASL PLAIN password, reaching queues and messages across every virtual host. The researcher credited as shanz0ng demonstrated it on the official 4.4.0 Docker image and created a persistent admin account.

Affected versions

Per the advisory, the flaw affects deployments in these ranges configured with the documented OAuth2 management integration, including management.oauth_client_secret set:

  • >= 4.4.0, < 4.4.1
  • >= 4.3.3, < 4.3.8
  • >= 4.2.9, < 4.2.13

Exploitation requires network access to the management port and an OAuth2 provider that grants admin scopes to the broker's client. No credentials are needed.

Exploitation status

No exploitation in the wild has been reported. The fixes shipped November 16, 2026; the advisory went public afterward. There is no community fix for the 4.2 branch — community support ended July 31, so the 4.2.13 release is available only through Broadcom's commercial channel.

Action checklist

  1. Upgrade to 4.4.1, 4.3.8, or 4.2.13, matching your branch, from the release notes.
  2. If you can't patch immediately, apply the advisory's interim mitigation: remove management.oauth_client_secret, or place authentication in front of the management port.
  3. Never expose the management port to untrusted networks. It should not be internet-facing; confirm your firewall and security-group rules.
  4. Audit for abuse: review management-API audit logs and user lists for admin accounts you didn't create, and rotate OAuth2 client secrets after patching.

Context

This is a textbook missing-authentication failure (CWE-306) on an endpoint that was never meant to be anonymous — the broker was built to proxy token requests for authenticated UI sessions, and the proxy simply forgot to check who was calling. Message brokers sit at the center of a lot of production data flow, so a single reachable management port turns into full data-plane access across every vhost. Treat the management interface the way you'd treat a database admin console: not something that belongs on any network an attacker can touch.