CVE-2017-16759: Librenms/librenms LibreNMS Arbitrary File Read Vulnerability
MODERATECVE-2017-16759 is a MODERATE (CVSS 5.9) librenms arbitrary file read vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Librenms/librenms libraries in the Packagist ecosystem. The issue involves librenms arbitrary file read. Remediation is available by upgrading affected packages to version 1.31.
CVE-2017-16759 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2017-16759
To remediate this vulnerability, upgrade all affected Librenms/librenms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade librenms/librenms to 1.31
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for librenms/librenms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2017-16759, inspect your project dependencies for Librenms/librenms:
inspect dependencies for librenms/librenms
Analyze the terminal output to locate any version of Librenms/librenms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.31), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Librenms/librenms, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2017-16759 Affected Librenms/librenms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
librenms/librenms
|
Packagist |
< 1.31
|
1.31
|
References
Frequently Asked Questions
What is CVE-2017-16759?
Which Librenms/librenms versions are affected?
What version fixes CVE-2017-16759?
Is librenms/librenms affected?
What is the CVSS score of CVE-2017-16759?
What CWE is associated with CVE-2017-16759?
How can I check Packagist dependencies for CVE-2017-16759?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4ccx-wjqp-5fww",
"modified" : "2025-12-05T21:03:47Z",
"published" : "2022-05-13T01:44:10Z",
"aliases" : [ "CVE-2017-16759" ],
"summary" : "LibreNMS Arbitrary File Read",
"details" : "The installation process in LibreNMS before 2017-08-18 allows remote attackers to read arbitrary files, related to html/install.php.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "librenms/librenms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.31"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-16759"
}, {
"type" : "WEB",
"url" : "https://github.com/librenms/librenms/pull/7184"
}, {
"type" : "WEB",
"url" : "https://github.com/librenms/librenms/commit/7887b2e1c7158204ac69ca43beafce66e4d3a3b4"
}, {
"type" : "WEB",
"url" : "https://github.com/librenms/librenms/commit/d3094fa6578b29dc34fb5a7d0bd6deab49ecc911"
}, {
"type" : "WEB",
"url" : "https://blog.librenms.org/2017/08/22/librenms-security-fix-during-the-installation-process"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/librenms/librenms"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-26T18:00:07Z",
"nvd_published_at" : "2017-11-09T22:29:00Z"
}
}