VMTech
Discuss a project →

RabbitMQ fixes OAuth2 token minting flaw in management plugin

RabbitMQ fixes OAuth2 token minting flaw in management plugin

RabbitMQ has released versions 4.4.1 and 4.3.8 to fix a critical OAuth2 vulnerability in its management plugin. The issue, tracked as GHSA-cfvg-5q96-8mhm with a CVE assignment pending, is rated 9.1 out of 10 under CVSS. It could allow an unauthenticated party that can reach the management port to mint privileged access tokens.

The bug affects deployments using the documented OAuth2 login configuration for the management interface, with both the management and OAuth2 plugins enabled and a client secret configured. RabbitMQ said fixed releases became available on November 16, 11 days before the public advisory. No attacks exploiting the flaw have been reported.

Unauthenticated token requests could use the broker's secret

The management plugin contains a proxy that forwards token requests from its login flow to an identity provider. In affected releases, the proxy could respond to callers that had not authenticated, insert RabbitMQ's configured client secret when a request did not include one, and pass the requested scope through unchanged.

That behaviour could make the broker act as its own OAuth2 client for an anonymous requester. The resulting token's privileges depend on the identity provider and its scope policy. Full administrative access requires the provider to grant the broker client administrator scopes.

The researcher credited as shanz0ng demonstrated the issue using the official RabbitMQ 4.4.0 management Docker image. The demonstration minted a token without credentials, verified that it carried administrator rights, created a persistent administrator account, and used the same token to log in through AMQP.

Impact extends beyond the web management interface

A token accepted over AMQP can provide access to queues and messages across all virtual hosts, rather than being limited to the management interface. RabbitMQ's advisory therefore makes the exposure relevant to both the administrative web endpoint and message-broker operations.

The corrective change, merged on October 22, limits the proxy to the authorization_code and refresh_token grant types used by the management login. Updating prevents the vulnerable proxy behaviour, but it does not remove administrator accounts that may already have been created through abuse of the flaw. The advisory does not describe a method for determining whether tokens were minted against a broker before patching.

Upgrade and apply interim controls where necessary

RabbitMQ published seven server advisories on the same day. The other issues include a high-severity cross-site request forgery vulnerability in the management API, two medium-severity issues and three low-severity issues. Upgrading to the November 16 releases addresses all seven advisories.

There is no community fix for the 4.2 branch. Version 4.2.13 is available only through Broadcom commercial RabbitMQ support, while community support for 4.2 ended on July 31. Operators unable to upgrade can remove the management.oauth_client_secret setting or put authentication in front of the management port. RabbitMQ notes that removing the secret can disrupt login or token-refresh flows for identity providers that require it.

For businesses, the immediate priority is to upgrade affected 4.3 and 4.4 installations, restrict access to the management port, and check administrative accounts because patching alone will not reverse any persistence established before the update.

#rabbitmq#oauthsecurity#identitysecurity#vulnerability
Open analytics
On the site 0 views
min read 4 30.11.2026
Instagram

RabbitMQ fixes OAuth2 token minting flaw in management plugin

Open the post on Instagram ↗