# GHSA-MCH3-J785-25RX: Username enumeration: ldap.enabled becomes an LDAP config with no server

- Database: GitHub
- Severity: CVSS 3.7 (Low)
- 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
Writing the documented global switch micronaut.security.ldap.enabled=true into an application's configuration lets an anonymous client tell which usernames exist in the LDAP directory. With the switch set, Basic logins for unknown users are sometimes answered with 500 instead of 401, while wrong passwords for existing users stay 401. Authentication is not bypassed, correct logins still succeed, and every such 500 writes an ERROR stack trace to the log.

## 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` | [0b8b0448e5](https://github.com/micronaut-projects/micronaut-security/commit/0b8b0448e5c21fe28092d494dd0ca03999bdcdb1) |
| 4.x | `>= 4.0.0, < 4.18.2` | `4.18.2` | [95e212c9e2](https://github.com/micronaut-projects/micronaut-security/commit/95e212c9e2cb15f5e56bc5aa79444aa453100d04) |
| 5.0.x–5.4.x | `>= 5.0.0, < 5.4.2` | `5.4.2` | [d872ceb12f](https://github.com/micronaut-projects/micronaut-security/commit/d872ceb12f71b377c8b7abe42e38e80c075ceb33) |
| 5.5.x | `>= 5.5.0, < 5.5.2` | `5.5.2` | [cb06c8609b](https://github.com/micronaut-projects/micronaut-security/commit/cb06c8609bccfbd3b4d8b570dace6cb8fec533c2) |

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/configuration/LdapConfiguration.java). The original configuration already uses @EachProperty for the LDAP prefix, with @EachBean providers and a null default context server; leaf keys are not filtered.

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: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-F81654M0`.

## References

- https://github.com/micronaut-projects/micronaut-security/security/advisories/GHSA-mch3-j785-25rx

Page: https://cve.now/GHSA-MCH3-J785-25RX

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