---
id: "CVE-2026-82413"
kind: "vulnerability"
aliases: ["CVE-2026-82413"]
title: "ntopng: scan port parameter lets authenticated users run OS commands"
severity: "high"
cvss: 8.8
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["linux", "nmap", "ntopng", "package", "self-hosted"]
not_affected_if: ["nmap-not-installed", "patched-version"]
published_at: "2026-11-05T17:18:21+00:00"
first_seen_at: "2026-11-05T17:40:05+00:00"
updated_at: "2026-11-05T17:42:04+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-82413", "first_seen_at": "2026-11-05T17:40:05+00:00"}]
exploit_sources: []
---

# ntopng: scan port parameter lets authenticated users run OS commands

ntopng's REST endpoints for scheduling vulnerability scans pass the scan_ports value unsanitized into an nmap shell command. An attacker who can make an API request, even as a non-admin user or without login when login is disabled, can run arbitrary operating-system commands as the ntopng service account.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed ntopng version and compare it with the fixed version below.
- Confirm whether nmap is installed on the host, since the injection needs nmap present.
- Check whether login is disabled in the ntopng configuration, which exposes the endpoints without authentication.

## Fix

- ntopng: upgrade to `6.7.260717` or later.

## Timeline

- 2026-11-05T17:40:05+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-82413

## Documents

- [advisory] Vendor advisory: github.com https://github.com/ntop/ntopng/security/advisories/GHSA-9xj6-f266-r46p
- [fix] Patch: github.com https://github.com/ntop/ntopng/commit/fda269014c6a8a445c2c893cf9d2fad0128364a5

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
