Mastodon Mastodon Mastodon Mastodon

RabbitMQ OAuth2 proxy vulnerability allows obtaining an admin token without authentication

Photo of author

CyberSecureFox Editorial Team

Published:

A critical vulnerability has been discovered in the RabbitMQ message broker that allows an unauthenticated attacker with network access to the management port to obtain a signed token with administrator privileges. The issue affects deployments using the documented OAuth2 integration for the management UI. The vulnerability is tracked as GHSA-cfvg-5q96-8mhm (no CVE has been assigned yet), classified as CWE-306 (Missing Authentication for Critical Function) and rated by the project at 9.1 under CVSS v4. Fixed versions 4.4.1 and 4.3.8 have been available since November 16, 2026 — operators of affected systems should update immediately.

Vulnerability mechanism

According to the official security advisory, the RabbitMQ management plugin exposes an OAuth2 token proxy endpoint at /js/oidc-oauth/token-endpoint/<resource-server-id>. In vulnerable versions, this proxy is accessible without any authentication of the caller. At the same time, it automatically adds the client secret stored in the configuration (management.oauth_client_secret) to the request if the caller has not supplied one, and forwards all other parameters — including the requested scope — to the identity provider unchanged.

As a result, an anonymous caller can force the broker to act as its own confidential OAuth2 client and request a signed JWT token with an arbitrary scope from the identity provider. If the provider is configured permissively — for example, in line with the documented reference OAuth2 configurations that expose administrative scopes — the attacker receives a token with administrator rights.

Impact scope

The vulnerability affects the following RabbitMQ versions:

  • 4.4.0 (before 4.4.1)
  • 4.3.3 – 4.3.7 (before 4.3.8)
  • 4.2.9 – 4.2.12 (before 4.2.13)

Conditions required for exploitation: a deployment with the documented OAuth2/SSO integration for the management UI, an enabled OAuth2 backend, a configured resource server, and the management.oauth_client_secret parameter set. As the advisory emphasizes, this is not an operator misconfiguration issue — the documented configuration scheme itself is affected.

It is particularly important that, according to the vendor advisory, the obtained token is accepted not only by the management UI, but also by the AMQP 0-9-1 protocol — when the JWT is passed in the SASL PLAIN password field. This means that, given sufficient token privileges, the attacker gains access to queues and messages across all virtual hosts on the broker, not just the administrative interface. This statement about cross-plane impact is based on the vendor advisory and has not been independently verified.

The vulnerable proxy component is relatively recent: it was introduced in version 4.3.3 in July to address an issue with OAuth2 authorization in the Safari browser, as confirmed by the 4.3.3 release notes.

Public PoC and exploitation status

The vendor advisory includes a detailed exploitation description prepared by a researcher under the pseudonym shanz0ng. The demonstration is carried out on the official Docker image rabbitmq:4.4.0-management and shows: obtaining a token without credentials, confirming that it carries administrator rights, creating a persistent administrator account, and using the same token for AMQP protocol operations. Thus, a public PoC is available. At the same time, no confirmed cases of exploitation in real-world attacks had been recorded at the time of publication — neither in the CISA KEV catalog nor in other trusted sources.

Priority and remediation recommendations

The update priority for RabbitMQ deployments with OAuth2 integration and an externally accessible management port should be considered high. The vendor PoC demonstrates creation of a persistent administrator account and access to the AMQP data plane, and fixed versions were published even before the advisory was disclosed on November 27.

The fix, merged on October 22 in the corresponding pull request, restricts the proxy to only the authorization_code and refresh_token grant types, which are the ones used by the management UI.

Recommended actions:

  1. Update to versions 4.4.1 or 4.3.8 (for the 4.2 branch — version 4.2.13 is only available through Broadcom commercial support, as community support for 4.2 ended on July 31).
  2. If immediate updating is not possible, apply one of the temporary measures: remove the management.oauth_client_secret parameter from the configuration, or place authentication in front of the management port. Note that removing the secret may break authorization and token refresh flows for some identity providers.
  3. Check for signs of compromise: updating does not remove administrator accounts that might have been created by exploiting the vulnerability. The advisory does not describe a method for determining whether tokens have already been issued through the vulnerable proxy, so operators should independently review the list of accounts and audit logs for unauthorized changes.

In addition to this critical vulnerability, six more RabbitMQ security advisories were published on the same day, including a high-severity CSRF in the management API. The full list is available in the project’s security advisory index. Updating to the November 16 release addresses all seven vulnerabilities.

RabbitMQ operators with OAuth2 integration configured for the management UI need to update to versions 4.4.1 or 4.3.8 and audit existing administrator accounts for unauthorized creation. The presence of a public PoC in the absence of confirmed exploitation means that the window for proactive response is still open but is narrowing every day.


CyberSecureFox Editorial Team

The CyberSecureFox Editorial Team covers cybersecurity news, vulnerabilities, malware campaigns, ransomware activity, AI security, cloud security, and vendor security advisories. Articles are prepared using official advisories, CVE/NVD data, CISA alerts, vendor publications, and public research reports. Content is reviewed before publication and updated when new information becomes available.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.