Command injection in ntopng scan_ports lets users run OS commands
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-77.
Summary
ntopng before 6.7.260717 passes the scan_ports parameter of its vulnerability scan endpoints into an nmap command without neutralizing shell metacharacters, which is an OS command injection (CWE-78). Any authenticated user, including users without administrator rights, can trigger it, and deployments with login disabled allow it without authentication. When nmap is installed, the injected commands run as the ntopng service account.
Written with Claude Haiku 5.5 from the sources below · 2026-11-05
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Update ntopng to version 6.7.260717, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-05
- Fix · CNA ntopng (ntop) Fixed in 6.7.260717
Timeline
- 2026-11-05 Threatist record created from CVE-2026-82413
References
More ntop vulnerabilities
- TI-2026-58397 ntopng: Missing Authorization on System Configuration Backup Download and Listing CVSS 3.1HIGH 8.8
- TI-2026-58894 ntopng before 6.7.260717 Missing Authorization on the Host Pool Bulk Delete Handler CVSS 4.0HIGH 7.1
- TI-2026-58396 ntopng's Missing Authorization in REST API Allows Non-Admin Users to Delete and Rename Arbitrary Tags CVSS 3.1HIGH 7.1
- TI-2026-85500 Stack buffer overflow in ntopng nDPI custom category detection CVSS 3.1MEDIUM 5.3
- TI-2026-28235 ntopng through 6.6 is vulnerable to Predictable Session Identifier which can lead to… CVSS 3.1CRITICAL 9.8
- TI-2020-09603 In nDPI through 3.2 Stable, the SSH protocol dissector has multiple KEXINIT integer… CVSS 3.1CRITICAL 9.8
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences