# LibreNMS has Authenticated Remote File Inclusion in ajax_form.php that Allows RCE

Advisory record · `GHSA-gq96-8w38-hhj2`

- **Identifiers:** `GHSA-gq96-8w38-hhj2` · `CVE-2025-54138` · `PKSA-q97j-hw3m-d3vd`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-98](https://cwe.mitre.org/data/definitions/98.html)
- **Tags:** [File inclusion](https://agentprime.io/advisories/tag/file-inclusion.md)
- **Published:** 21 Jul 2025
- **Updated:** 23 Jul 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 21 Jul 2025, 21:10 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `librenms/librenms` (Packagist): affected `<25.7.0`; fixed in `25.7.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> LibreNMS version 25.6.0 is affected by a flaw in the ajax_form.php endpoint, where the POST parameter "type" is used to include files without validation. An authenticated attacker who can place a file in the included forms directory, such as through a symlink, could achieve remote code execution as the librenms user. The source gives few details on how such a file would be staged. Upgrade to LibreNMS 25.7.0 or later.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.012, the 69th percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:27 UTC: First seen by agentprime
- 31 Oct 2026, 14:27 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-gq96-8w38-hhj2)

## Sources

- [GitHub Advisory Database: GHSA-gq96-8w38-hhj2](https://github.com/advisories/GHSA-gq96-8w38-hhj2)
- [OSV: GHSA-gq96-8w38-hhj2](https://osv.dev/vulnerability/GHSA-gq96-8w38-hhj2)
- <https://github.com/librenms/librenms/security/advisories/GHSA-gq96-8w38-hhj2>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54138>
- <https://github.com/librenms/librenms/pull/17990>
- <https://github.com/librenms/librenms/commit/ec89714d929ef0cf2321957ed9198b0f18396c81>
- <https://github.com/librenms/librenms>
- <https://github.com/librenms/librenms/releases/tag/25.7.0>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-gq96-8w38-hhj2>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-gq96-8w38-hhj2/>. Everything for agents: <https://agentprime.io/llms.txt>.
