RabbitMQ OAuth2 token-minting flaw grants admin access without credentials (GHSA-cfvg-5q96-8mhm)
Severity: critical · Patch status: patched · Since 2026-11-27
RabbitMQ 4.2.9 through 4.4.0 (fixed in 4.4.1, 4.3.8 and 4.2.13) exposes the management plugin's OAuth2 token-endpoint proxy without caller authentication. When the documented OAuth2 management setup is used with management.oauthclientsecret configured, any unauthenticated network peer that can reach the management port can make the broker add its stored client secret and relay attacker-chosen scopes, so the identity provider signs a token with whatever scopes it grants, potentially administrator scopes. The advisory says the token is accepted by the management API, can create persistent administrator users, and can be presented as the SASL PLAIN password on the AMQP 0-9-1 listener for queue operations on any vhost. The reporter (shanz0ng) demonstrated it on the official 4.4.0 management Docker image. The fix (PR 17937, merged 2026-10-22) restricts relayed grants to authorizationcode and refreshtoken and ships in 4.4.1 and 4.3.8, released 2026-11-16. No CVE id is assigned in the GitHub advisory, and no public exploitation has been reported. Patching does not by itself remove administrator accounts created before the upgrade.
What to do
- Upgrade to RabbitMQ 4.4.1 or 4.3.8 (both released 2026-11-16 on GitHub)
- If unable to upgrade, remove the management.oauth_client_secret setting or place authentication in front of the management port (the advisory's interim mitigations)
- Audit for and remove any administrator accounts created through the flaw; the advisory says persistent admin creation was possible, and upgrading does not remove accounts that already exist
- Review identity provider logs for tokens issued to the broker's OAuth2 client with elevated scopes
- 4.2 users: the GHSA lists 4.2.13 as the fixed release, but no public v4.2.13 tag or release was found on GitHub (the 4.2.x tags end at v4.2.9); confirm availability with the vendor before relying on it
Fixed versions
Sources
All live incidents on Threat Watch