The RabbitMQ maintainers disclosed a critical vulnerability late last week — tracked as GHSA-cfvg-5q96-8mhm — that allows anyone who can reach the RabbitMQ management port to mint privileged access tokens without presenting any credentials. The only precondition is that the deployment uses the management plugin's OAuth2 login flow. Fixed releases 4.4.1 and 4.3.8 have been available since November 16, 2026.
Let me be blunt: this is the worst class of vulnerability for a message broker. RabbitMQ sits at the center of application architectures — it carries payment events, PII-bearing messages, service-to-service job payloads, and in many environments it is reachable from internal developer networks, CI/CD runners, and container overlay networks that are far broader than administrators assume. An attacker who can mint admin tokens against the management API can read queues, create and delete vhosts, dump user accounts, purge messages, inject poisoned payloads into consumer pipelines, and pivot into every application that trusts the broker. If your management port (default 15672) is exposed to anything beyond a tightly controlled management network, treat this as a patch-now event.
Technical Analysis
Affected Products and Versions
- Product: RabbitMQ server with the
rabbitmq_managementplugin enabled - Precondition: Management UI configured to use OAuth2 login (i.e.,
management.oauth_enabled = trueand a configured identity provider such as Keycloak, Azure AD/Entra ID, Okta, or similar) - Affected versions: RabbitMQ release lines 4.3.x and 4.4.x prior to the fixed builds
- Fixed versions: 4.4.1 (4.4 release line) and 4.3.8 (4.3 release line), published November 16, 2026
- Exposure surface: The management HTTP(S) listener, default TCP 15672 (HTTP) or the configured TLS port
Deployments that use the default internal user database (basic auth) for the management plugin are not in the affected configuration, but note that OAuth2 login is increasingly common in enterprise deployments precisely because organizations integrate the management UI with centralized SSO.
Identifier and Scoring
- GitHub Security Advisory: GHSA-cfvg-5q96-8mhm
- Severity: Critical, per the maintainers' disclosure
- At the time of writing, the advisory is the authoritative reference; monitor the GitHub Advisory Database and the RabbitMQ release notes for a CVE assignment and final CVSS vector.
How the Vulnerability Works (Defender's View)
In an OAuth2-enabled management deployment, the login flow is designed to work like this: a user authenticates to the identity provider (IdP), receives a token, and the management plugin validates that token against the IdP's signing keys and claim expectations before establishing a privileged session.
The flaw breaks the trust assumptions of that flow. An unauthenticated client that can reach the management port can craft requests against the OAuth2 login/token-handling path and cause the server to mint a privileged access token without ever presenting valid credentials to the IdP. Practically, this means:
- Attack chain: attacker reaches
http(s)://<broker>:15672→ interacts with the OAuth2 login/token endpoints → obtains a token carrying management privileges → calls the management REST API (/api/overview,/api/users,/api/queues,/api/exchanges, etc.) with full admin context. - No IdP interaction required from the attacker's side — the attacker does not need a valid IdP account, client secret, or authorization code. Network reachability to the management port is the only prerequisite.
- Post-exploitation is quiet and API-native: everything the attacker does next looks like legitimate management API traffic. There is no exploit payload on disk, no anomalous process, no dropped binary. This is why network-layer and management-API-layer detection matters so much here.
Impact if Exploited
With management admin privileges, an attacker can:
- Read and drain queues — exposing any data transiting the broker (payment events, health data, session tokens, internal job payloads).
- Create administrative users and vhosts — establishing durable, credential-based persistence inside the broker that survives token expiry.
- Delete queues, exchanges, and bindings — immediate availability destruction for dependent applications.
- Inject or modify messages — poisoning downstream consumers; in pipeline architectures (ETL, order processing, notification services) this can cascade into downstream application compromise.
- Harvest configuration and topology — topology maps are reconnaissance gold for lateral movement into connected services.
Exploitation Status
- The maintainers' advisory was published late last week with fixes already shipped (4.4.1 / 4.3.8, November 16, 2026).
- As of this writing there are no confirmed reports of in-the-wild exploitation, and the advisory has not yet appeared in CISA's Known Exploited Vulnerabilities (KEV) catalog.
- However, the exploitation requirements are trivial — network reachability plus an HTTP client. The gap between public disclosure and public PoC for a flaw like this is typically measured in days. Do not wait for exploitation confirmation; the exposure check below takes minutes and patching is straightforward for most deployments.
Detection & Response
Because exploitation lives entirely at the HTTP/management-API layer, your highest-fidelity telemetry sources are:
- Access logs for the management listener (reverse proxy, load balancer, or RabbitMQ's own access logging where enabled)
- RabbitMQ server logs (
/var/log/rabbitmq/or container stdout) — look for OAuth2 login events, token issuance, and new user/permission changes - Network flow and firewall logs — unexpected sources talking to TCP 15672
- The RabbitMQ management API itself — audit the user and permission state for artifacts an attacker would create
SIGMA Rules
The following rules target the behaviors most likely to betray exploitation: (1) new RabbitMQ internal user creation or permission grants outside of change windows (persistence), and (2) OAuth2 token/login events in server logs originating from sources that never performed an IdP login redirect. Both assume you are shipping RabbitMQ application/server logs into your SIEM.
---
title: RabbitMQ Management User or Permission Change (Possible Token-Forging Persistence)
id: a1f3c8d2-4b6e-4f9a-bc71-2e5d9a3f8c10
status: experimental
description: Detects creation of RabbitMQ users or permission grants via the management API, which may indicate attacker persistence following exploitation of the RabbitMQ management OAuth2 flaw (GHSA-cfvg-5q96-8mhm). Correlate with change windows and known administrator activity.
references:
- https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-cfvg-5q96-8mhm
author: Security Arsenal
date: 2026/11/20
tags:
- attack.persistence
- attack.t1136
logsource:
category: application
product: rabbitmq
detection:
selection_keywords:
Message|contains:
- 'user created'
- 'creating user'
- 'set permissions'
- 'Successfully set permissions'
- 'updated user'
- 'granted access to vhost'
filter_authorized_ips:
SourceIp|cidr:
- '10.0.0.0/8'
condition: selection_keywords and not filter_authorized_ips
falsepositives:
- Legitimate administrator provisioning via the management UI or rabbitmqctl
- IaC/automation pipelines that manage RabbitMQ users
level: high
---
title: RabbitMQ Management OAuth2 Token Activity From Unrecognized Client
tid: c4e7b9a1-8d3f-4a2e-9f56-7c1b2d4e8f90
status: experimental
description: Detects OAuth2 login/token events logged by the RabbitMQ management plugin from client addresses that are not part of the expected management-network allowlist. In deployments affected by GHSA-cfvg-5q96-8mhm, forged token minting produces token/login events without any corresponding IdP authentication session for that client.
references:
- https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-cfvg-5q96-8mhm
author: Security Arsenal
date: 2026/11/20
tags:
- attack.initial_access
- attack.t1078
- attack.t1552
logsource:
category: webserver
product: rabbitmq
detection:
selection:
UriPath|contains:
- '/api/'
- 'oauth'
- 'token'
StatusCode:
- 200
- 201
filter_mgmt_nets:
ClientIp|cidr:
- '192.168.250.0/24'
- '10.20.30.0/24'
condition: selection and not filter_mgmt_nets
falsepositives:
- Administrators working from unmanaged subnets (VPN, home networks) — tighten the allowlist rather than broadening the exclusion
level: critical
A note on tuning: the CIDR placeholders above are illustrative. Replace them with your actual management networks. The second rule is deliberately scoped to successful responses on management/OAuth paths from outside the allowlist — that combination is what keeps it high-fidelity instead of a log-volume firehose.
KQL (Microsoft Sentinel / Defender)
This hunt assumes you ingest RabbitMQ server/access logs via Syslog or a CEF-capable forwarder into Sentinel, and that network flow (firewall/NSG/VPC flow forwarded via CEF or Azure Activity) is available. The query pivots on successful management API calls from clients with no matching IdP sign-in for the same account — the tell-tale signature of a forged token.
// Hunt: RabbitMQ management API success events whose client never produced
// a corresponding IdP sign-in (possible forged token - GHSA-cfvg-5q96-8mhm)
let window = 7d;
let mgmtEvents =
Syslog
| where TimeGenerated > ago(window)
| where Facility == "local0" or ProcessName == "rabbitmq-server"
| where SyslogMessage has_any ("/api/", "oauth", "token", "login")
| where SyslogMessage has_any ("200", "201", "authenticated", "token issued")
| extend MgmtEvent = SyslogMessage, SrcIP = HostIP
| project TimeGenerated, Computer, SrcIP, MgmtEvent;
let idpSignins =
SigninLogs
| where TimeGenerated > ago(window)
| where ResultType == "0"
| summarize IdPSignins = count() by IPAddress, UserPrincipalName;
let flowToMgmt =
CommonSecurityLog
| where TimeGenerated > ago(window)
| where DestinationPort == 15672
| summarize FirstSeen = min(TimeGenerated), FlowCount = count() by SourceIP, DestinationIP;
mgmtEvents
| join kind=leftanti (idpSignins) on $left.SrcIP == $right.IPAddress
| join kind=leftouter (flowToMgmt) on $left.SrcIP == $right.SourceIP
| project TimeGenerated, Computer, SrcIP, MgmtEvent, FirstSeen, FlowCount
| order by TimeGenerated desc
If you do not ingest SigninLogs (e.g., your IdP is Keycloak rather than Entra ID), drop the IdP join and keep the flow join — management API success events from a source IP with first-seen flow to 15672 inside your hunt window is still a strong lead for the SOC.
Velociraptor VQL
For host-level verification on RabbitMQ servers, this artifact lists listening sockets on management/AMQP ports alongside the running Erlang/RabbitMQ processes — useful for confirming the management plugin is exposed, identifying the bound interface, and spotting unexpected processes on broker hosts during IR.
-- Artifact: SecurityArsenal.RabbitMQExposureHunt
-- Purpose: Enumerate RabbitMQ/Erlang processes and listeners on broker hosts
-- to confirm management plugin exposure (TCP 15672) and identify running version.
SELECT Pid, Name, Exe, CommandLine, Username
FROM pslist()
WHERE Name =~ 'beam|erl|rabbitmq'
OR CommandLine =~ 'rabbitmq'
SELECT Pid, Name, Fd, Address, Status
FROM netstat()
WHERE Address =~ ':15672|:15671|:5672|:25672'
Run this across your broker fleet with Velociraptor's hunt capability. Any host where the 15672 listener is bound to 0.0.0.0 or a non-management interface is an exposure finding, even after patching — fix the network posture too.
Verification & Remediation Script
The following Bash script inventories running RabbitMQ versions, checks whether the management plugin and OAuth2 login are enabled, and reports listener exposure. Run it on each broker node (or bake it into your config-management scan) before and after patching.
#!/bin/bash
# RabbitMQ GHSA-cfvg-5q96-8mhm exposure & patch verification
# Run as root or a user with rabbitmqctl access on each broker node.
set -u
echo "=== RabbitMQ version check ==="
if command -v rabbitmqctl >/dev/null 2>&1; then
VER=$(rabbitmqctl status 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
echo "Detected version: ${VER:-unknown}"
# Flag vulnerable 4.3.x (<4.3.8) and 4.4.0
if [[ "$VER" =~ ^4\.3\. ]] ; then
MINOR=$(echo "$VER" | cut -d. -f3)
[ "$MINOR" -lt 8 ] && echo "[VULNERABLE] 4.3.x below 4.3.8 — upgrade immediately"
elif [[ "$VER" == "4.4.0" ]]; then
echo "[VULNERABLE] 4.4.0 — upgrade to 4.4.1 immediately"
else
echo "[OK] Version is fixed or not on an affected release line"
fi
else
echo "rabbitmqctl not found — is RabbitMQ installed on this host?"
fi
echo "=== Management plugin & OAuth2 config check ==="
rabbitmq-plugins list -e 2>/dev/null | grep -i management \
&& echo "[EXPOSED] management plugin enabled" \
|| echo "[OK] management plugin not enabled"
grep -Ei 'management\.oauth_enabled\s*=\s*true' \
/etc/rabbitmq/rabbitmq.conf /etc/rabbitmq/conf.d/*.conf 2>/dev/null \
&& echo "[AFFECTED CONFIG] OAuth2 management login enabled — patch is mandatory" \
|| echo "[OK] OAuth2 management login not detected in config"
echo "=== Listener exposure check (15672 bound interfaces) ==="
ss -ltnp 2>/dev/null | grep -E ':15672|:15671' \
&& echo "Review: management listener should bind only to mgmt networks or localhost" \
|| echo "[OK] No management listener detected"
echo "=== Unauthorized user audit (check for unknown admins) ==="
rabbitmqctl list_users 2>/dev/null
echo "Manually verify every user above is expected and authorized."
Remediation
Primary action — upgrade:
- RabbitMQ 4.4.x → upgrade to 4.4.1
- RabbitMQ 4.3.x → upgrade to 4.3.8
- Fixed releases have been available since November 16, 2026. Follow the official RabbitMQ release notes and the GitHub Security Advisory GHSA-cfvg-5q96-8mhm (
https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-cfvg-5q96-8mhm). For Docker deployments, pull the patched official images and redeploy — do not assume image tags on affected lines are immutable.
If you cannot patch immediately, apply these compensating controls in order of speed-to-impact:
- Disable OAuth2 login for the management plugin. Set
management.oauth_enabled = falseinrabbitmq.confand restart. This removes the affected code path entirely. Fall back to the internal user database for management auth during the patch window. - Disable the management plugin outright on nodes where it is not strictly required:
rabbitmq-plugins disable rabbitmq_management. The AMQP data plane is unaffected. - Firewall the management port. Restrict TCP 15672/15671 to a dedicated management network, jump host, or localhost. Verify from an external host that the port is no longer reachable. If the broker is in Kubernetes or cloud IaaS, review Security Groups/NSGs and any LoadBalancer/Ingress objects that may publish the management UI.
- Verify no public exposure. Scan your external attack surface (and your Shodan/Censys footprint) for
15672and RabbitMQ management banners. Any internet-facing instance is an emergency.
Post-patch IR hygiene (recommended even if you have no evidence of exploitation):
- Audit broker users and permissions:
rabbitmqctl list_usersandrabbitmqctl list_permissions(plus per-vhost listing). Remove any account you cannot attribute to a provisioning process. Attackers who forged admin tokens will commonly create an internal user for durable access. - Rotate credentials: rotate all RabbitMQ internal user passwords and any secrets referenced in broker configuration; assume admin-context tokens issued during the exposure window are compromised.
- Rotate IdP secrets for the management OAuth2 integration (client secrets, signing key trust config) if OAuth2 login was enabled during the exposure window.
- Audit queue/vhost topology for unauthorized vhosts, exchanges, shovel/federation links, or outbound connections that could exfiltrate messages.
- Enable and centralize logging: forward RabbitMQ application and management access logs to your SIEM and deploy the Sigma/KQL detections above before the next disclosure, not after it.
Governance items:
- Add RabbitMQ to your asset inventory's internet-reachability review — message brokers historically escape CMDB scrutiny until an incident.
- Monitor CISA KEV for GHSA-cfvg-5q96-8mhm's CVE assignment; if it lands in KEV, federal agencies will receive a remediation deadline under BOD 22-01, and many enterprises use KEV deadlines as their internal SLA trigger.
- For PCI-DSS and HIPAA scoped environments: brokers handling cardholder or ePHI-adjacent message flows fall within segmentation and vulnerability-management requirements — document the patch and the exposure verification as evidence.
Conclusion
GHSA-cfvg-5q96-8mhm is a textbook low-effort, high-consequence vulnerability: no credentials needed, no payload needed, and the post-exploitation activity blends into legitimate management API traffic. The fix is already published — 4.4.1 and 4.3.8 — so the risk curve from here is driven entirely by how fast you patch and how honestly you assess management-port exposure. Patch, audit users and tokens, firewall 15672, and put detection on the management API path. That is the whole playbook; execute it this week.
Related Resources
Security Arsenal Alert Triage Automation AlertMonitor Platform Book a SOC Assessment platform Intel Hub
Is your security operations ready?
Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.