REDHAT-BUG-2541535: Low severity VMware RabbitMQ vulnerability
RabbitMQ is a messaging and streaming broker. From 3.13.0 until 3.13.19, 4.0.24, 4.1.15, 4.2.10, and 4.3.5, RabbitMQ OAuth credential refresh retains revoked runtime tags. when an existing AMQP connection refreshes from an OAuth token that grants the impersonator tag to a valid same-username token that no longer grants that tag, RabbitMQ updates the OAuth backend implementation (token/scopes/expiry) but leaves the connection's runtime #user.tags unchanged. rabbitaccesscontrol:checkuserid/2 then still honors the stale impersonator tag, so the connection (including newly opened channels) can continue publishing messages with a foreign AMQP userid after that privilege should have been revoked. A fresh connection using the downgraded token correctly refuses the same publish, proving the defect is stale session state rather than the token Limited to connections that once held impersonator and successfully refresh to a downgraded same-username rabbitauthbackendoauth2 (or an equivalent refresh-capable backend that returns tags) is enabled for This issue is fixed in versions 3.13.19, 4.0.24, 4.1.15, 4.2.10, and 4.3.5.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
RabbitMQto a version that resolves this vulnerability.Fixed in 3.13.19 - Upgrade
Upgrade
RabbitMQto a version that resolves this vulnerability.Fixed in 4.0.24 - Upgrade
Upgrade
RabbitMQto a version that resolves this vulnerability.Fixed in 4.1.15 - Upgrade
Upgrade
RabbitMQto a version that resolves this vulnerability.Fixed in 4.2.10 - Upgrade
Upgrade
RabbitMQto a version that resolves this vulnerability.Fixed in 4.3.5
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments are affected only when RabbitMQ uses rabbit_auth_backend_oauth2, or an equivalent refresh-capable backend that returns tags. The issue is limited to AMQP connections that previously received the impersonator tag and then successfully refresh to a same-username token from which that tag has been removed.
What must an attacker or affected client be able to do?
The client must already have an established AMQP connection authenticated with a token that grants the impersonator tag. It must then refresh that connection using a valid token for the same username that no longer grants the tag; the stale connection can continue publishing with a foreign AMQP userid.
Are new connections using the downgraded token affected?
No. A fresh connection using the downgraded token correctly rejects the foreign-userid publish attempt. The problem is limited to stale runtime tags retained on an existing refreshed connection, including channels opened after the refresh.
What versions contain fixes?
The issue is fixed in RabbitMQ versions 3.13.19, 4.0.24, 4.1.15, 4.2.10, and 4.3.5.