DHI-2yq4-pjbu-tywf-f4sm
### Summary
- CVSS
- —
- EPSS
- —
- Published
- 2026-11-27
- Age
- 1d old
- Modified
- 2026-11-27
- Product
- rabbitmq-4.3
Description
### Summary 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. ### Details `deps/rabbitmq_auth_backend_ldap/src/rabbit_auth_backend_ldap.erl:376`: ```erlang evaluate0({string, StringPattern}, Args, _User, _LDAP) -> R = fill(StringPattern, Args), ``` reaching the matcher unchanged: ```erlang do_match(S1, S2) -> R = rabbit_re:matches(S1, S2), ``` `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`): ```erlang %% Raw substitution without escaping. Safe only for non-DN sinks (ACL string %% comparisons, eldap:equalityMatch/2 filter values). ``` An ACL regex is not a string com
Sources
- OSV · first seen 1d ago · CC-BY 4.0