Skip to content
TrustList
Security advisories

RabbitMQ OAuth2 login flaw let unauthenticated callers mint admin tokens

Editorial

By TrustList Editorial

A critical flaw in RabbitMQ's OAuth2 token proxy let unauthenticated callers mint tokens through the broker's own client secret. 4.4.1 and 4.3.8 fix it; the 4.2.13 fix is not among the public releases.

About RabbitMQ OAuth2 login flaw let unauthenticated callers mint admin tokens

RabbitMQ OAuth2 login flaw let unauthenticated callers mint admin tokens

27 November 2026: RabbitMQ published a critical advisory on 27 November, GHSA-cfvg-5q96-8mhm, for its management plugin. On brokers set up for single sign-on to the management interface, an endpoint that passes token requests on to the identity provider did not check who was asking. Anyone who could reach the management port could ask it for a token, and the broker added its own confidential client secret to the request. With an identity provider that grants administrator scopes to that client, the caller got back a signed administrator token.

The advisory is rated critical, 9.1 under CVSS 4.0, and filed as missing authentication for a critical function (CWE-306). It had no CVE number when we read it.

What an attacker could do

The reporter's tests, set out in the advisory, show the token was accepted in two places:

  • The management API: full administrator rights, including creating a new administrator account that survives the token expiring.
  • The AMQP 0-9-1 listener: the same token, sent as the password, opened a connection that could declare, publish, read, purge and delete queues on every virtual host.

The exposed endpoint is /js/oidc-oauth/token-endpoint/ on the management port, 15672 by default. The advisory names the exposed setup: OAuth2 login enabled for the management interface, with management.oauth_client_secret set, as in RabbitMQ's documented OAuth2 configuration.

Versions and where each fix comes from

Series Affected Fixed in Fix released Community support ends
4.4 4.4.0 4.4.1 16 Nov 2026 31 Jul 2027
4.3 4.3.3 to 4.3.7 4.3.8 16 Nov 2026 31 Jan 2027
4.2 4.2.9 to 4.2.12 4.2.13 not on the public release list ended 31 Jul 2026

Release dates are from RabbitMQ's GitHub releases; support dates are from its release information page. That page lists 4.2.9 as the last 4.2 community release, and 4.2.13 is not among the public GitHub releases, so a 4.2 broker without a commercial support contract from Broadcom has no fix in its own series: the route is an upgrade to 4.3.8 or 4.4.1. The fixes shipped 11 days before the advisory was published, so a broker updated in the second half of November may already be safe; check the running version rather than the date of the last update.

The fix limits the proxy to the two grant types a browser login needs, authorisation code and refresh token, so it no longer relays client-credentials or password requests.

If you cannot upgrade straight away

The advisory gives two stopgaps: remove management.oauth_client_secret from the configuration, or put authentication in front of the management port. Either way, the management port should not be reachable from the internet. Teams on a managed RabbitMQ service should ask their provider which version their brokers run and whether OAuth2 management login is enabled.

Also check the identity provider. The attack works because the provider will issue administrator scopes to the broker's client on request, as in the reference setups in RabbitMQ's OAuth2 guide. Narrowing the scopes that client may receive limits what a minted token can do even on an unpatched broker. Two further points from the original report, about the provider's role in code and refresh-token relays and about checking the token issuer, were triaged separately by the RabbitMQ team and are not part of this fix.

Sources

Categories & features

TrustList Weekly

The week in software and IT, in one email

The news that matters to buyers, new rankings and our own research. Every Thursday, free, and easy to leave.

We will email you to confirm. Unsubscribe with one click in any issue. Privacy policy

You may be interested in