A critical vulnerability in the RabbitMQ message broker allows anyone who can reach the management port to mint privileged access tokens without credentials on deployments that use the management plugin's OAuth2 login.
The maintainers disclosed the flaw late last week, and fixed releases 4.4.1 and 4.3.8 have been available since November 16.
The flaw is tracked as GHSA-cfvg-5q96-8mhm, with a CVE assignment pending. The project rates it as Critical (9.1 on the CVSS scale), and no attacks targeting it have been reported so far.
Only deployments that follow the documented OAuth2 setup for the management interface are affected, with 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.
The management plugin includes a proxy that forwards token requests from the login flow to the identity provider, as detailed in the project's security advisory.
In the 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 and request a signed token with whatever scopes the provider grants.
The researcher credited as shanz0ng, who reported the flaw, demonstrated it on the official RabbitMQ 4.4.0 management Docker image: minting a token with no credentials, confirming it carried administrator rights, creating a persistent administrator account, and logging in over AMQP with the same token. A token accepted on AMQP reaches the broker's queues and messages across all virtual hosts, not just the management interface.
The fix, merged on October 22 in a fix pull request, restricts the proxy to the authorization_code and refresh_token grant types the management login uses. The fixed release was shipped on November 16, 11 days before the advisory went public, per the project's release information.
There is no community fix for the 4.2 branch: 4.2.13 is available only through Broadcom, which sells commercial RabbitMQ support, and community support for 4.2 ended on July 31.
Operators who cannot upgrade yet 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 notes that some identity providers require that secret for login or token refresh, so removing it can break those flows.
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. The advisory does not explain how operators can determine whether tokens have already been minted against their broker.
The flaw is one of seven RabbitMQ server advisories published the same day, listed in the project's security advisory index. The others include a high-severity cross-site request forgery in the management API, two rated medium, and three rated low, and upgrading to the November 16 release covers them all.
The vulnerable proxy is a recent addition: it arrived in the 4.3.3 release in July to fix OAuth2 logins failing in Safari, per its release notes, and the affected 4.3 and 4.2 ranges begin with releases from that month. Two earlier OAuth flaws in RabbitMQ, disclosed in July, included one that let unauthenticated callers read the same client secret and exchange it for an administrator token.




