A critical vulnerability has been identified in RabbitMQ's message broker, specifically affecting deployments using the management plugin's OAuth2 login. This flaw enables remote attackers to generate privileged access tokens without needing credentials, granted they have access to the management port. The issue, tracked as GHSA-cfvg-5q96-8mhm, has been rated as Critical with a 9.1 score on the CVSS scale, though no active exploitation has been reported yet. Maintainers have addressed the issue in releases 4.4.1 and 4.3.8, which became available on November 16.
This vulnerability affects only those deployments configured with the documented OAuth2 setup for the management interface, where both the management and OAuth2 plugins are enabled and a client secret is configured. The flaw stems from a proxy within the management plugin that forwards token requests to the identity provider without proper authentication checks. As a result, an anonymous user can trick the broker into acting as its own OAuth2 client, obtaining a signed token with elevated scopes.
The flaw was demonstrated by a researcher named shanz0ng using the RabbitMQ 4.4.0 Docker image, showing how a token could be minted without credentials and used to gain administrator access. The fix, applied on October 22, restricts the proxy to specific grant types utilized by the management login. However, this update does not automatically remove administrator accounts created through this flaw, and there's no guidance on detecting previously minted tokens.
For those unable to upgrade immediately, interim solutions include removing the management.oauth_client_secret setting or placing authentication in front of the management port. It is essential to note that removing the client secret could disrupt certain login or token refresh processes, depending on the identity provider. This flaw is one among seven advisories released simultaneously, with the others covering issues ranging from high to low severity.

