Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain low-privilege credentials
-
DeliveryAuthenticate to PAC4J-integrated application
-
ExploitInject LDAP metacharacters into ID search parameter
-
InstallTrigger vulnerable LDAP query method
-
C2Execute arbitrary LDAP filter operations
-
ExecuteExtract sensitive directory data or modify attributes
-
ImpactEscalate privileges or pivot to directory infrastructure
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization LDAP query parameterization
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires valid low-privileged credentials (PR:L) to an application using PAC4J's LDAP authentication module. Specifically requires the application to expose PAC4J LDAP ID-based search functionality to authenticated users, such as user profile lookups, group membership queries, or directory search features. Default PAC4J installations using LDAP authentication are vulnerable if running affected versions. Exploitation is LIMITED by authentication requirement (not remotely exploitable by unauthenticated attackers) and by application architecture (applications not using LDAP module or not exposing ID search parameters are unaffected). Network accessibility (AV:N) and low attack complexity (AC:L) mean exploitation is straightforward once authentication barrier is cleared, with no user interaction (UI:N) or special configuration needed beyond standard PAC4J LDAP integration. |
| Impact | Real-world risk is MODERATE despite High CVSS 8.7. Converging signals: CVSS vector (AV:N/AC:L/PR:L) indicates network-accessible attack with low complexity but requires authenticated access (low-privileged account). SSVC framework marks exploitation as 'none' and automatable as 'no', aligning with EPSS 0.22% (45th percentile) - below median exploitation probability. No CISA KEV listing confirms no observed active exploitation. The PR:L requirement significantly reduces attack surface versus unauthenticated vulnerabilities, as attacker needs valid LDAP-enabled credentials first. However, SSVC 'Technical Impact: total' and CVSS VC:H/VI:H/VA:H indicate complete confidentiality/integrity/availability compromise of LDAP directory if exploited. Primary risk scenario: insider threat or compromised low-privilege accounts in environments using PAC4J LDAP authentication against critical directory services (Active Directory, OpenLDAP). Organizations not using PAC4J's LDAP module are unaffected. Priority: High for LDAP-integrated deployments with PAC4J versions in affected ranges; Medium-Low for environments where attackers lack low-privilege credentials. |
| Exploit ScenarioDerived | Attacker obtains low-privilege credentials to an application using PAC4J LDAP authentication (e.g., via phishing, credential stuffing, or insider access). Attacker crafts malicious input for ID-based search parameters, injecting LDAP filter syntax such as '*)(uid=*))(|(uid=*' to manipulate query logic. The vulnerable PAC4J method constructs an LDAP query without proper sanitization, executing attacker-controlled filters against the backend directory. Attacker enumerates sensitive LDAP entries (user accounts, groups, organizational structure), modifies directory attributes to escalate privileges, or extracts password hashes for offline cracking. In Active Directory environments, could lead to domain reconnaissance and privilege escalation paths. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 20, 2026
LDAP injection vulnerabilities in PAC4J authentication library allow low-privileged remote attackers to execute arbitrary LDAP queries and directory operations by injecting malicious syntax into ID-based search parameters. Affects PAC4J 4.x before 4.5.10, 5.x before 5.7.10, and 6.x before 6.4.1. CVSS 8.7 (High) with network vector, low complexity, and low privilege requirement. No active exploitation confirmed per CISA KEV; EPSS score 0.22% suggests low near-term exploitation probability. Vendor patches available per pac4j.org advisory. CERT-PL reported vulnerability.
Earlier versions of this analysis (1)
LDAP injection in PAC4J authentication library allows authenticated remote attackers to manipulate directory queries and execute unauthorized LDAP operations across versions 4.0-6.4.0. Low attack complexity and network accessibility elevate risk despite low-privilege requirement. CERT-PL identified the flaw, which vendor patched in versions 4.5.10, 5.7.10, and 6.4.1. EPSS data not available, but SSVC framework rates technical impact as 'total' with exploitation status 'none' and non-automatable attack chain, suggesting targeted exploitation scenario. No public exploit identified at time of analysis.
RemediationAI
Upgrade PAC4J to patched versions: 4.5.10 (for 4.x branch), 5.7.10 (for 5.x branch), or 6.4.1 (for 6.x branch) per vendor advisory at https://www.pac4j.org/blog/security-advisory-pac4j-core-and-ldap.html. Patches implement proper input validation and LDAP query parameterization to prevent injection attacks. If immediate patching is infeasible, implement compensating controls: (1) Disable LDAP authentication module in PAC4J configuration and use alternative authentication mechanisms (OAuth, SAML, database) until upgrade completes - eliminates attack surface but requires application reconfiguration and user migration; (2) Deploy strict input validation at application layer before passing parameters to PAC4J LDAP methods, specifically sanitizing LDAP special characters: parentheses, asterisks, backslashes, null bytes, pipe symbols - requires code changes and thorough testing to avoid breaking legitimate usernames; (3) Restrict network access to LDAP directories using firewall rules limiting queries to authorized application servers only - reduces blast radius but does not prevent exploitation by authenticated users. Note: Workarounds provide partial risk reduction; vendor patch is the complete fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PAC4J is a Java security framework providing authentication and authorization across multiple protocols (OAuth, SAML, CAS, LDAP, etc.). This vulnerability (CWE-90: LDAP Injection) affects the LDAP authentication module where user-supplied input in ID-based search parameters is insufficiently sanitized before constructing LDAP queries. LDAP injection allows attackers to manipulate query logic by inserting metacharacters like parentheses, asterisks, and boolean operators (e.g., transforming '(uid=USERNAME)' into '(uid=*)(|(uid=*))' to bypass filters or enumerate entries). The affected CPE (cpe:2.3:a:pac4j:pac4j) covers all PAC4J core distributions. Multiple methods are vulnerable, suggesting widespread improper input validation across LDAP query construction points in the codebase.
Know when Pac4J gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionCVE.org
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
Executive ViewAI
PAC4J authentication library versions 4.x, 5.x, and 6.x contain LDAP injection vulnerabilities that allow low-privileged attackers to execute arbitrary directory queries, potentially enabling unauthorized access to sensitive directory data or account information. Organizations using PAC4J for authentication should prioritize patching to prevent attackers from bypassing access controls or extracting sensitive directory attributes through crafted requests.
Apply vendor patch. Interim mitigations pending patch deployment: implement strict input validation on all LDAP search parameters, restrict LDAP directory account privileges to read-only access, isolate LDAP services on separate network segments, and monitor LDAP query logs for injection attempts (e.g., wildcard or special character sequences in search fields).
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Authentication bypass in pac4j-core before 6.5.6 allows authenticated users holding a weaker profile type to access reso
Privilege escalation in pac4j-oidc before 6.5.6 allows authenticated attackers to forge Keycloak access tokens and claim
CSRF protection bypass in PAC4J authentication library allows remote attackers to forge state-changing requests without
Session termination via unsigned SAML LogoutRequest in pac4j-saml before 6.5.6 allows unauthenticated remote attackers t
Authentication bypass in pac4j-oidc before 6.5.6 allows remote unauthenticated attackers to establish authenticated sess
Open redirect in pac4j-core before 6.5.6 allows network-accessible attackers to redirect authenticated users to attacker
The SAML identifier generated within SAML2Utils.java was found to make use of the apache commons-lang3 RandomStringUtils
EUVD-2026-23423
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB