Description
ntopng is a web-based network traffic monitoring application. Prior to 6.7.260717, the vulnerability-scan endpoints scripts/lua/rest/v2/add/host/to_scan.lua and scripts/lua/rest/v2/exec/host/schedule_vulnerability_scan.lua accept the scan_ports parameter without an administrator gate and pass it through validateSingleWord, which permits shell metacharacters. scripts/lua/modules/vulnerability_scan/vs_utils.lua then concatenates scan_ports into an nmap command in nmap_scan_host and executes the command through ntop.execCmd or ntop.execCmdAsync and popen. Any authenticated non-admin user can execute operating-system commands as the ntopng process account when nmap is available. Because the endpoints accept GET requests while ntopng's CSRF validation applies to POST request bodies, an attacker can also trigger the command through a logged-in user's browser without possessing ntopng credentials. This issue is fixed in version 6.7.260717.
Published: 2026-09-21
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

ntopng’s vulnerability‑scan REST API accepts a scan_ports parameter that is not validated beyond a single‑word check, allowing shell metacharacters to be injected. The parameter is then concatenated into an nmap command and executed by the ntopng process using ntop.execCmd or similar functions, enabling any authenticated user without administrative privileges to run arbitrary operating‑system commands. Additionally, the use of GET requests bypasses CSRF protection, meaning a logged‑in user’s browser can trigger the injection without possessing ntopng credentials. This flaw directly leads to remote code execution on the host running ntopng, fully compromising confidentiality, integrity, and availability of that system.

Affected Systems

The vulnerability affects ntop’s ntopng product, specifically all releases prior to version 6.7.260717. Users of ntopng installations running any earlier version must ensure they are aware of this issue.

Risk and Exploitability

The CVSS score of 8.8 indicates a high‑severity flaw. While EPSS is not available, the lack of a KEV listing does not diminish the risk for exposed systems. The flaw can be exercised through the exposed REST API endpoints and via CSRF from a browser, requiring only authentication as a non‑administrator. Because the attacker can execute commands as the ntopng process account, successful exploitation allows full control over the host.

Generated by OpenCVE AI on September 21, 2026 at 17:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade ntopng to version 6.7.260717 or newer, which removes the vulnerable code paths.
  • If an upgrade is not immediately possible, restrict access to the vulnerability‑scan REST endpoints to administrator users only or disable the scan_ports parameter entirely for non‑administrators.
  • Disable or relocate the Nmap executable so ntopng cannot invoke it, preventing the construction of the command that leads to injection.

Generated by OpenCVE AI on September 21, 2026 at 17:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 21 Sep 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Ntop
Ntop ntopng
Vendors & Products Ntop
Ntop ntopng

Mon, 21 Sep 2026 16:00:00 +0000

Type Values Removed Values Added
Description ntopng is a web-based network traffic monitoring application. Prior to 6.7.260717, the vulnerability-scan endpoints scripts/lua/rest/v2/add/host/to_scan.lua and scripts/lua/rest/v2/exec/host/schedule_vulnerability_scan.lua accept the scan_ports parameter without an administrator gate and pass it through validateSingleWord, which permits shell metacharacters. scripts/lua/modules/vulnerability_scan/vs_utils.lua then concatenates scan_ports into an nmap command in nmap_scan_host and executes the command through ntop.execCmd or ntop.execCmdAsync and popen. Any authenticated non-admin user can execute operating-system commands as the ntopng process account when nmap is available. Because the endpoints accept GET requests while ntopng's CSRF validation applies to POST request bodies, an attacker can also trigger the command through a logged-in user's browser without possessing ntopng credentials. This issue is fixed in version 6.7.260717.
Title ntopng: Remote Code Execution via OS Command Injection in Vulnerability-Scan REST API
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-21T15:56:26.703Z

Reserved: 2026-08-28T22:00:43.514Z

Link: CVE-2026-82412

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-21T16:17:24.503

Modified: 2026-09-21T16:17:24.503

Link: CVE-2026-82412

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-21T17:30:17Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')