Skip to main content
CybersecurityVulnerability Management

RabbitMQ Flaw Exposes Admin Access Risk

Server room with prominent terminal in foreground, surrounded by rows of equipment and cables.

"A researcher demonstrated minting a token with no credentials, confirming it carried administrator rights, creating a persistent administrator account, and logging in over AMQP." That demonstration, carried out against the official RabbitMQ 4.4.0 management Docker image, crystallizes the risk from a newly disclosed flaw in the RabbitMQ message broker.

The vulnerability in plain terms

Maintainers disclosed a critical vulnerability that allows anyone who can reach the management port to mint privileged OAuth2 access tokens without providing credentials — but only on deployments that use the management plugin's documented OAuth2 login. The flaw is tracked as GHSA-cfvg-5q96-8mhm, has a CVSS score of 9.1 (Critical), and has a CVE assignment pending. The project says no attacks targeting the issue have been reported so far.

How the management proxy failed

The management plugin contains a proxy that forwards token requests from the login flow to the identity provider. In the affected releases the proxy:

  • answered callers who never authenticated,
  • added the broker's stored client secret to requests that lacked one, and
  • passed the requested scope through unchanged.

Those behaviors let an anonymous caller have the broker act as its own OAuth2 client and request a signed token with whatever scopes the identity provider grants. What a minted token can do depends on the identity provider; full administrator access requires a provider that grants the broker's client administrator scopes.

Practical reach: management port, AMQP, and virtual hosts

The researcher credited as shanz0ng demonstrated the chain in a working test: minting an administrator token without credentials, creating a persistent administrator account, and then using that token to log in over AMQP. A token accepted on AMQP reaches the broker's queues and messages across all virtual hosts, not just the management interface — so a management-port compromise in vulnerable configurations can translate into broker-wide control.

Fixes, timing, and upgrade paths

Maintainers merged a fix on October 22 that restricts the proxy to the authorization_code and refresh_token grant types used by the management login. Fixed releases 4.4.1 and 4.3.8 were shipped and have been available since November 16; the project notes those releases were published 11 days before the advisory went public. Upgrading to the November 16 release addresses this bug and six other server advisories published the same day, including a high-severity cross-site request forgery in the management API, two medium-rated issues, and three low-rated issues.

Operators who cannot upgrade immediately have two interim options from the advisory: remove the management.oauth_client_secret setting, or place authentication in front of the management port. The management plugin documentation warns that some identity providers require the client secret for login or token refresh, so removing it can break those flows. The advisory also cautions that patching narrows what the proxy relays but does not undo earlier abuse: an administrator account created through the flaw is not removed by the update, and the advisory does not explain how operators can determine whether tokens have already been minted against their broker.

Legacy branches and prior history

The vulnerable proxy itself is a recent addition: it arrived in the 4.3.3 release in July to fix OAuth2 logins failing in Safari, and the affected 4.3 and 4.2 ranges begin with releases from that month. There is no community fix for the 4.2 branch; version 4.2.13 is available only through Broadcom, which sells commercial RabbitMQ support, and community support for 4.2 ended on July 31. The advisory also follows two earlier OAuth flaws disclosed in July, one of which let unauthenticated callers read the same client secret and exchange it for an administrator token.

How technologists, operators, and procurement should respond

  • Technologists and security teams: Prioritize patching to 4.4.1 or 4.3.8 if your deployment uses the management OAuth2 login, the management and OAuth2 plugins are enabled, and a client secret is configured. Review identity provider scopes granted to the broker's client — administrator-level scopes elevate risk if the bug is present.
  • Operators and enterprises running legacy 4.2: Note there is no community fix for 4.2; 4.2.13 is available only via Broadcom. If you cannot obtain a fixed release, implement the interim mitigations in the advisory and consider limiting network access to the management port.
  • Procurement and commercial support teams: Factor the timing of community end-of-life and commercial-only fixes into upgrade and support contracts — the 4.2 branch left community support on July 31, and commercial channels may be the sole path to patched releases for that branch.

The flaw underlines a simple but important point: a well-intentioned convenience — an HTTP proxy that forwards OAuth2 token requests for the management UI — can become an unintended avenue to full broker control when its behavior is not tightly constrained. The fix narrows the proxy's remit, but operators must act now to install patched releases, apply interim mitigations where necessary, and investigate whether any privileged tokens or administrator accounts were created before the update.

Original story