The Hacker News
RabbitMQ OAuth2 flaw could grant unauthenticated admin access
A critical vulnerability in RabbitMQ’s management OAuth2 login could allow an unauthenticated attacker to mint privileged tokens on affected deployments. The flaw resides in the management plugin’s OAuth2 proxy, which, in vulnerable setups where the management and OAuth2 plugins are enabled and a client secret is configured, can accept requests from callers who have never authenticated, attach the broker’s stored client secret to requests that lack one, and forward the requested scope unchanged.
An anonymous caller can therefore act as the broker’s OAuth2 client and obtain a signed token with scopes granted by the identity provider, potentially granting administrator access if the provider assigns broker client administrator rights. The issue has been tracked as GHSA-cfvg-5q96-8mhm, with a CVE assignment still pending, and the project rates it Critical at 9.1 on the CVSS scale; no publicly recorded exploits were reported at the time of disclosure.
RabbitMQ’s maintainers released fixes for the affected lines: 4.4.1 and 4.3.8 have been available since 16 November. The advisory notes the vulnerability affects only deployments that follow the documented OAuth2 setup for the management interface.
The researcher credited as shanz0ng demonstrated token minting on the official RabbitMQ 4.4.0 management Docker image, showing administrator rights and persistence via a new administrator account; tokens minted with access via AMQP could reach queues and messages across all virtual hosts. The fix, merged in a pull request on 22 October (PR 17937), restricts the proxy to only the authorization_code and refresh_token grant types used by the management login, with the fixed release shipping 16 November.
Operators on older branches, including 4.2, face limited options; 4.2.13 remains available only through Broadcom’s commercial support, and 4.2 community support ended on 31 July.