# CVE-2026-84190: LibreNMS before 26.5.0 Remote Code Execution via AboutController

The Markdown version of <https://upatch.dev/cve/CVE-2026-84190>. Last updated 25 Nov 2026.

## At a glance

CVE-2026-84190 is rated High 8.7 (CVSS 4.0, CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X). It affects LibreNMS (librenms) and was published on 1 Sept 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.9%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-84190-exec-block` mitigates it, and is vetted (merged into the registry).

A upatch is a signed BPF program that shirudo loads into a running Linux kernel to block the code path this CVE's exploit takes. It holds the line until the fix ships; it does not replace patching.

## The vulnerability

CVE-2026-84190 (GHSA-jf24-8g2h-2wg7) is a remote code execution vulnerability in LibreNMS versions before 26.5.0. In `app/Http/Controllers/AboutController.php`, `AboutController::index()` reads the `snmpget` configuration value (`LibrenmsConfig::get('snmpget', 'snmpget')`) and concatenates it into `shell_exec(LibrenmsConfig::get('snmpget', 'snmpget') . ' -V 2>&1')`. In `LibreNMS/Util/DynamicConfigItem.php`, `checkValue()` for the `executable` setting type writes `$value == $this->sanitizePath($value)` with `==` instead of `=`, discarding the return value of `sanitizePath()` and only checking `is_file($value) && is_executable($value)`. An authenticated administrator can point `snmpget` (via `PUT /settings/snmpget`) to an executable file placed in a writable directory such as `/tmp` and trigger execution by requesting `/about`.

### Official description

LibreNMS versions before 26.5.0 contain a remote code execution vulnerability in the AboutController where the snmpget configuration parameter is passed to shell_exec() without proper validation. An authenticated administrator can modify the snmpget configuration to point to a malicious executable file and trigger code execution by accessing the /about endpoint.

## What the upatch does

The BPF LSM program `cve_2026_84190_exec` attaches to `lsm/bprm_check_security` and returns `-EPERM` when both conditions hold:

| Check        | Condition                                                                                                                                                    |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Target path  | `bprm->filename` starts with `/tmp/` or `/var/tmp/`, or `bprm->file->f_path.dentry` has an ancestor directory named `tmp` within 6 levels                    |
| Process tree | The current task or one of its ancestors (up to 6 levels via `real_parent`) has a `comm` or `exe_file` name starting with `php` (`php`, `php-fpm*`, `php8*`) |

Normal system binaries used by LibreNMS (`/usr/bin/snmpget`, `/usr/bin/rrdtool`, `/usr/bin/python3`, `/usr/bin/git`, `/bin/sh`) reside under `/usr` and `/bin`, so they pass the path check immediately without walking the task hierarchy.

The `refused` per-CPU array map counts refused executions at key 0.

The policy: [`cve-2026-84190-exec-block.bpf.c`](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-84190), 132 lines of BPF C attached at `lsm/bprm_check_security`, licensed GPL-2.0 OR BSD-2-Clause.

## Side effects

- PHP processes and shells they spawn cannot execute binaries or scripts located inside `/tmp` or `/var/tmp`.
- Legitimate LibreNMS tools installed in standard system paths (`/usr/bin`, `/bin`, `/usr/local/bin`) continue to work normally.
- Non-PHP processes on the machine can still execute files in `/tmp` and `/var/tmp`.

## Preemption model and cost

The program holds no state other than the `refused` per-CPU counter updated with `__sync_fetch_and_add`, making it safe under all kernel preemption models including `PREEMPT_LAZY`, `PREEMPT_DYNAMIC`, and `PREEMPT_RT`. On every `execve`, the program checks the first bytes of `bprm->filename` and walks at most 6 parent dentries looking for a 3-byte parent directory named `tmp`; executions of binaries under `/usr` or `/bin` return `0` without inspecting the task hierarchy.

## Affected versions

LibreNMS:

| Affected                         | Fixed in |
| -------------------------------- | -------- |
| Before 26.5.0 (including 26.3.1) | 26.5.0   |

In 26.5.0 (commit `f6a6e23390e39af7c0630da8ee0fc6feb20e8cd6`, pull request #19612), `AboutController::index()` replaces the `shell_exec()` call with `$version->netSnmp()` in `LibreNMS\Util\Version`.

## How it was tested

On LibreNMS 26.3.1, the loaded upatch refused execution of a probe script in /tmp configured as the snmpget binary when requesting /about (returning EPERM), while execution succeeded before loading and after unloading.

- **Tested:** 25 Nov 2026
- **Target:** LibreNMS 26.3.1 AboutController on PHP, snmpget set to a probe script in /tmp, loopback only
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Distribution:** Ubuntu 26.04

### Results

| State           | Probe script in /tmp executed via /about |
| --------------- | ---------------------------------------- |
| Before loading  | yes (reached)                            |
| Upatch loaded   | no (Operation not permitted)             |
| After unloading | yes (reached)                            |

## How to apply

Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.

Build and sign:

```sh
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-84190
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-84190-1.0.0.bee oci://<registry>/<namespace>/cve-2026-84190 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-84190-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>
```

## Review

- Contributors: romanlab.
- Reviewers: none recorded yet.

## Sources and links

- [GitHub Security Advisory GHSA-jf24-8g2h-2wg7](https://github.com/librenms/librenms/security/advisories/GHSA-jf24-8g2h-2wg7)
- [CVE-2026-84190 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-84190)
- [Fix pull request #19612](https://github.com/librenms/librenms/pull/19612) and [commit f6a6e23390e39af7c0630da8ee0fc6feb20e8cd6](https://github.com/librenms/librenms/commit/f6a6e23390e39af7c0630da8ee0fc6feb20e8cd6)
- [LibreNMS 26.5.0 release](https://github.com/librenms/librenms/releases/tag/26.5.0) and [LibreNMS 26.3.1 release](https://github.com/librenms/librenms/releases/tag/26.3.1)

### Links

- [CVE-2026-84190 on upatch.dev](https://upatch.dev/cve/CVE-2026-84190) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-84190)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-84190)
- [CWE-77](https://cwe.mitre.org/data/definitions/77.html)
- Upatch source: [upatches/cve-2026-84190](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-84190)

### More references from NVD (2)

- [github.com](https://github.com/librenms/librenms/security/advisories/GHSA-jf24-8g2h-2wg7)
- [vulncheck.com](https://www.vulncheck.com/advisories/librenms-before-26.5.0-remote-code-execution-via-aboutcontroller)
