Skip to main content
Menu
Advisories

LDAP username enumeration via User Not Found reason and bind timing

GHSA-Q334-QW3J-C38XPublished Updated GitHub

Description

LdapAuthenticationProvider lets an unauthenticated client find out which usernames exist in the LDAP directory without knowing any password. With micronaut.security.authentication=bearer, one POST /login per name is enough: an unknown name gets 401 User Not Found and an existing name gets 401 Credentials Do Not Match, in both the status line and the body. With only the LDAP settings configured, the same information also leaks through response time over Basic auth, which is on by default.

Affected and patched versions

The following ranges cover stable releases.

Release lineAffected versionsFirst patched releaseFix commit
3.11.x and earlier>= 1.1.1, < 3.11.33.11.3cec371e252
4.x>= 4.0.0, < 4.18.24.18.29c1addca36
5.0.x–5.4.x>= 5.0.0, < 5.4.25.4.2c51f143145
5.5.x>= 5.5.0, < 5.5.25.5.28e7f5d0867

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. An unknown username returns USER_NOT_FOUND without attempting a password bind.

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:L/PR:N/UI:N/S:U/C:L/I:N/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-G2EHCE2P.

Affected versions

References

GitHub · micronaut-projects/micronaut-security