Home Security NewsCritical RabbitMQ OAuth2 Vulnerability Lets Anyone Mint Admin Tokens: How to Check and Patch

Critical RabbitMQ OAuth2 Vulnerability Lets Anyone Mint Admin Tokens: How to Check and Patch

by Lakindu Jayasena
3 views 14 minutes read
RabbitMQ OAuth2 vulnerability GHSA-cfvg-5q96-8mhm patch alert: unauthenticated token proxy lets anyone mint admin tokens, fixed in 4.4.1 and 4.3.8

A critical RabbitMQ OAuth2 vulnerability lets anyone who can reach the management port ask the broker for a signed access token, with whatever scope they like, and get one back. No password, no client secret, no prior foothold. If your identity provider hands the broker’s client administrator scopes (which is how the reference setups in RabbitMQ’s own OAuth2 guide work), that token is an admin key to both the management UI and every virtual host over AMQP.

The flaw is tracked as GHSA-cfvg-5q96-8mhm and scored 9.1 on CVSS v4. It affects RabbitMQ 4.4.0 and some recent 4.3 and 4.2 patch releases, but only when the management UI is wired to an OAuth2 provider as a confidential client. Fixes shipped quietly in 4.4.1 and 4.3.8 on November 16, 2026; the advisory followed on November 27. There’s no CVE yet.

Advisory IDGHSA-cfvg-5q96-8mhm (CVE pending)
Affected productRabbitMQ server, management plugin OAuth2 token-endpoint proxy
Affected versions4.4.0; 4.3.3 to 4.3.7; 4.2.9 to 4.2.12
Fixed versions4.4.1, 4.3.8 (open source); 4.2.13 (Enterprise Support only)
SeverityCritical, CVSS v4 9.1 (CWE-306, missing authentication)
Exploited in the wildNo known exploitation as of November 30, 2026
CISA KEVNot listed as of November 30, 2026
WorkaroundYes: remove management.oauth_client_secret or put authentication in front of the management port
PublishedNovember 27, 2026

TL;DR

  • Check whether you run 4.4.0, 4.3.3–4.3.7 or 4.2.9–4.2.12 with management.oauth_client_secret set.
  • Upgrade to 4.4.1 or 4.3.8. On community 4.2, move to 4.3.8 or 4.4.1; the 4.2 fix is commercial-only.
  • Can’t patch today? Remove the client secret or block the management port from untrusted networks.
  • After patching, audit users for unexpected administrators. Upgrading doesn’t remove them.

What happened

The issue sat in a small piece of glue code. When you enable OAuth2 single sign-on for the management UI and give RabbitMQ a client secret, the broker acts as a confidential OAuth2 client. The browser-based UI can’t hold that secret, so the management plugin exposes a proxy endpoint that forwards token requests to your identity provider and attaches the secret on the way.

That proxy was registered without any authentication check, and it relayed whatever the caller sent, grant type and scope included. The fix, merged on October 22 in pull request #17937, limits the proxy to the two grant types the UI actually uses during login: authorization_code and refresh_token.

DateEvent
July 2026RabbitMQ 4.2.9 (July 20) and 4.3.3 ship with the token proxy; both are the first affected releases in their series
July 31, 2026Community support for the 4.2 series ends
October 22, 2026Fix merged on the main branch and backported to 4.3.x and 4.4.x
November 16, 2026RabbitMQ 4.4.1 and 4.3.8 released with the fix
November 27, 2026GHSA-cfvg-5q96-8mhm published alongside six other server advisories

Note the 11-day gap between the releases and the advisory. Anyone who updates on a schedule, rather than on advisories, may already be fixed. Anyone who waits for a CVE feed to flag it is still waiting: as of today there isn’t one.

How the RabbitMQ OAuth2 vulnerability works

Think of the broker as a receptionist who holds the company’s master badge-printing card. The proxy was supposed to let employees who’d already started a login flow finish it. Instead, it printed a badge for anyone who walked up and asked, and let them write their own job title on it.

