RabbitMQ Server 4.4.0 LDAP Backend Authorization Bypass via Unescaped Regex VariablesGHSA-hqjp-fc45-wj4f
GHSA-hqjp-fc45-wj4f is a CWE-625 vulnerability. A fix is available — see the affected versions and patch details below.
Description
RabbitMQ Server 4.4.0 before 4.4.1, 4.3.0 before 4.3.8, 4.2.0 before 4.2.13, 4.1.0 before 4.1.18, and 3.13.0 before 3.13.22 contains an authorization bypass in the LDAP backend because ${username} and other variables are substituted unescaped into match-form access query regular expressions. An authenticated principal whose name contains PCRE metacharacters can rewrite the pattern to gain configure, write, and read access to other principals' queues and exchanges in the same vhost.
Detection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Fix
Upgrade the affected component to the fixed release for GHSA-hqjp-fc45-wj4f, or apply your distribution's backported patch — distro builds are often patched at an older version number, so check your vendor's advisory rather than the upstream version alone.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-hqjp-fc45-wj4f in your dependencies?
Find it across your dependency tree, including transitive dependencies.