RabbitMQ patches a CVSS 9.1 flaw that let anonymous users mint admin tokens
RabbitMQ's management OAuth2 token proxy ran without authentication, letting attackers mint admin JWTs; fixed in 4.4.1, 4.3.8 and 4.2.13.

TL;DR
- RabbitMQ's management plugin exposed its OAuth2 token-endpoint proxy without caller authentication, rated critical with a CVSS 4.0 score of 9.1 [1].
- On the documented OAuth2 setup with a client secret, an anonymous request could get a signed JWT with administrator scope from a permissive provider [1].
- Fixed versions are 4.4.1, 4.3.8 and 4.2.13; removing the OAuth client secret or putting auth in front of the management port are interim mitigations [1].
The RabbitMQ team has published a critical advisory for the server’s management plugin: its OAuth2 token-endpoint proxy accepted requests without any caller authentication [1]. The advisory rates it critical with a CVSS 4.0 score of 9.1 and classifies it as CWE-306, missing authentication for a critical function [1].
How the attack works
The proxy at /js/oidc-oauth/token-endpoint/<resource-server-id> forwards the request body to the OAuth2 provider and adds the configured management.oauth_client_secret when the caller does not send one [1]. Other form fields, including scope, are passed through unchanged [1]. In effect, the broker acts as a confidential OAuth2 client for any anonymous network peer [1].
According to the reporter’s proof of concept, a single unauthenticated POST with grant_type=client_credentials returned a signed JWT with administrator rights when the provider granted admin scopes, as in the reference setups of the OAuth2 guide [1]. That token worked on the management API, including creating a persistent administrator account, and also on the AMQP 0-9-1 listener when sent as the SASL PLAIN password, giving full queue access on every vhost [1].
Who is affected
The precondition is the documented OAuth2/SSO setup for the management UI: the oauth2 backend enabled, a resource server configured and management.oauth_client_secret set [1]. The reporter notes that no operator misconfiguration is needed, because the affected setup is the documented one [1]. Any attacker who can reach the management port over the network can try it [1].
The advisory lists vulnerable ranges 4.4.0, 4.3.3 to before 4.3.8 and 4.2.9 to before 4.2.13 [1]. The fix limits the proxy to the authorization_code and refresh_token grant types [1]. No CVE ID is listed in the advisory yet [1].
What builders can do now
Sources
Written and checked by AI from the sources below
Fact-checked by gpt-6.1-sol on · Editorial policy



