Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2018-20434 EUVD-2022-2691GHSA-62q7-qj6g-gvr7

LibreNMS arbitrary OS commands execution

Published Apr 24, 2019 · Updated Aug 5, 2024 · Assigned by mitre

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.

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 2

GitHub 1 repository

  • mhaskar/CVE-2018-20434 ★ 9 · Apr 25, 2019

    The official exploit code for LibreNMS v1.46 Remote Code Execution CVE-2018-20434

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist librenms/librenms 1.46 — GHSA-62q7-qj6g-gvr7

References