LDAP Injection in PAC4J
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
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
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pac4j | PAC4J | 4.0 to before 4.5.10; 5.0 to before 5.7.10; 6.0 to before 6.4.1 | 4.5.10, 5.7.10, 6.4.1 | Patch available | CNA |
- PAC4J Vendorpac4j Affected 4.0 to before 4.5.10; 5.0 to before 5.7.10; 6.0 to before 6.4.1 Fixed in 4.5.10, 5.7.10, 6.4.1 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:pac4j:pac4j:*:*:*:*:*:*:*:* | 4.0.0 to before 4.5.10; 5.0.0 to before 5.7.10; 6.0.0 to before 6.4.1 | Vulnerable | pac4j |
- cpe:2.3:a:pac4j:pac4j:*:*:*:*:*:*:*:* Versions 4.0.0 to before 4.5.10; 5.0.0 to before 5.7.10; 6.0.0 to before 6.4.1 Vulnerable ·pac4j
Remediation
- Fix · CNA PAC4J (PAC4J) Fixed in 4.5.10, 5.7.10, 6.4.1
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
PAC4J — pac4j.org/blog/security-advisory-pac4j-core-and-ldap.html
2 records Highest priority Priority MEDIUM 1 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2026-29210 Cross-Site Request Forgery in PAC4JPriority LOW 30
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40459
- 2026-10-03 Alias added: GHSA-3jrj-7493-fgq2
- 2026-10-25 EPSS moved to the below the 50th percentile
References
More Pac4j vulnerabilities
- TI-2021-20310 If an OpenID Connect provider supports the "none" algorithm (i.e., tokens with no… CVSS 3.1HIGH 7.5
- TI-2026-29210 Cross-Site Request Forgery in PAC4J CVSS 4.0HIGH 7.0
- TI-2019-08020 The SAML identifier generated within SAML2Utils.java was found to make use of the apache… CVSS 3.1MEDIUM 4.9
Sources
- CVE-2026-40459 · CVE Program
- CVE-2026-40459 · NVD
- FIRST EPSS
- GHSA-3jrj-7493-fgq2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences