CVE-2026-82413

ntopng: authenticated (non-admin) OS command injection via the vulnerability-scan `scan_ports` parameter (`nmap` argument reaches `popen`)

Published Nov 5, 2026 CVSS 3.1 · 8.8 High EPSS 2.0% KEV · Not listed
Description
ntopng is a web-based network traffic monitoring application. Prior to 6.7.260717, scripts/lua/rest/v2/add/host/to_scan.lua and scripts/lua/rest/v2/exec/host/schedule_vulnerability_scan.lua accept scan_ports from any authenticated session, including non-administrator users, while deployments with login disabled expose the same request without authentication. The endpoints validate scan_ports with validateSingleWord, which permits shell metacharacters, and persist the value for the minute vulnerability-scan scheduler. The scheduler concatenates the value into an nmap command through nmap_scan_host and executes it through ntop.execCmd or ntop.execCmdAsync using popen. For the tcp_portscan and cve modules, a preliminary nmap -sn probe must first report the target as up before the attacker-controlled ports are used. When nmap is installed, this command injection allows arbitrary operating-system commands to execute as the ntopng service account without further user interaction. This issue is fixed in version 6.7.260717.

Analysis

AI-generated

Technical impact

ntopng versions earlier than 6.7.260717 allow authenticated non‑administrators to inject arbitrary operating‑system commands through the scan_ports parameter used by the vulnerability‑scan API. The input is validated only with a function that permits shell metacharacters and is passed directly into an nmap command executed via popen. The flaw is a classic OS command injection, identified by CWE-77 and CWE-78. If nmap is present, an attacker can execute any command as the ntopng service account, potentially compromising the entire host.

Affected Systems

The affected product is ntop’s ntopng network traffic monitoring application. Any deployment using ntopng prior to version 6.7.260717 is vulnerable. Vulnerable endpoints allow the exploit from any authenticated session, including non‑administrator users, and even from unauthenticated requests if login is disabled.

Risk and Exploitability

The vulnerability has a CVSS score of 8.8, indicating high severity. The EPSS score is 1%, indicating a very low but nonzero probability of exploitation, and the issue is not listed in CISA KEV. The attack vector requires that the attacker has at least authenticated access to configure a vulnerability scan and that nmap is installed on the host. Successful exploitation would allow arbitrary command execution with the privileges of the ntopng service account, leading to full system compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Patch ntopng to version 6.7.260717 or later to remove the vulnerable code paths.
  • If a patch cannot be applied immediately, restrict the vulnerability‑scan API to administrator‑level users or disable the endpoints entirely to prevent unauthenticated or non‑admin use.
  • Ensure that nmap is not installed or that the ntopng service account has limited permissions, reducing the impact of any residual injection attempts.

Generated by OpenCVE AI on November 6, 2026 at 14:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ntop
Ntop ntopng
Vendors & Products Ntop
Ntop ntopng
Type Values Removed Values Added
Description ntopng is a web-based network traffic monitoring application. Prior to 6.7.260717, scripts/lua/rest/v2/add/host/to_scan.lua and scripts/lua/rest/v2/exec/host/schedule_vulnerability_scan.lua accept scan_ports from any authenticated session, including non-administrator users, while deployments with login disabled expose the same request without authentication. The endpoints validate scan_ports with validateSingleWord, which permits shell metacharacters, and persist the value for the minute vulnerability-scan scheduler. The scheduler concatenates the value into an nmap command through nmap_scan_host and executes it through ntop.execCmd or ntop.execCmdAsync using popen. For the tcp_portscan and cve modules, a preliminary nmap -sn probe must first report the target as up before the attacker-controlled ports are used. When nmap is installed, this command injection allows arbitrary operating-system commands to execute as the ntopng service account without further user interaction. This issue is fixed in version 6.7.260717.
Title ntopng: authenticated (non-admin) OS command injection via the vulnerability-scan `scan_ports` parameter (`nmap` argument reaches `popen`)
Weaknesses CWE-77
CWE-78
CWE-88
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'}

Weaknesses
  • CWE-77

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

  • CWE-78

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

  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 4:51 PM
Reserved
Aug 28, 2026, 10:00 PM
Status
Deferred
Published
Nov 5, 2026, 5:18 PM
Modified
Nov 9, 2026, 5:17 PM