LDAP Filter Injection in LibreNMS Authentication Modules
LibreNMS versions prior to 26.9.0 are vulnerable to LDAP filter injection, allowing unauthenticated attackers to bypass authentication and gain administrative access via crafted HTTP Basic Authorization headers.
CVE search metadata
CVE search record: CVE-2026-109357. Severity: high. CVSS: 8.1. KEV: no. Product: LibreNMS (< 26.9.0). Brief: LDAP Filter Injection in LibreNMS Authentication Modules. Brief link: https://feed.craftedsignal.io/briefs/2026-10-librenms-ldap-injection/
What's new
- 1. added detection rule: Detect CVE-2026-109353 - SQL Injection Attempt in LibreNMS Oct 12, 20:30 via nvd
LibreNMS versions before 26.9.0 contain a critical vulnerability in the ldap-authorization and ad-authorization modules. The application fails to properly sanitize and escape usernames before incorporating them into LDAP search filters during the authentication process. Because the authentication logic only verifies the existence of a user rather than validating their credentials, the application is susceptible to LDAP filter injection. An unauthenticated attacker can exploit this by submitting a crafted username, such as a wildcard character, within the PHP_AUTH_USER field of an HTTP Basic Authorization header. This manipulation causes the LDAP backend to return a successful match for all users and groups, effectively bypassing authentication controls and granting the attacker administrative privileges within the LibreNMS instance.
Attack Chain
- Attacker identifies an internet-facing LibreNMS instance using ldap-authorization or ad-authorization.
- Attacker crafts an HTTP request containing the HTTP Basic Authorization header.
- Attacker populates the PHP_AUTH_USER parameter with an LDAP injection payload (e.g., a wildcard character '*').
- The LibreNMS server receives the request and parses the unescaped username for the LDAP search filter.
- The application executes the malformed LDAP query against the configured directory server.
- The directory server returns a positive match for the injected query, signaling user existence to the LibreNMS application.
- LibreNMS grants the attacker an active session based on the successful, albeit bypassed, authentication check.
- Attacker gains full administrative access to the network monitoring dashboard, enabling exfiltration of network topology data or further system exploitation.
Impact
Successful exploitation allows an unauthenticated, remote attacker to bypass authentication mechanisms and gain administrative control over the LibreNMS monitoring platform. This access provides visibility into sensitive network infrastructure, including device configurations, performance metrics, and network maps. Depending on the environment, an attacker could leverage this platform access to pivot into the internal network, modify monitoring alerts to conceal malicious activity, or gain further credentials stored within the monitoring system.
Recommendation
- Upgrade LibreNMS to version 26.9.0 or later immediately to patch the improper input validation in authentication modules.
- Monitor web server logs for HTTP requests with unusual characters or wildcard patterns in the PHP_AUTH_USER field to detect exploitation attempts.
- If upgrading is not immediately possible, restrict access to the LibreNMS web interface to trusted internal networks or implement additional pre-authentication controls (e.g., VPN or mTLS) to mitigate unauthenticated access.
- Audit web server access logs for anomalous, high-frequency authentication attempts originating from a single source or utilizing non-standard usernames.
Immediate actions
Upgrade LibreNMS to version 26.9.0 or later.
Threat Hunt
Search web logs for requests containing wildcard characters in the username field.
Data: webserver access logs
Mitigations
Upgrade to 26.9.0.
CVE-2026-109357
Detection coverage 2
Detect CVE-2026-109357 Exploitation - LDAP Filter Injection Attempt
highDetects exploitation attempts against CVE-2026-109357 by monitoring for HTTP requests containing common LDAP wildcard or injection characters in the PHP_AUTH_USER field.
Detect CVE-2026-109353 - SQL Injection Attempt in LibreNMS
highDetects potential exploitation attempts of CVE-2026-109353 where an array is passed to the notification_id parameter in notifications.inc.php
Detection queries are available on the platform. Get full rules →