LDAP group names are split at commas, granting roles of other groups
Description
When the LDAP group search is enabled, micronaut-security splits a group name containing a comma into several roles. A member of a group named club-chess,payroll-admins is authenticated with the roles club-chess and payroll-admins, and passes @Secured("payroll-admins") checks even though the directory never put them in payroll-admins. Deliberate abuse requires a directory user who can create or name a group inside the subtree the group search covers, in a directory that blocks the privileged name itself (for example through a prefix rule or cn uniqueness) but allows commas. Separately, members of a legitimately named group such as Sales,Marketing receive the roles Sales and Marketing...
Affected and patched versions
The following ranges cover stable releases.
| Release line | Affected versions | First patched release | Fix commit |
|---|---|---|---|
| 3.11.x and earlier | >= 1.1.1, < 3.11.3 | 3.11.3 | 2b704f19c1 |
| 4.x | >= 4.0.0, < 4.18.2 | 4.18.2 | 944e56dca0 |
| 5.0.x–5.4.x | >= 5.0.0, < 5.4.2 | 5.4.2 | 513e0c681c |
| 5.5.x | >= 5.5.0, < 5.5.2 | 5.5.2 | 641b797103 |
The fix commits are included in the corresponding release tags and absent from the preceding stable releases (3.11.2, 4.18.1, 5.4.1, 5.5.1).
Earliest verified affected stable source: 1.1.1. A single directory value is passed directly to ConversionService, which splits collection conversions at commas.
Version 1.1.1 is the earliest stable source tag available in this repository. Releases before that tag have not been verified.
Suggested severity
Suggested CVSS v3.1 vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N. This is an initial estimate based on the finding report and should be reviewed against the final impact and deployment prerequisites.
Source finding: ANT-2026-XBJTSNJO.