VYPR
patchPublished Nov 30, 2026· 1 source

Critical RabbitMQ Flaw Lets Attackers Mint Admin Tokens via OAuth2

A critical vulnerability in RabbitMQ's management plugin allows unauthenticated users to mint privileged access tokens on OAuth2-configured deployments, potentially granting admin access without credentials.

A critical vulnerability affecting RabbitMQ's management plugin has been disclosed, enabling unauthenticated attackers to mint privileged access tokens. This flaw specifically impacts deployments that utilize OAuth2 for login to the management interface and have both the management and OAuth2 plugins enabled, along with a configured client secret.

The vulnerability, tracked as GHSA-cfvg-5q96-8mhm with a CVE assignment pending, has been rated Critical by the project maintainers, scoring 9.1 on the CVSS scale. While no exploitation attempts have been reported to date, the potential for attackers to gain administrative control without valid credentials poses a significant risk.

The core of the issue lies within the management plugin's proxy, which handles token requests during the OAuth2 login flow. In affected versions, this proxy incorrectly forwards requests from unauthenticated callers, appends the broker's stored client secret to requests that lack one, and passes the requested scope through without validation. This allows an anonymous caller to leverage the broker itself as an OAuth2 client to request signed tokens with any desired scope.

Researchers demonstrated the exploit on a RabbitMQ 4.4.0 Docker image, successfully minting a token with administrator rights without any authentication. This token was then used to create a persistent administrator account and log in via AMQP, granting access to queues and messages across all virtual hosts, not just the management interface.

Patched versions 4.4.1 and 4.3.8 were released on November 16, with the fix merged in October. The update restricts the proxy to only handle the authorization_code and refresh_token grant types, which are used by the management login flow. However, the patch does not revoke tokens that may have already been minted or remove administrator accounts created through the vulnerability.

For organizations unable to upgrade immediately, the advisory suggests two interim mitigations: removing the management.oauth_client_secret setting or placing authentication in front of the management port. It's important to note that removing the client secret may disrupt login or token refresh flows for some identity providers.

The vulnerable proxy functionality was introduced in the 4.3.3 release in July to address issues with OAuth2 logins in Safari. This vulnerability is one of several security advisories published by RabbitMQ on the same day, including a high-severity cross-site request forgery in the management API and several medium and low-severity flaws, all of which are addressed by upgrading to the latest patched versions.

This incident highlights the critical importance of securing the management interface and the complexities introduced by integrating with external authentication providers like OAuth2. Organizations using RabbitMQ with OAuth2 are strongly advised to review their configurations and apply the available patches promptly to mitigate the risk of unauthorized administrative access.

Synthesized by Vypr AI