{
  "id": "CVE-2025-54138",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-54138",
  "published_at": "2025-07-22T21:33:59.149Z",
  "title": "LibreNMS has Authenticated Local File Inclusion in ajax_form.php that Allows RCE",
  "vendor": "librenms",
  "product": "librenms",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "LibreNMS is an auto-discovering PHP/MySQL/SNMP based network monitoring which includes support for a wide range of network hardware and operating systems. LibreNMS versions 25.6.0 and below contain an architectural vulnerability in the ajax_form.php endpoint that permits Remote File Inclusion based on user-controlled POST input. The application directly uses the type parameter to dynamically include .inc.php files from the trusted path includes/html/forms/, without validation or allowlisting. This pattern introduces a latent Remote Code Execution (RCE) vector if an attacker can stage a file in this include path — for example, via symlink, development misconfiguration, or chained vulnerabilities. This is fixed in version 25.7.0.",
  "cwe": "CWE-98",
  "cpes": [
    "cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "librenms",
        "product": "librenms",
        "ranges": [
          "\u003c 25.7.0"
        ],
        "fixed_in": [
          "25.7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade librenms to 25.7.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/librenms/librenms/security/advisories/GHSA-gq96-8w38-hhj2"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/librenms/librenms/pull/17990"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/librenms/librenms/commit/ec89714d929ef0cf2321957ed9198b0f18396c81"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/librenms/librenms/releases/tag/25.7.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
