A serious security bug in the RabbitMQ message broker enables unauthorized users—if they can access the management port—to create privileged OAuth2 tokens without any credentials. The vulnerability was disclosed in mid-November, and patched versions 4.4.1 and 4.3.8 became available on November 16. The issue is being tracked as GHSA-cfvg-5q96-8mhm and assigned a CVSS severity of 9.1. No known exploits in live environments have been reported so far.
How the vulnerability works
The flaw affects RabbitMQ server setups using both the management plugin and OAuth2 login, with a configured client secret. In such configurations, the management interface includes a proxy that relays login flows to the identity provider. In vulnerable versions, this proxy incorrectly allows anonymous requests, supplies the broker’s client secret when one isn’t provided, and doesn’t validate requested scopes. In short: someone with only access to the management port can impersonate the broker as its own OAuth2 client.
A security researcher named “shanz0ng” demonstrated how, using the official RabbitMQ 4.4.0 Docker image, it’s possible to generate a token without any credentials. That token held full admin privileges, which allowed the creation of a persistent administrator account and AMQP-based login. Because AMQP allows access across all virtual hosts, this bypass reaches far beyond just the management UI.
Patches, limitations, & what to do now
The bug was patched in a pull request merged on October 22. The fix strengthens the proxy logic, limiting it to only expected grant types such as authorization_code and refresh_token, which are used in the management login path. Users are urged to update to at least RabbitMQ 4.4.1 or 4.3.8 to close the loophole.
Systems running version 4.2 are not fully supported: the community no longer maintains branch 4.2, and the latest 4.2.13 release is only available through Broadcom’s commercial support. Until an upgrade is possible, operators have two interim mitigation paths: either remove the management.oauth_client_secret setting or block public/untrusted access to the management port via additional authentication or network controls. Note, however, that some identity providers require a client secret, so removing it may disrupt login or token refresh flows.
Importantly, fixing the bug does not remove any administrator accounts already created through it—operators have no guidance from the advisory on detecting whether unauthorized tokens were previously minted against their deployment.
This advisory was one of seven issued the same day; alongside this critical flaw, updates released on November 16 include fixes for a high-severity cross-site request forgery issue and several medium to low severity vulnerabilities. Upgrading to the patched version addresses them all.
What this means, and what to watch
This vulnerability underscores how dangerous misconfigurations in OAuth2 setups can be—especially when proxies or plugins behave permissively under incomplete request data. For users relying on RabbitMQ’s OAuth2 for authentication, the key takeaway is urgency. Ensure your deployments aren’t exposed to the internet or third networks without protection, and review your logs and access controls for signs of suspicious admin creation. Going forward, vendors and open source projects need stricter validation in token minting paths by default to avoid similar privilege escalation flaws.