In practice, an unauthenticated HTTP POST to the token-endpoint path under /js/oidc-oauth/ with a client_credentials (or password) grant reaches the identity provider looking exactly like a legitimate request from RabbitMQ, secret and all. The provider signs a JWT. Whether that token is dangerous depends on what scopes your provider is willing to grant to the broker’s client:

  • Permissive provider (administrator scopes allowed for the management client): full takeover. The reporter showed creating a persistent administrator account through the HTTP API.
  • Data plane too: RabbitMQ’s OAuth2 backend accepts the same token as an AMQP 0-9-1 password, so the attacker can read, publish, purge and delete messages on any virtual host.
  • Locked-down provider (client can’t get admin or wildcard scopes): the blast radius shrinks to whatever that client is allowed, but it’s still unauthenticated access you didn’t intend.

The CVSS v4 vector marks attack requirements as “present” because you need the OAuth2 management setup for any of this to apply. That’s fair, but don’t read it as “unlikely”: the advisory stresses that the vulnerable configuration is the documented one, not a misconfiguration.

Other RabbitMQ security advisories in the same batch

The same November 27 release cycle fixed six more server issues. None is as serious, but if you’re upgrading anyway, they’re a good reason not to stop at a partial patch:

AdvisorySeverityIssue
GHSA-c22p-g5xq-x5jmHighCSRF in the management API via text/plain bodies
GHSA-hqjp-fc45-wj4fMediumLDAP backend lets a username widen its own permissions
GHSA-4965-vg44-xv63MediumAMQP 1.0 annotations crash consumer sessions
GHSA-6q46-pxw7-rfv2LowAuth cache accepts expired OAuth JWTs for new management operations
GHSA-8c56-38wg-g99qLowDead-letter exchange bypasses topic-level authorization
GHSA-w4p7-ffvp-qv8gLowPredictable direct reply-to key (fixed in 4.3.7 / 4.2.12)

Several of these reach back to 3.13 and 4.1, where fixes (3.13.22, 4.1.18) are available only to commercial customers.

Am I affected by the RabbitMQ vulnerability?

You need all of the following for this specific flaw. Work through the list, then use the commands below to confirm.

Tick everything that applies to you

Ticked the first four? You're vulnerable; patch now. The last two decide how bad it gets. Ticks reset when you reload the page.

Check the server version (on the node, in a container, or in a Kubernetes pod)

# Bare metal / VM
sudo rabbitmq-diagnostics server_version

# Docker
docker exec <container> rabbitmq-diagnostics server_version

# Kubernetes (Cluster Operator)
kubectl exec -n <namespace> <cluster-name>-server-0 -c rabbitmq -- rabbitmq-diagnostics server_version

Check whether the vulnerable OAuth2 setup is configured

# Enabled plugins
sudo rabbitmq-plugins list -e | grep -E 'rabbitmq_management|rabbitmq_auth_backend_oauth2'

# OAuth2 management settings (adjust the path if you use a different config file)
sudo grep -E '^management\.oauth_(enabled|client_secret)' /etc/rabbitmq/rabbitmq.conf

# Kubernetes: the config lives in the RabbitmqCluster spec
kubectl get rabbitmqcluster <cluster-name> -n <namespace> -o yaml | grep -E 'oauth_(enabled|client_secret)' 

Check who can reach the management port

sudo ss -tlnp | grep -E ':1567[12]' 

If the listener is bound to 0.0.0.0 or [::] and no firewall, security group or proxy restricts it, assume anyone on that network can reach the proxy.

SeriesAffectedFixedAvailability
4.4.x4.4.04.4.1Open source and commercial
4.3.x4.3.3 – 4.3.74.3.8Open source and commercial
4.2.x4.2.9 – 4.2.124.2.13Enterprise Support only

The 4.2 row is the trap. Community support for 4.2 ended on July 31, and the newest 4.2 image on Docker Hub is 4.2.9, which is affected. If you’re on community 4.2 with OAuth2 SSO, your free fix is a minor-version upgrade, not a patch bump.

Disclaimer: These steps are general guidance based on the vendor’s published advisory and are provided as-is. Every environment is different: test in a staging environment, take a full backup or snapshot first, and follow the vendor’s official documentation. SysOpsTechnix accepts no responsibility for outages, data loss or other damage resulting from applying these steps. See our Terms of Use.

