Skip to main content
Menu
Advisories

Username enumeration: ldap.enabled becomes an LDAP config with no server

GHSA-MCH3-J785-25RXPublished Updated GitHub

Description

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 lineAffected versionsFirst patched releaseFix commit
3.11.x and earlier>= 1.1.1, < 3.11.33.11.30b8b0448e5
4.x>= 4.0.0, < 4.18.24.18.295e212c9e2
5.0.x–5.4.x>= 5.0.0, < 5.4.25.4.2d872ceb12f
5.5.x>= 5.5.0, < 5.5.25.5.2cb06c8609b

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. 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.

Affected versions

References

GitHub · micronaut-projects/micronaut-security