GHSA-w5r2-gvgf-mpm8

Suggest an improvement
Source
https://github.com/advisories/GHSA-w5r2-gvgf-mpm8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/10/GHSA-w5r2-gvgf-mpm8/GHSA-w5r2-gvgf-mpm8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w5r2-gvgf-mpm8
Aliases
Published
2019-10-11T18:43:13Z
Modified
2024-02-16T08:24:07.367607Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Improper Encoding or Escaping of Output and Injection in LibreNMS
Details

An issue was discovered in LibreNMS 1.50.1. The scripts that handle graphing options (includes/html/graphs/common.inc.php and includes/html/graphs/graphs.inc.php) do not sufficiently validate or encode several fields of user supplied input. Some parameters are filtered with mysqlirealescape_string, which is only useful for preventing SQL injection attacks; other parameters are unfiltered. This allows an attacker to inject RRDtool syntax with newline characters via the html/graph.php and html/graph-realtime.php scripts. RRDtool syntax is quite versatile and an attacker could leverage this to perform a number of attacks, including disclosing directory structure and filenames, disclosing file content, denial of service, or writing arbitrary files. NOTE, relative to CVE-2019-10665, this requires authentication and the pathnames differ.

Database specific
{
    "nvd_published_at": "2019-09-09T14:15:00Z",
    "cwe_ids": [
        "CWE-116",
        "CWE-74"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2019-09-25T12:52:31Z"
}
References

Affected packages

Packagist / librenms/librenms

Package

Name
librenms/librenms
Purl
pkg:composer/librenms/librenms

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.50.1
Fixed
1.53

Affected versions

1.*

1.50.1
1.51
1.52