Description
PAC4J is vulnerable to LDAP Injection in multiple methods. A low-privileged remote attacker can inject crafted LDAP syntax into ID-based search parameters, potentially resulting in unauthorized LDAP queries and arbitrary directory operations. This issue was fixed in PAC4J versions 4.5.10, 5.7.10 and 6.4.1
Problem types
CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')
Product status
4.0 (semver) before 4.5.10
5.0 (semver) before 5.7.10
6.0 (semver) before 6.4.1
Credits
Bartłomiej Dmitruk, striga.ai
References
cert.pl/en/posts/2026/04/CVE-2026-40458/
www.pac4j.org/.../security-advisory-pac4j-core-and-ldap.html