RabbitMQ — Critical OAuth2 Flaw in Management Plugin Allows Privilege Escalation and Admin Account Creation
Publication date: November 30, 2026
Category: Vulnerability / Privilege Escalation
Introduction
A critical security vulnerability discovered in the RabbitMQ message broker allows any attacker with network reachability to the management port to mint privileged access tokens without providing legitimate credentials. Disclosed by the project maintainers following a report by security researcher shanz0ng, the flaw directly impacts deployments that utilize the OAuth2 login flow within the management interface. Although no active exploitation campaigns have been reported at the time of disclosure, the severity of the issue has prompted emergency security releases across supported branches.
What is the RabbitMQ OAuth2 Vulnerability? (General Analysis)
The affected component is the integrated OAuth2 proxy subsystem embedded inside RabbitMQ’s management plugin, which delivers a web interface and HTTP API for monitoring and configuring message queues. When configured with OAuth2, the plugin acts as a relay, forwarding authentication requests from the login flow to an external Identity Provider (IdP).
Due to the nature of the flaw, it is categorized provisionally as an Authentication Bypass and Privilege Escalation issue, carrying an estimated CVSS v3.1 score of 9.1 (Critical) and a reasoned CWE classification of CWE-287 (Improper Authentication). The primary risk stems from the fact that an anonymous caller can compel the broker to act as its own OAuth2 client, leveraging the internally stored client secret to generate a signed token carrying the maximum privileges granted by the IdP.
How Does It Work? (Technical Analysis)
An examination of the anomalous behavior highlights a design and validation failure in how internal HTTP proxy requests are handled within the management plugin:
- Initial Flow and Credential Bypass: The management plugin’s proxy processes the OAuth2 login flow. In vulnerable versions, this component responds to callers who have never authenticated against the management interface.
- Automatic Secret Injection: When an incoming request lacks a client secret, the broker automatically appends its own stored client secret—statically maintained within the system configuration—and passes the requested scopes through without prior identity verification.
- Persistence and AMQP Propagation: Through proof-of-concept testing performed on official Docker images, it was demonstrated that an attacker can mint an arbitrary token, confirm its administrator rights, create a persistent administrative account, and subsequently authenticate over the AMQP protocol using the same token. This grants complete control over queues and messages across all virtual hosts on the broker, extending the impact far beyond the web management interface.
Affected Systems / Environments
The issue specifically targets architectures meeting the following operational conditions:
- RabbitMQ deployments utilizing the documented OAuth2 setup for the management interface.
- Environments where both the management and OAuth2 plugins are enabled simultaneously.
- Configurations featuring a predefined client secret.
- Vulnerable versions: The 4.4 release branch (prior to 4.4.1) and the 4.3 release branch (prior to 4.3.8). The 4.2 branch lacks a community patch as community support concluded in July 2026.
Mitigation and Detection
Remediation
System administrators must deploy the official security updates issued by the maintainers:
- Upgrade to RabbitMQ 4.4.1 or RabbitMQ 4.3.8 (or higher) depending on the active branch.
- For deployments on the 4.2 branch or environments where immediate patching is unfeasible, interim workarounds include removing the
management.oauth_client_secretsetting (provided the IdP permits it) or placing a strict authentication layer (such as a reverse proxy with hard authentication) in front of the management port.
Security Warning: Patching restricts what the proxy relays but does not remove earlier abuse; administrative accounts created via the flaw are not automatically purged by the update, requiring manual auditing of user accounts and issued tokens.
Detection
Incident response teams should focus monitoring efforts on the following vectors:
- Review RabbitMQ access and audit logs for anomalous requests directed to the management plugin’s OAuth2 endpoint originating from untrusted IP addresses.
- Audit the broker’s user accounts and roles to identify recently established administrator profiles lacking legitimate provisioning traceability.
- Analyze network traffic toward the management port (default 15672) to spot automation signatures or unusual HTTP POST requests targeting OAuth2 login paths.
Wrapping Up
The vulnerability in RabbitMQ’s OAuth2 proxy handling demonstrates how flawed validation states within auxiliary auxiliary components can compromise an entire asynchronous messaging infrastructure. The prompt response by maintainers in shipping versions 4.4.1 and 4.3.8 reinforces the necessity of strict patch management policies and the proper network segmentation of exposed administrative interfaces.
References
- Khandelwal, S. (2026). Critical RabbitMQ OAuth2 Flaw Could Grant Admin Access Without Credentials. The Hacker News. https://thehackernews.com/2026/11/critical-rabbitmq-oauth2-flaw-could.html
- RabbitMQ Team. (2026). Security Advisory GHSA-cfvg-5q96-8mhm. GitHub. https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-cfvg-5q96-8mhm
- RabbitMQ Team. (2026). Fix Pull Request #17937. GitHub. https://github.com/rabbitmq/rabbitmq-server/pull/17937
- RabbitMQ Team. (2026). Release Information. RabbitMQ Official Website. https://www.rabbitmq.com/release-information
- RabbitMQ Team. (2026). Management Plugin Documentation. RabbitMQ Official Website. https://www.rabbitmq.com/docs/management
- RabbitMQ Team. (2026). Security Advisories Index. RabbitMQ Official Website. https://www.rabbitmq.com/security
- RabbitMQ Team. (2026). Release Notes for v4.3.3. GitHub. https://github.com/rabbitmq/rabbitmq-server/releases/tag/v4.3.3