CVE-2026-48687: FastNetMon Community Edition - Command Injection
- Cve: CVE-2026-48687
- Name: FastNetMon Community Edition - Command Injection
- Description: FastNetMon Community Edition through 1.2.9 contains an OS command injection vulnerability in the Juniper router integration plugin. The _log() function in src/juniper_plugin/fastnetmon_juniper.php (lines 117-118) constructs shell commands by concatenating the $msg parameter directly into exec() calls: exec("echo `date` \"- {FASTNETMON] - " . $msg . " \" >> " . $FILE_LOG_TMP). The $msg variable contains unsanitized data derived from command-line arguments argv[1] through argv[3], which represent the attack IP address, direction, and power. While FastNetMon's C++ core currently passes IP addresses via inet_ntoa() (which only produces safe dotted-decimal notation), the PHP script performs no input validation or shell escaping. If the script is invoked directly, by another orchestration system, or if future code changes pass string-sourced IPs, arbitrary commands can be injected. The correct fix is to replace exec() with file_put_contents() or use escapeshellarg() on all parameters.
- Impact: Attackers can execute arbitrary OS commands, potentially leading to full system compromise.
- Remediation: Update to a version that replaces exec() with safe functions or applies proper input sanitization; if unavailable, apply input validation and use escapeshellarg() on all parameters.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirements: Attacker must invoke the PHP script directly or via orchestration with crafted input
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01645
- Epss percentile: 0.76947
- Assignee: [email protected]
- Published at: 2026-05-26T16:16:26Z
- Age in days: 182
- Modified at: 2026-07-21T19:10:00Z
- Public exploits total: 1
- References total: 3
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-48687
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://lorikeetsecurity.com/blog/fastnetmon-cve-2026-48687-juniper-cmd-injection | nvd | 2026-05-26 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| pavel-odintsov:fastnetmon | <= 1.2.9 | no | nvd | /v1/products/pavel-odintsov/fastnetmon |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-05-26
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts