Skip to content

LibreNMS arbitrary OS commands execution

Critical severity GitHub Reviewed Published May 24, 2022 to the GitHub Advisory Database • Updated Apr 24, 2024

Package

composer librenms/librenms (Composer)

Affected versions

= 1.46

Patched versions

None

Description

LibreNMS 1.46 allows remote attackers to execute arbitrary OS commands by using the $_POST['community'] parameter to html/pages/addhost.inc.php during creation of a new device, and then making a /ajax_output.php?id=capture&format=text&type=snmpwalk&hostname=localhost request that triggers html/includes/output/capture.inc.php command mishandling.

References

Published by the National Vulnerability Database Apr 24, 2019
Published to the GitHub Advisory Database May 24, 2022
Reviewed Apr 24, 2024
Last updated Apr 24, 2024

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2018-20434

GHSA ID

GHSA-62q7-qj6g-gvr7

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.