8.2high
OPNsense has an LDAP Injection via Unsanitized Username in Authentication
- Severity
- 8.2high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.43% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| opnsense core | < 26.1.6 | CVE List |
| opnsense opnsense | before 26.1.6 | NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
OPNsense es una plataforma de cortafuegos y enrutamiento basada en FreeBSD. Antes de la versión 26.1.6, el conector de autenticación LDAP de OPNsense pasa el nombre de usuario de inicio de sesión directamente a un filtro de búsqueda LDAP sin llamar a ldap_escape(). Un atacante no autenticado puede inyectar metacaracteres de filtro LDAP en el campo de nombre de usuario de la página de inicio de sesión de la WebGUI para enumerar nombres de usuario LDAP válidos en el directorio configurado. Cuando la configuración del servidor LDAP incluye una Consulta Extendida para restringir el inicio de sesión a miembros de un grupo específico, la misma inyección puede usarse para eludir esa restricción de membresía de grupo y autenticarse como cualquier usuario LDAP cuya contraseña sea conocida, independientemente de la membresía de grupo. Esta vulnerabilidad se corrige en la versión 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-34578 changed 2026-04-09 | CVE Terms of Use |
| NVD | CVE-2026-34578 changed 2026-10-26 | Public domain |