RabbitMQ
RabbitMQ OAuth2
Patch now if…No-login admin tokens on some OAuth2 setups.
TL;DR
RabbitMQ's management plugin lets anyone who can reach it get access tokens, admin ones if your identity provider allows it, when OAuth2 sign-in uses a client secret. The advisory shows how; no attacks seen. Update to 4.4.1 or 4.3.8.
More details
A web route the management UI uses to swap sign-in codes for tokens, /js/oidc-oauth/token-endpoint/<resource-server-id>, forwards anyone's request to the identity provider, adds RabbitMQ's client secret and passes on the scope the caller asks for; with grant_type=client_credentials the provider can hand back a signed token with no login at all. RabbitMQ rates it critical; the reporter, shanz0ng, used such a token to create a new administrator and, as the password on the AMQP 0-9-1 port, to read, publish and delete messages on every virtual host. The fix (pull request #17937, 22 Oct) lets the route pass on only sign-in codes and refresh tokens; it shipped on 16 Nov and the advisory followed on 27 Nov, with no CVE yet. RabbitMQ published six more advisories that day; the most serious, a high-rated CSRF in the management API (GHSA-c22p-g5xq-x5jm), is fixed in the same releases.
How scary is it?
Are you affected? only if all are true
14.4.0, 4.3.3–4.3.7 or 4.2.9–4.2.12command
Older releases don't have the token route, and 4.4.1 and 4.3.8 fix it. The advisory lists 4.2.13 as fixed, but it isn't public: community support for 4.2 ended on 31 Jul 2026, and the last community 4.2 release is 4.2.9.1,2,3,6
rabbitmq-diagnostics server_version -q2OAuth2 sign-in with a client secret
The management UI signs in through OAuth2 (management.oauth_enabled = true) and a client secret is set: management.oauth_client_secret, or oauth_client_secret for one resource server (management.oauth_resource_servers.<id>.oauth_client_secret). The advisory names only the first; RabbitMQ's code uses either. RabbitMQ's docs say the UI shouldn't normally need a secret, but some providers require one, for example UAA to refresh tokens. Look for these keys in your config files; rabbitmq-diagnostics status lists the ones your node uses.1,12,5,11
3Attackers can reach the UI
The attacker needs to reach the management plugin's web port: 15672 by default, or 15671, the usual port when HTTPS is set up. No login is needed.1,5
4Your provider allows it
The attacker asks your identity provider for a token as RabbitMQ's own client, with client_credentials or password, and picks the scope. What they get is what your provider allows that client; the advisory says the reference setups in RabbitMQ's OAuth2 guide grant administrator scopes. If you can't tell, we'd assume yours does.1
What to do
1Update RabbitMQ
Update to 4.4.1 or 4.3.8 (16 Nov 2026). On 4.2.9 to 4.2.12, move to 4.3 or 4.4: the 4.2.13 the advisory lists as fixed isn't public.1,2,3
Latest safe versions checked 3 Dec
2Can't update yet?
The advisory gives two workarounds: remove management.oauth_client_secret, or put authentication in front of the management port. We'd also remove any per-resource-server oauth_client_secret: the advisory doesn't mention it, but RabbitMQ's code uses it the same way. If your provider needs the secret, removing it can break signing in to the UI, so in that case we'd block the port from untrusted networks instead.1,12,5
3Look for a break-incommand
RabbitMQ doesn't say what to check. We would, because updating doesn't undo what a stolen token already did: in the advisory's test, the token created a new administrator, and a token issued before the update keeps working until it expires. List users and remove any you didn't create, and look in your provider's logs for client_credentials or password token requests for RabbitMQ's client: the advisory says they come from the broker itself. We don't think the secret itself needs rotating for this bug: RabbitMQ's code adds it only to the request it sends your provider, so the attacker never sees it.1,7,12,13
rabbitmqctl list_usersThis page shows you how to check. It can't tell you you're safe.
Sources (13) and changelog
- GitHub: RabbitMQ advisory GHSA-cfvg-5q96-8mhm, affected and fixed versions, how it works, the requests, workarounds 27 Nov
- GitHub: RabbitMQ releases, 4.4.1 and 4.3.8 16 Nov
- RabbitMQ: release information, community and commercial support per line
- GitHub: RabbitMQ pull request #17937, the fix 22 Oct
- RabbitMQ docs: management plugin, port 15672 and OAuth2 client secret
- RabbitMQ docs: rabbitmq-diagnostics server_version
- RabbitMQ docs: rabbitmqctl list_users
- GitHub: RabbitMQ advisory GHSA-c22p-g5xq-x5jm, CSRF in the management API 27 Nov
- GitHub: RabbitMQ security advisories, the 27 Nov batch 27 Nov
- CISA KEV catalog: not listed
- RabbitMQ docs: configuration file location
- GitHub: RabbitMQ 4.4.0 token proxy code, which client secrets it uses
- RabbitMQ docs: OAuth 2.0, tokens are accepted until they expire
- Published.