How to fix the RabbitMQ OAuth2 vulnerability (upgrade to 4.4.1 or 4.3.8)

RabbitMQ OAuth2 vulnerability patch flow: check version, back up definitions, rolling upgrade to 4.4.1 or 4.3.8, verify, audit users
Patch flow for GHSA-cfvg-5q96-8mhm

There’s one real fix for the RabbitMQ OAuth2 vulnerability: get onto a release with the patched proxy. Both 4.4.1 and 4.3.8 need Erlang/OTP 27.0 or later, so check that first if your Erlang comes from a separate package. In a cluster, upgrade one node at a time and let queues settle between nodes.

Step 1: Back up definitions and check feature flags

Exporting definitions saves users, vhosts, permissions, policies, queues and bindings (not messages). Take a VM snapshot or volume backup as well if you can. Before any minor-version jump, such as 4.2 to 4.3, make sure all stable feature flags are enabled; RabbitMQ refuses to start a node on the newer version otherwise.

Export definitions and enable feature flags (run on one node)

sudo rabbitmqctl export_definitions /root/rabbitmq-definitions-$(date +%F).json
sudo rabbitmqctl list_feature_flags
sudo rabbitmqctl enable_feature_flag all

Step 2: Upgrade Linux packages (Debian, Ubuntu, RHEL)

A RabbitMQ upgrade from packages is routine. This assumes you install from Team RabbitMQ’s apt or yum repositories, which carry current releases. On a cluster, drain the node first so client connections and queue leaders move elsewhere, upgrade, start it, and wait for it to rejoin before moving to the next node.

Debian / Ubuntu, one node at a time

sudo rabbitmq-upgrade drain
sudo apt-get update
sudo apt-get install --only-upgrade rabbitmq-server
sudo systemctl restart rabbitmq-server
sudo rabbitmq-upgrade revive
sudo rabbitmq-diagnostics server_version

RHEL, Rocky, AlmaLinux, Fedora, one node at a time

sudo rabbitmq-upgrade drain
sudo dnf upgrade rabbitmq-server
sudo systemctl restart rabbitmq-server
sudo rabbitmq-upgrade revive
sudo rabbitmq-diagnostics server_version

If you pinned a version in apt preferences or dnf versionlock, update the pin first, or the upgrade will silently do nothing.

Step 3: Update Docker containers

Official images are tagged by exact version. Floating tags like 4.4-management already point to 4.4.1, but only if you pull again. Pin the exact tag so you know what’s running.

docker-compose.yml (excerpt)

services:
  rabbitmq:
    image: rabbitmq:4.4.1-management   # or rabbitmq:4.3.8-management

Pull and recreate the container

docker compose pull rabbitmq
docker compose up -d rabbitmq
docker compose exec rabbitmq rabbitmq-diagnostics server_version

Make sure your data directory (/var/lib/rabbitmq) is on a volume; otherwise recreating the container wipes the node’s state.

Step 4: Upgrade on Kubernetes (Cluster Operator)

With the RabbitMQ Cluster Operator, the image is set in the RabbitmqCluster resource. Changing it triggers a rolling restart of the StatefulSet, one pod at a time.

Point the cluster at the patched image

kubectl patch rabbitmqcluster <cluster-name> -n <namespace> --type merge \
  -p '{"spec":{"image":"rabbitmq:4.4.1-management"}}'

kubectl rollout status statefulset/<cluster-name>-server -n <namespace>

If you deploy with Helm or GitOps instead, change the image tag in your values or manifests rather than patching live, or the next sync will roll you back. We covered keeping secrets out of manifests in our guide to running HashiCorp Vault on Kubernetes, which is a sensible home for the OAuth2 client secret too.

Step 5: Verify, then rotate the client secret

Confirm every node reports the fixed version and the cluster is healthy. Then rotate the management client’s secret in your identity provider and update management.oauth_client_secret. Tokens already minted through the proxy stay valid until they expire, and rotating doesn’t revoke them, but it does close the door if the secret was ever exposed elsewhere.

