REDHAT-BUG-2541515: Medium severity VMware RabbitMQ vulnerability
RabbitMQ is a messaging and streaming broker. From 3.13.0 until 3.13.15 and 4.0.22 and 4.1.11 and 4.2.6 and 4.3.1, Atom exhaustion: OAuth2 JWT tag: scope values. extractscopes/1 parses scopes of the form .tag: and calls rabbitdatacoercion:toatom() to convert to a tag atom. The token signature is verified first, so the attacker cannot forge scopes , but in IdP configurations where scope content is user-influenced, each login with a novel tag value leaks one In deployments where users can influence the scopes included in their IdP-issued JWT rabbitmqauthbackendoauth2 enabled IdP permits attacker-influenced scope values in signed tokens. This issue is fixed in versions 3.13.15 and 4.0.22 and 4.1.11 and 4.2.6 and 4.3.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.13.15 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.0.22 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.1.11 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.2.6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.3.1
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using rabbitmq_auth_backend_oauth2 are exposed when their identity provider allows users to influence scope values included in signed JWTs. The affected code processes scope values in the .tag: form.
Does an attacker need to forge or alter JWTs?
No. JWT signatures are verified before scope processing, so the attacker does not need to forge a token. Exploitation depends on obtaining legitimately signed tokens containing attacker-influenced, novel tag scope values.
What is the impact of repeated exploitation?
Each login using a previously unseen tag value causes one atom to be leaked. Repeated logins with novel tag values can exhaust atoms.
What should be done if patching is not immediately possible?
Restrict or prevent user-controlled scope content in the identity provider, especially values that can produce novel .tag: scopes in signed JWTs. Review whether OAuth2 authentication is enabled and whether users can influence scopes.
How can administrators determine whether they are affected?
Check whether RabbitMQ uses rabbitmq_auth_backend_oauth2 and whether the IdP issues signed JWTs with user-influenced scope values. Versions before the listed fixed releases may be affected: 3.13.15, 4.0.22, 4.1.11, 4.2.6, and 4.3.1 are identified as fixed.