LDAP context.properties never reach JNDI: ssl ignored, binds in cleartext
Description
When micronaut.security.ldap.*.context.properties is used to turn on TLS for the directory connection (for example java.naming.security.protocol=ssl with an ldap:// URL), the setting is silently ignored. The manager DN and password, and every logging-in user's DN and password, are then sent to the directory as clear-text LDAP simple binds. Someone on the network path between the application and the directory can read those credentials. Because the directory is also not authenticated, an active attacker on that path can answer the binds themselves and log in to the application as any user. ldaps:// URLs are not affected, and a remote HTTP client alone gains nothing.
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.2.1, < 3.11.4 | 3.11.4 | e2f8dd03d4 |
| 4.x | >= 4.0.0, < 4.18.3 | 4.18.3 | a4f8f46aff |
| 5.0.x–5.4.x | >= 5.0.0, < 5.4.3 | 5.4.3 | a2407c443d |
| 5.5.x | >= 5.5.0, < 5.5.3 | 5.5.3 | 2a0b3686c0 |
The fix commits are included in the corresponding release tags and absent from the preceding stable releases (3.11.3, 4.18.2, 5.4.2, 5.5.2).
The lower bound is the earliest stable release the finding traces the behavior to.
Suggested severity
Suggested CVSS v3.1 vector: CVSS:3.1/AV:A/AC:H/PR:N/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-PGNT5TCV.