All vulnerabilities

Servers and applications

CVE-2026-34578

LDAP Injection via Unsanitized Username in Authentication

Severity
High 8.2
Published
9 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
26.1.6
Exploit chance
0.4% in the next 30 daysHigher than 37% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
LDAP injection (CWE-90)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Also known as
GHSA-jpm7-f59c-mp54
Sources
NVD, Project advisories (GitHub)

Description

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.

File: src/opnsense/mvc/app/library/OPNsense/Auth/LDAP.php Method: searchUsers() (line 400) Triggered by: _authenticate() (line 511), called from the WebGUI login form at src/www/authgui.inc:172

LDAP wildcards are not filtered, so an attacker can submit admin* as the username, causing the filter (uid=admin*) to be sent to the LDAP server. The server returns all entries whose uid begins with admin.

From opnsense/core's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
OPNsenseServers and applications · cpe:a:opnsense:opnsense
  • Every version before 26.1.6
OPNsenseServers and applications · github:opnsense/core
  • Every version before 26.1.6

About OPNsense

open-source firewall

From Wikidata, CC0 1.0.
GitHub stars
4,802GitHub, 15 Nov 2026
Forks
1,029GitHub, 15 Nov 2026
License
2-clause BSD LicenseWikidata
Written in
PHP, CWikidata
First released
2 Jan 2015Wikidata
First published on GitHub
13 Dec 2014GitHub

Release lines

ReleaseLatestSecurity fixes
26.7 'Xenial Xenops'26.7.9Yes
26.1 'Witty Woodpecker'26.1.11Ended 15 Jul 2026
25.7 'Visionary Viper'25.7.11Ended 28 Jan 2026
25.1 'Ultimate Unicorn'25.1.12Ended 23 Jul 2025
24.7 'Thriving Tiger'24.7.12Ended 28 Jan 2025
24.1 'Savvy Shark'24.1.10Ended 25 Jul 2024

From endoflife.date.

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-34578
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-34578
  • GitHub Advisory Database https://github.com/advisories/GHSA-jpm7-f59c-mp54
  • github.com https://github.com/opnsense/core/security/advisories/GHSA-jpm7-f59c-mp54