nday
CVE-2018-20434

LibreNMS 1.46 allows remote attackers to execute arbitrary OS commands by using the…Title composed by nday; the CVE record has none.

A public PoC appeared 42 days after disclosure. nday has no fix record for it yet; that does not mean no patch exists. Listed by 2 of 4 PoC sources: exploitdb and metasploit. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

command injection
CWE-78, stated by NVD's analysts
remote, unauthenticated
AV:N, PR:N, UI:N in CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.0) from NVD's analysts
network
AV:N in CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.0) from NVD's analysts
no authentication required
PR:N in CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.0) from NVD's analysts
no user interaction
UI:N in CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.0) from NVD's analysts
Metasploit
Metasploit modules exploit/linux/http/librenms_addhost_cmd_inject
Exploit-DB
Exploit-DB entries 46970, 47044
stage
POC
disclosed
disclosure → PoC
T+42d POC is date-only
cvss
no score yet

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2019-04-24T20:05Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2019-06-05, date only +1 more
metasploit
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Event log

+DISdisclosed

CVE record published by mitre.

src cvelist · nday , bulk import · raw
{
  "id": 66182,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2018-20434",
  "occurred_at": "2019-04-24T20:05:43Z",
  "observed_at": "2026-11-12T23:01:25.305088Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2019-04-24T20:05:43.000Z",
    "assigner_short_name": "mitre"
  }
}
2019-06-05date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “LibreNMS - addhost Command Injection (Metasploit)” (EDB-46970). Verified by Exploit-DB.

src exploitdb 46970 · nday , bulk import · raw
{
  "id": 24962,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/46970",
  "occurred_at": "2019-06-05T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "46970",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/46970",
    "file": "exploits/linux/remote/46970.rb",
    "kind": "exploit",
    "tags": [
      "Metasploit Framework (MSF)"
    ],
    "type": "remote",
    "title": "LibreNMS - addhost Command Injection (Metasploit)",
    "author": "Metasploit",
    "edb_id": 46970,
    "cve_ids": [
      "CVE-2018-20434"
    ],
    "platform": "linux",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2019-06-05",
    "date_updated": "2019-06-05",
    "date_published": "2019-06-05"
  }
}
2019-06-28date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “LibreNMS 1.46 - 'addhost' Remote Code Execution” (EDB-47044). Verified by Exploit-DB.

src exploitdb 47044 · nday , bulk import · raw
{
  "id": 34517,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/47044",
  "occurred_at": "2019-06-28T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "47044",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/47044",
    "file": "exploits/php/webapps/47044.py",
    "kind": "exploit",
    "tags": [],
    "type": "webapps",
    "title": "LibreNMS 1.46 - 'addhost' Remote Code Execution",
    "author": "Askar",
    "edb_id": 47044,
    "cve_ids": [
      "CVE-2018-20434"
    ],
    "platform": "php",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2019-06-28",
    "date_updated": "2019-06-28",
    "date_published": "2019-06-28"
  }
}
time unknownsource gave no time
+POCpublic PoC

Metasploit has module exploit/linux/http/librenms_addhost_cmd_inject (LibreNMS addhost Command Injection). The source gives no release time for the module.

src metasploit exploit/linux/http/librenms_addhost_cmd_inject · nday , bulk import · raw
{
  "id": 50582,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/librenms_addhost_cmd_inject.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/linux/http/librenms_addhost_cmd_inject",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/librenms_addhost_cmd_inject.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/linux/http/librenms_addhost_cmd_inject.rb",
    "rank": 600,
    "check": false,
    "title": "LibreNMS addhost Command Injection",
    "cve_ids": [
      "CVE-2018-20434"
    ],
    "fullname": "exploit/linux/http/librenms_addhost_cmd_inject",
    "rank_name": "excellent",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2025-06-23 12:43:46 +0000",
    "vuln_disclosure_date": "2018-12-16"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.