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-34578

CVE-2026-34578: OPNsense LDAP Auth Bypass Vulnerability

CVE-2026-34578 is an authentication bypass flaw in OPNsense's LDAP connector that allows attackers to bypass group restrictions and enumerate users. This post covers technical details, affected versions, and mitigations.

Published: April 9, 2026

CVE-2026-34578 Overview

CVE-2026-34578 is an LDAP Injection vulnerability in OPNsense, a FreeBSD-based firewall and routing platform. Prior to version 26.1.6, OPNsense's LDAP authentication connector passes the login username directly into an LDAP search filter without calling ldap_escape(). An unauthenticated attacker can inject LDAP filter metacharacters into the username field of the WebGUI login page to enumerate valid LDAP usernames in the configured directory. When the LDAP server configuration includes an Extended Query to restrict login to members of a specific group, the same injection can be used to bypass that group membership restriction and authenticate as any LDAP user whose password is known, regardless of group membership.

Critical Impact

Unauthenticated attackers can enumerate valid LDAP usernames and bypass group membership restrictions on the OPNsense WebGUI login, potentially gaining unauthorized access to the firewall management interface.

Affected Products

  • OPNsense versions prior to 26.1.6
  • OPNsense installations using LDAP authentication
  • OPNsense deployments with Extended Query group restrictions

Discovery Timeline

  • 2026-04-09 - CVE-2026-34578 published to NVD
  • 2026-04-09 - Last updated in NVD database

Technical Details for CVE-2026-34578

Vulnerability Analysis

This LDAP Injection vulnerability (CWE-90) exists in the OPNsense LDAP authentication module, specifically within the LDAP.php library file. The vulnerability occurs because user-supplied input from the WebGUI login page is directly concatenated into LDAP search filter queries without proper sanitization. This allows attackers to inject LDAP filter metacharacters such as *, (, ), \, and | to manipulate query logic.

The vulnerability enables two distinct attack scenarios: First, attackers can enumerate valid LDAP usernames by crafting injection payloads that return different responses based on username validity. Second, when Extended Query restrictions are configured to limit authentication to specific group members, attackers can inject payloads that bypass these group membership checks entirely, allowing authentication as any LDAP user whose password is known—regardless of their actual group membership.

Root Cause

The root cause is missing input sanitization in the LDAP authentication flow. The $username variable received from user input is directly interpolated into the LDAP search filter string without first being passed through the ldap_escape() function with the LDAP_ESCAPE_FILTER flag. This allows LDAP filter metacharacters to be interpreted as part of the query structure rather than as literal search values.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can access the OPNsense WebGUI login page and submit malicious usernames containing LDAP filter injection payloads. For username enumeration, an attacker might use wildcards like * or construct filter expressions that return data only when matching usernames exist. For group restriction bypass, the attacker can inject payloads that close the intended filter expression and add conditions that always evaluate to true, effectively nullifying the Extended Query group membership requirement.

php
// Vulnerable code - username directly interpolated into LDAP filter
// Source: https://github.com/opnsense/core/commit/016f66cb4620cd48183fa97843f343bb71813c6e
             // add $userNameAttribute to search results
             $this->addSearchAttribute($userNameAttribute);
             $result = [];
+            $username_safe = ldap_escape($username, '', LDAP_ESCAPE_FILTER);
             if (empty($extendedQuery)) {
-                $searchResults = $this->search("({$userNameAttribute}={$username})");
+                $searchResults = $this->search("({$userNameAttribute}={$username_safe})");
             } else {
                 // add additional search phrases
-                $searchResults = $this->search("(&({$userNameAttribute}={$username})({$extendedQuery}))");
+                $searchResults = $this->search("(&({$userNameAttribute}={$username_safe})({$extendedQuery}))");
             }
             if ($searchResults !== false) {
                 for ($i = 0; $i < $searchResults["count"]; $i++) {

Source: GitHub Commit Update

Detection Methods for CVE-2026-34578

Indicators of Compromise

  • Login attempts containing LDAP metacharacters such as *, (, ), \, |, or ! in the username field
  • Unusual patterns of failed login attempts followed by successful authentication from the same source
  • Authentication logs showing login attempts with wildcard patterns or filter expressions as usernames
  • Successful LDAP authentications from users who should be restricted by group membership policies

Detection Strategies

  • Monitor OPNsense authentication logs for username values containing special characters or LDAP filter syntax
  • Implement Web Application Firewall (WAF) rules to detect and block LDAP injection payloads in login requests
  • Configure LDAP server logging to capture and alert on malformed or suspicious search queries
  • Deploy network intrusion detection rules to identify LDAP injection patterns in HTTP POST requests to the WebGUI

Monitoring Recommendations

  • Enable verbose logging on both OPNsense and the connected LDAP server to capture authentication attempts
  • Set up alerts for authentication anomalies, particularly successful logins from users not in permitted groups
  • Regularly audit LDAP server logs for unusual query patterns or high volumes of searches
  • Monitor for reconnaissance activity against the WebGUI login page from suspicious IP addresses

How to Mitigate CVE-2026-34578

Immediate Actions Required

  • Upgrade OPNsense to version 26.1.6 or later immediately
  • Review authentication logs for evidence of exploitation attempts prior to patching
  • Audit LDAP-authenticated user access to identify any unauthorized authentications
  • Consider temporarily disabling LDAP authentication and using local accounts until the patch is applied

Patch Information

OPNsense has released version 26.1.6 which addresses this vulnerability by implementing proper input sanitization using the ldap_escape() function with the LDAP_ESCAPE_FILTER flag. The fix ensures that all user-supplied input is properly escaped before being incorporated into LDAP search filters. For more details, refer to the GitHub Security Advisory GHSA-jpm7-f59c-mp54 and the patch commit.

Workarounds

  • Implement network-level access controls to restrict WebGUI access to trusted management networks only
  • Deploy a Web Application Firewall (WAF) in front of the OPNsense WebGUI to filter malicious input patterns
  • Consider disabling LDAP authentication temporarily and using local OPNsense accounts until the patch can be applied
  • If LDAP authentication must remain active, implement additional monitoring and alerting on authentication events
bash
# Configuration example
# Restrict WebGUI access to trusted management network via firewall rule
# In OPNsense: Firewall > Rules > WAN (or appropriate interface)
# Create a rule blocking access to the WebGUI port (443) from untrusted networks

# Example: Update OPNsense via console or SSH
opnsense-update -f
opnsense-version -v  # Verify version is 26.1.6 or higher

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechOpnsense

  • SeverityHIGH

  • CVSS Score8.2

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-90
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-jpm7-f59c-mp54
  • Related CVEs
  • CVE-2026-30868: OPNsense Firewall CSRF Vulnerability

  • CVE-2019-25368: OPNsense 19.1 XSS Vulnerability

  • CVE-2019-25369: OPNsense Stored XSS Vulnerability

  • CVE-2019-25370: OPNsense 19.1 XSS 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