
The RabbitMQ project has disclosed a critical flaw in the management plugin’s OAuth2 login support. According to the GitHub advisory (GHSA-cfvg-5q96-8mhm), a token-endpoint proxy that the plugin exposes does not check who is calling it, and it forwards the request to the identity provider with the broker’s own stored client secret added. An anonymous network peer can therefore have the broker act as its OAuth2 client and obtain a signed token with whatever scope the provider will grant. The advisory says that with a permissive provider, such as the reference setups in RabbitMQ’s OAuth2 guide that grant administrator scopes, the token is accepted by the management API and also by the AMQP 0-9-1 listener.
The reporter, credited as shanz0ng, demonstrated it on the official 4.4.0 management Docker image, according to The Hacker News: minting a token with no credentials, creating a persistent administrator account, and logging in over AMQP with the same token. The project rates it Critical (9.1), and The Hacker News says a CVE is still pending and that no attacks have been reported.
How to check if you’re affected
Affected versions per the advisory are 4.4.0 up to (not including) 4.4.1, 4.3.3 up to (not including) 4.3.8, and 4.2.9 up to (not including) 4.2.13; patched versions are 4.4.1, 4.3.8 and 4.2.13. The Hacker News adds that only deployments following the documented OAuth2 setup for the management interface are affected: both the management and OAuth2 plugins enabled and a client secret configured. It also reports that 4.2.13 is available only through Broadcom’s commercial support, and that community support for 4.2 ended on July 31.
- Check which RabbitMQ version each broker runs and whether
management.oauth_client_secretis set. - If you cannot upgrade yet, The Hacker News lists two interim options from the advisory: remove the
management.oauth_client_secretsetting, or place authentication in front of the management port. Some identity providers require that secret for login or token refresh, so removing it can break those flows. - Updating does not undo earlier abuse. The Hacker News says an administrator account created through the flaw is not removed by the update, and that the advisory does not explain how to tell whether tokens were already minted. Our own suggestion: after patching, review the broker’s user list for administrator accounts you do not recognize.
