Skip to content
feed: live
0dayNews
threat intel

RabbitMQ OAuth2 proxy flaw lets anonymous callers mint tokens

A critical RabbitMQ management plugin flaw (GHSA-cfvg-5q96-8mhm, 9.1) lets unauthenticated callers obtain tokens. Fixed in 4.4.1 and 4.3.8; no attacks reported.

RabbitMQ OAuth2 proxy flaw lets anonymous callers mint tokens
Image: AI-generated — conceptual illustration, not incident evidence / 0dayNews AI Cover · Generated on-site infrastructure — no external license
kilobaudDave "Kilobaud" Ferris·Published ·2 min read

RabbitMQ’s maintainers have disclosed a critical flaw in the management plugin’s OAuth2 login support. According to The Hacker News, anyone who can reach the management port can obtain privileged access tokens without credentials on affected deployments. The advisory is tracked as GHSA-cfvg-5q96-8mhm, with a CVE assignment still pending. The project rates it Critical at 9.1 on the CVSS scale, and no attacks have been reported so far.

What to do

  • Upgrade to RabbitMQ 4.4.1 or 4.3.8. Both have been available since November 16, and they also cover the six other server advisories published the same day.
  • If you cannot upgrade yet, the advisory offers two interim options: remove the management.oauth_client_secret setting, or put authentication in front of the management port. Some identity providers need that secret for login or token refresh, so removing it can break those flows.
  • On the 4.2 branch there is no community fix. Version 4.2.13 is available only through Broadcom, and community support for 4.2 ended on July 31.
  • After patching, review administrator accounts. The update narrows what the proxy relays but does not remove an account created through the flaw, and the advisory does not explain how operators can tell whether tokens were already minted.

Who is affected

Only deployments that follow the documented OAuth2 setup for the management interface: both the management and OAuth2 plugins enabled, and a client secret configured. What a minted token can do depends on the identity provider, and full administrator access requires a provider that grants the broker’s client administrator scopes.

What went wrong

The management plugin includes a proxy that forwards token requests from the login flow to the identity provider. In affected versions, that proxy answers callers who never authenticated, adds the broker’s stored client secret to requests that lack one, and passes the requested scope through unchanged. An anonymous caller can therefore have the broker act as its own OAuth2 client.

The researcher credited as shanz0ng reported the flaw and showed, on the official 4.4.0 management Docker image, that a token minted this way carried administrator rights and was accepted over AMQP. A token accepted there reaches queues and messages across all virtual hosts, not just the management interface. The fix, merged on October 22, restricts the proxy to the authorization_code and refresh_token grant types the management login uses.

Analysis

The proxy arrived in release 4.3.3 in July to fix OAuth2 logins failing in Safari, so the affected 4.3 and 4.2 ranges begin with releases from that month. A convenience feature became an unauthenticated path to a secret-bearing request, which is a familiar shape for this kind of bug. This is also not the first OAuth problem in this component. Two earlier flaws disclosed in July included one that let unauthenticated callers read the same client secret and exchange it for an administrator token, which we covered in our July report on the RabbitMQ OAuth secret issue. Two disclosures on the same code path in five months suggest operators should treat the management port as something to keep off untrusted networks regardless of patch level.

Details of the advisory are in the project’s security advisory index, linked from the source report. Related reading: Italy and Switzerland warn of autonomous AI agent attacks.

Found this useful? Share it.