Health checks after the rolling upgrade

sudo rabbitmqctl cluster_status
sudo rabbitmq-diagnostics check_running
sudo rabbitmq-diagnostics check_local_alarms
sudo rabbitmq-diagnostics server_version

Temporary mitigations for the RabbitMQ OAuth2 vulnerability

The advisory lists two interim options. Both work; both have trade-offs.

  • Remove management.oauth_client_secret and restart. Without a secret to inject, the proxy can’t act as a confidential client. The catch: some identity providers require the secret for the login or refresh flow, so management SSO may break until you patch.
  • Put authentication in front of the management port, or simply make it unreachable from untrusted networks (firewall, security group, VPN-only, or an authenticating reverse proxy). The management UI has no business being on the internet anyway.

Two extra steps that aren’t in the advisory but follow from how the fix works: in your identity provider, disable the client_credentials and password grants for the RabbitMQ management client, since the UI only needs authorization code and refresh token flows; and stop granting that client administrator or wildcard scopes unless you truly need them. Test SSO login after either change.

Signs of compromise

The advisory doesn’t explain how to tell whether the RabbitMQ OAuth2 vulnerability was used against your broker, so you’ll have to piece it together. Start here:

  1. Identity provider logs are your best source. Look for token requests for the management client ID that used client_credentials or password grants, especially ones originating from the broker’s IP address.
  2. Unexpected users. Run the commands below and compare against what you expect. Any internal user with the administrator tag you don’t recognize is a red flag; upgrading does not remove it.
  3. Permissions, policies and shovels. New permissions, federation upstreams or shovels are a quiet way to copy messages out.
  4. Reverse proxy or load balancer logs for POST requests to the token-endpoint path under /js/oidc-oauth/ that didn’t come from a browser login flow. RabbitMQ doesn’t write HTTP access logs unless management.http_log_dir is set.

Review users, permissions and dynamic shovels

sudo rabbitmqctl list_users
sudo rabbitmqctl list_permissions --vhost /
sudo rabbitmqctl list_vhosts
sudo rabbitmqctl list_parameters --vhost / | grep -Ei 'shovel|federation' 

If you find anything you can’t explain, treat it as an incident rather than a cleanup job: isolate the management port, preserve logs, rotate the OAuth2 client secret and any credentials that passed through queues, then remove rogue accounts. Messages that crossed the broker may have been read, and some may have been forged, so warn the teams that own the consumers. We walked through a similar “auth bypass, then persistence” pattern in our vCenter authentication bypass write-up.

FAQ

Is there a CVE for the RabbitMQ OAuth2 vulnerability?

Not yet. The GitHub advisory lists no CVE and RabbitMQ’s security page says “CVE ID pending.” Track it by the advisory ID, GHSA-cfvg-5q96-8mhm, until one is assigned.

Is the RabbitMQ OAuth2 vulnerability being exploited?

No attacks have been reported as of November 30, 2026, and it isn’t in CISA’s Known Exploited Vulnerabilities catalog. The proof of concept wasn’t published, but the advisory describes the request in enough detail that writing one isn’t hard.

I don’t use OAuth2 for the management UI. Am I safe?

From this flaw, yes: without management.oauth_client_secret there’s no secret for the proxy to inject. You should still upgrade for the CSRF and LDAP fixes released alongside it.

Does upgrading remove an attacker’s admin account?

No. The patch stops new tokens from being minted; it doesn’t touch users, permissions or anything else an attacker created. Audit after you upgrade.

What should I do on RabbitMQ 4.2?

If you have a Broadcom commercial subscription, install 4.2.13. If you don’t, upgrade to 4.3.8 or 4.4.1, enabling all feature flags first. Community 4.2 releases won’t get this fix.

How do I check my RabbitMQ version quickly?

Run rabbitmq-diagnostics server_version on any node. The management UI also shows the version in its top-right corner once you’re logged in.

For a related look at how exposed secrets in management planes go wrong, see our recent post on the Azure API Management vulnerability.

Sources

Related Articles

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.