Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40459

CVE-2026-40459: Pac4j LDAP Injection Vulnerability

CVE-2026-40459 is an LDAP injection flaw in Pac4j that enables attackers to inject crafted syntax into search parameters, leading to unauthorized queries. This article covers technical details, affected versions, and fixes.

Published: April 23, 2026

CVE-2026-40459 Overview

PAC4J, a popular Java security engine for authentication and authorization, 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 vulnerability poses significant risk to applications using PAC4J for LDAP-based authentication mechanisms.

Critical Impact

Attackers with low-level access can manipulate LDAP queries to bypass authentication controls, enumerate directory information, and potentially execute arbitrary directory operations leading to unauthorized data access or privilege escalation.

Affected Products

  • pac4j pac4j versions prior to 4.5.10
  • pac4j pac4j versions 5.x prior to 5.7.10
  • pac4j pac4j versions 6.x prior to 6.4.1

Discovery Timeline

  • 2026-04-17 - CVE CVE-2026-40459 published to NVD
  • 2026-04-20 - Last updated in NVD database

Technical Details for CVE-2026-40459

Vulnerability Analysis

This LDAP Injection vulnerability exists in multiple methods within the PAC4J security library. The flaw stems from insufficient validation and sanitization of user-supplied input that is subsequently incorporated into LDAP search queries. When applications pass user-controlled data to vulnerable PAC4J methods, attackers can inject malicious LDAP filter syntax to alter the intended query behavior.

The vulnerability is classified under CWE-90 (Improper Neutralization of Special Elements used in an LDAP Query), which describes scenarios where applications construct LDAP queries using externally-influenced input without proper neutralization of special LDAP characters or filter syntax.

Root Cause

The root cause of this vulnerability is improper input sanitization in ID-based search parameters within PAC4J's LDAP authentication modules. The library fails to adequately escape or validate special LDAP characters such as *, (, ), \, and NUL before incorporating user input into LDAP filter expressions. This allows attackers to break out of the intended query context and inject arbitrary LDAP filter clauses.

Attack Vector

The attack vector is network-based, requiring the attacker to have low-privileged access to the target application. The attacker crafts malicious input containing LDAP filter metacharacters and injects it through authentication or search parameters handled by vulnerable PAC4J methods. Upon processing, the injected syntax modifies the LDAP query structure, potentially allowing the attacker to:

  • Bypass authentication by manipulating filter conditions
  • Enumerate sensitive directory information
  • Modify or delete directory entries if write permissions are present
  • Extract user credentials or other sensitive attributes

The vulnerability can be exploited by submitting specially crafted payloads in username fields, search parameters, or other inputs that are processed by the affected PAC4J methods. Common LDAP injection payloads include filter manipulation using operators like )(, *)(objectClass=*, or attribute extraction techniques. For detailed technical analysis, refer to the CERT PL CVE-2026-40458 Analysis.

Detection Methods for CVE-2026-40459

Indicators of Compromise

  • Unusual LDAP query patterns containing special characters like *, )(, or \00 in authentication logs
  • Unexpected LDAP search operations returning more results than typical user lookups
  • Authentication successes for accounts that should not have access
  • LDAP server logs showing malformed or abnormally long filter expressions

Detection Strategies

  • Monitor application logs for authentication attempts containing LDAP metacharacters in username or search fields
  • Implement Web Application Firewall (WAF) rules to detect common LDAP injection patterns in request parameters
  • Enable detailed LDAP server logging and alert on queries with unusual filter complexity or wildcard patterns
  • Deploy runtime application self-protection (RASP) solutions to detect and block LDAP injection attempts

Monitoring Recommendations

  • Configure SIEM rules to correlate authentication failures followed by successes with similar source IPs
  • Monitor for enumeration behavior patterns such as rapid sequential queries against directory services
  • Implement anomaly detection for LDAP query volume and response sizes per user session
  • Review and audit PAC4J configuration and version across all deployed applications

How to Mitigate CVE-2026-40459

Immediate Actions Required

  • Identify all applications using PAC4J for authentication and verify current versions
  • Upgrade PAC4J to patched versions: 4.5.10, 5.7.10, or 6.4.1 depending on your major version
  • Review application logs for potential prior exploitation attempts
  • Implement input validation at the application layer as defense-in-depth

Patch Information

The PAC4J maintainers have released security patches addressing this vulnerability. Organizations should upgrade to the following fixed versions:

  • PAC4J 4.x series: Upgrade to version 4.5.10 or later
  • PAC4J 5.x series: Upgrade to version 5.7.10 or later
  • PAC4J 6.x series: Upgrade to version 6.4.1 or later

For complete patch details and upgrade guidance, consult the Pac4j Security Advisory.

Workarounds

  • Implement strict input validation to reject LDAP special characters in user-supplied parameters before they reach PAC4J methods
  • Deploy a Web Application Firewall with LDAP injection detection rules as a temporary protective layer
  • Restrict LDAP service account permissions to read-only access to limit potential impact
  • Consider implementing additional authentication factors to reduce reliance on LDAP-only authentication
bash
# Maven dependency update example for PAC4J 6.x
# Update your pom.xml to use the patched version:
# <dependency>
#     <groupId>org.pac4j</groupId>
#     <artifactId>pac4j-ldap</artifactId>
#     <version>6.4.1</version>
# </dependency>

# Verify current PAC4J version in your project
mvn dependency:tree | grep pac4j

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechPac4j

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-90
  • Technical References
  • CERT PL CVE-2026-40458 Analysis
  • Vendor Resources
  • Pac4j Security Advisory
  • Related CVEs
  • CVE-2026-40458: Pac4j CSRF Token Collision Vulnerability

  • CVE-2026-29000: pac4j-jwt Authentication Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English