# CVE-2026-34578: OPNsense has an LDAP Injection via Unsanitized Username in Authentication

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-09T14:34:20.158Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-90
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

OPNsense is a FreeBSD based firewall and routing platform. Prior to 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. This vulnerability is fixed in 26.1.6.

(As written by CVE List.)

## Affected

- opnsense core: < 26.1.6
- opnsense opnsense: before 26.1.6

## References

- <https://github.com/opnsense/core/security/advisories/GHSA-jpm7-f59c-mp54> (exploit, mitigation, vendor-advisory)
- <https://github.com/opnsense/core/commit/016f66cb4620cd48183fa97843f343bb71813c6e> (patch)

## Sources

- CVE List: [CVE-2026-34578](https://www.cve.org/CVERecord?id=CVE-2026-34578), CVE Terms of Use, modified 2026-04-09
- NVD: [CVE-2026-34578](https://nvd.nist.gov/vuln/detail/CVE-2026-34578), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-34578 · Whole record: https://cve.day/CVE-2026-34578.json · Rebuilt by cve.day 2026-11-25T22:59:18.370Z
