Vulnerabilities

Critical RabbitMQ OAuth2 flaw can let anyone mint admin tokens

RabbitMQ’s OAuth2 token proxy lets unauthenticated callers mint admin tokens. Patch to 4.4.1 or 4.3.8; 4.2 users face a paid-only fix.

Server illustration with the headline RabbitMQ flaw hands out admin tokens

On brokers set up for OAuth2 login, a critical bug in RabbitMQ’s management plugin can hand privileged tokens to any unauthenticated caller with network access to the management port. Fixes have existed since 16 November, but users of the 4.2 line can only get a patch commercially and every affected broker needs checking for accounts an attacker may already have created.

What happened

RabbitMQ maintainers published security advisory GHSA-cfvg-5q96-8mhm on 27 November 2026, and wider coverage followed on 30 November. The advisory, titled “Unauthenticated OAuth2 token-endpoint proxy allows anonymous privileged token minting”, is rated Critical with a CVSS v4 score of 9.1. The researcher who found it, credited as shanz0ng, suggested 9.8 under CVSS 3.1. No CVE had been assigned at the time of writing, so CVE-driven scanners may not flag it.

The vulnerable versions are 4.4.0, 4.3.3 to 4.3.7 and 4.2.9 to 4.2.12. The patched releases are 4.4.1, 4.3.8 and 4.2.13. The community releases for the 4.3 and 4.4 lines shipped on 16 November, eleven days before the advisory went public, so quiet upgraders are already covered. The 4.2 branch is the awkward one: community support for it ended on 31 July, and The Hacker News reports that 4.2.13 is available only through Broadcom’s paid RabbitMQ support.

No exploitation in the wild has been reported. The full proof of concept has not been published.

The technical picture

RabbitMQ’s management interface can use OAuth2 single sign-on. To make that login flow work smoothly in browsers, the plugin includes a small proxy that passes token requests from the management UI through to the organisation’s identity provider. According to The Hacker News, the proxy was introduced in 4.3.3 during July to solve a Safari sign-in problem.

The problem is that the proxy never checked who was calling it. The advisory states that the proxy module lacks the authorisation callback that other management resources implement. Worse, when a request arrives without a client secret, the broker helpfully adds the secret it holds in its own configuration before forwarding the request. In effect, the broker becomes a confidential OAuth2 client acting on behalf of any stranger who can talk to it, and it passes on whatever scope the caller asks for.

The identity provider decides how powerful the resulting token is: if the provider is willing to grant the broker’s client administrator scopes, an anonymous caller ends up with administrator rights. In the reporter’s testing against the official 4.4.0 management Docker image, the minted token was used to create a persistent administrator account through the management API. The same token was also accepted on the AMQP 0-9-1 listener, which opens queues and messages across every virtual host. According to Threadlinqs, that means reading, forging or purging messages.

Exposure requires the documented OAuth2 setup, meaning both relevant plugins switched on and a client secret stored in the broker configuration. The advisory is clear that no operator misconfiguration is needed beyond following the documentation. The fix, merged on 22 October, restricts the proxy to the two grant types the management login genuinely uses, authorization_code and refresh_token.

This is not the first problem on this code path. Two OAuth flaws disclosed in July included one where unauthenticated callers could read the same client secret and trade it for an administrator token. The advisory was also one of seven RabbitMQ server advisories released on the same day, among them a high-severity CSRF bug affecting the management API. Upgrading to the 16 November releases addresses all seven.

Timeline of the RabbitMQ OAuth2 token proxy flaw from its introduction in July 2026 to the advisory on 27 November

Why it matters for UK organisations

RabbitMQ is one of the most widely deployed message brokers, and in many UK organisations it sits quietly behind payment flows, order processing, logistics platforms and internal microservices. Development teams often deploy it themselves, so it can sit outside normal server patching. A broker is a high-value target: tampered messages can quietly corrupt business processes, and read ones can expose personal data covered by UK GDPR.

The OAuth2 detail also deserves attention. Many organisations have moved RabbitMQ management logins onto single sign-on through Entra ID, Okta or Keycloak precisely because it is the more secure pattern. Here, following that good practice is what creates the exposure. Anyone who assumes SSO has closed off the management interface should revisit that assumption.

For organisations working to Cyber Essentials, a critical-rated flaw with a vendor fix falls within the requirement to apply high and critical security updates within 14 days of release. With the community fix out since 16 November, that clock is already well advanced. Teams still on 4.2 should also note that running software that no longer receives free security updates is difficult to square with the scheme’s requirement that software be supported.

Expert view

In my experience, management interfaces for middleware are among the most reliably exposed services on internal networks, and too often on the internet. When we test, RabbitMQ’s management port turns up far more often than it should on networks where it has no business being reachable, because it was opened during a deployment and never closed. A flaw that needs nothing more than network reach to that port is exactly the sort of finding that turns an ordinary foothold into control of an organisation’s message plumbing.

The design lesson is a familiar one. A helper endpoint written to fix a browser quirk ended up holding a secret and lending it to anyone who asked. Any proxy that injects credentials for callers is privileged code and deserves review as such.

I would also stress that patching is only half the job. An administrator account created before the update survives it, and the advisory offers no way to tell whether tokens have already been minted against a broker. Prior abuse looks unlikely, but checking is cheap.

What to do now

  1. Inventory your brokers. Find every RabbitMQ instance, including containers and those run by suppliers, and record its version and whether management OAuth2 is enabled. Search for the GHSA identifier, as CVE-based tooling may miss it.
  2. Upgrade. Move 4.3 and 4.4 deployments to 4.3.8 or 4.4.1 (Cyber Essentials: security update management).
  3. Decide on 4.2. Either obtain 4.2.13 through Broadcom support or plan migration to a supported branch, applying the workarounds in the meantime.
  4. Apply interim workarounds. Require authentication at a reverse proxy before traffic reaches the management port, or remove the management.oauth_client_secret setting, testing first because some identity providers need it for login or token refresh.
  5. Restrict network access. Limit the management port to administrative networks only (Cyber Essentials: firewalls and secure configuration).
  6. Hunt for prior abuse. Review broker users for unfamiliar administrator accounts, look in identity provider logs for tokens issued to the RabbitMQ client without a matching interactive sign-in, and enable management HTTP logging, which RabbitMQ does not write by default (Cyber Essentials: user access control).
  7. Tighten identity provider scopes. Grant the broker’s OAuth client only the scopes it genuinely needs.

Bottom line

This is a serious flaw with a straightforward fix for most users and no evidence yet of attacks. The risk lies in brokers nobody remembers owning, in teams stranded on 4.2, and in assuming an upgrade cleans up after itself. Patch, fence off the management port and check your administrator list this week.

Sources