# GHSA-Q334-QW3J-C38X: LDAP username enumeration via User Not Found reason and bind timing

- Database: GitHub
- Severity: CVSS 5.3 (Medium)
- Published: 2026-11-11
- Modified: 2026-11-11

## Affected versions

- io.micronaut.security:micronaut-security-ldap (Maven): from 1.1.1, fixed in 3.11.3
- io.micronaut.security:micronaut-security-ldap (Maven): from 4.0.0, fixed in 4.18.2
- io.micronaut.security:micronaut-security-ldap (Maven): from 5.0.0, fixed in 5.4.2
- io.micronaut.security:micronaut-security-ldap (Maven): from 5.5.0, fixed in 5.5.2

## Description

## Summary
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 line | Affected versions | First patched release | Fix commit |
| --- | --- | --- | --- |
| 3.11.x and earlier | `>= 1.1.1, < 3.11.3` | `3.11.3` | [cec371e252](https://github.com/micronaut-projects/micronaut-security/commit/cec371e2527aed49e15b304491191653c42d0fba) |
| 4.x | `>= 4.0.0, < 4.18.2` | `4.18.2` | [9c1addca36](https://github.com/micronaut-projects/micronaut-security/commit/9c1addca3664633463c23819a053d017a90ccb85) |
| 5.0.x–5.4.x | `>= 5.0.0, < 5.4.2` | `5.4.2` | [c51f143145](https://github.com/micronaut-projects/micronaut-security/commit/c51f14314546248dcd9cd1b9d31ff011c6952f69) |
| 5.5.x | `>= 5.5.0, < 5.5.2` | `5.5.2` | [8e7f5d0867](https://github.com/micronaut-projects/micronaut-security/commit/8e7f5d0867a86c2f5f90401598de7244d7f6b40c) |

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](https://github.com/micronaut-projects/micronaut-security/blob/v1.1.1/security-ldap/src/main/java/io/micronaut/configuration/security/ldap/LdapAuthenticationProvider.java). 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`.

## References

- https://github.com/micronaut-projects/micronaut-security/security/advisories/GHSA-q334-qw3j-c38x

Page: https://cve.now/GHSA-Q334-QW3J-C38X

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
