All vulnerabilities

Servers and applications

GHSA-hqjp-fc45-wj4f

LDAP backend interpolates identity variables into authorization regexes unescaped, letting a username widen its own ACL

Severity
Medium 5.1
Published
27 Nov 2026
Last changed
27 Nov 2026
Added to UpHeron
27 Nov 2026
Fixed in
3.13.22, 4.1.18, 4.2.13, 4.3.8, 4.4.1
Weakness
CWE-625
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:H/SA:N
Sources
Project advisories (GitHub)

Description

In the LDAP backend's documented access queries the regular expression is the ACL. ${username} and the other variables are substituted into it with no escaping, so a principal whose name contains PCRE metacharacters rewrites the pattern that is supposed to constrain it and gains access to other principals' resources. This is an incomplete instance of the project's own hardening: commit f964a14cf9 (2026-07-03) added rabbit_re:escape/1 for exactly this problem and applied it to two backends, but not to LDAP.

deps/rabbitmq_auth_backend_ldap/src/rabbit_auth_backend_ldap.erl:376:

reaching the matcher unchanged:

rabbit_re:matches/2 calls re:run/3 with no anchoring, so a top-level alternation applies to the whole pattern. The substitution helper states its own limitation (rabbit_auth_backend_ldap_util.erl:12):

An ACL regex is not a string comparison. By contrast the internal backend does escape, at deps/rabbit/src/rabbit_auth_backend_internal.erl:222:

From rabbitmq/rabbitmq-server's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
RabbitMQServers and applications · github:rabbitmq/rabbitmq-server
  • From 3.13.0 before 3.13.22
  • From 4.1.0 before 4.1.18
  • From 4.2.0 before 4.2.13
  • From 4.3.0 before 4.3.8
  • From 4.4.0 before 4.4.1

About RabbitMQ

open source message broker, sometimes referred to as "Rabbit"

From Wikidata, CC0 1.0.
Docker Hub pulls
3,932,813,088Docker Hub, 29 Nov 2026
GitHub stars
13,987GitHub, 29 Nov 2026
Forks
4,037GitHub, 29 Nov 2026
Latest release
v4.4.1GitHub, 29 Nov 2026
Released
16 Nov 2026GitHub
Developer
Jean-Sébastien PédronWikidata
License
Mozilla Public License, version 2.0Wikidata
Written in
ErlangWikidata
First published on GitHub
20 Sept 2010GitHub

Release lines

ReleaseLatestSecurity fixes
4.44.4.1Until 31 Jul 2027
4.34.3.8Until 31 Jan 2027
4.24.2.9Ended 31 Jul 2026
4.14.1.8Ended 30 Jan 2026
4.04.0.9Ended 30 Apr 2025
3.133.13.7Ended 30 Sept 2024

From endoflife.date.

References