CVE-2026-48687
JSON

8.1high

FastNetMon Community Edition through 1.2.9 contains an OS command injection vulnerability in the Juniper router integration plugin.

Severity
8.1high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.65% (higher than 77% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
pavel-odintsov fastnetmonup to 1.2.9NVD

All scores

CISA-ADP8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

FastNetMon Community Edition hasta la versión 1.2.9 contiene una vulnerabilidad de inyección de comandos del sistema operativo en el plugin de integración del router Juniper. La función _log() en src/juniper_plugin/fastnetmon_juniper.php (líneas 117-118) construye comandos de shell concatenando el parámetro $msg directamente en las llamadas a exec(): exec('echo 'date' \"- {FASTNETMON] - ' . $msg . ' \" >> ' . $FILE_LOG_TMP). La variable $msg contiene datos no saneados derivados de los argumentos de línea de comandos argv[1] a argv[3], que representan la dirección IP de ataque, la dirección y la potencia. Si bien el núcleo C++ de FastNetMon actualmente pasa direcciones IP a través de inet_ntoa() (que solo produce notación decimal con puntos segura), el script PHP no realiza validación de entrada ni escape de shell. Si el script se invoca directamente, por otro sistema de orquestación, o si futuros cambios de código pasan direcciones IP de origen de cadena, se pueden inyectar comandos arbitrarios. La solución correcta es reemplazar exec() con file_put_contents() o usar escapeshellarg() en todos los parámetros.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-48687 changed 2026-05-27CVE Terms of Use
NVDCVE-2026-48687 changed 2026-07-21Public domain