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

Published Sep 21, 2026
·
Updated

ntopng is a web-based network traffic monitoring application. Prior to 6.7.260717, the vulnerability-scan endpoints scripts/lua/rest/v2/add/host/toscan.lua and scripts/lua/rest/v2/exec/host/schedulevulnerabilityscan.lua accept the scanports parameter without an administrator gate and pass it through validateSingleWord, which permits shell metacharacters. scripts/lua/modules/vulnerabilityscan/vsutils.lua then concatenates scanports into an nmap command in nmapscanhost 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.

Affected Software

1 affected component
ntopng ntopng<6.7.260717

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ntopng to a version that resolves this vulnerability.

    Fixed in 6.7.260717

Event History

Sep 21, 2026
CVE Published
via MITRE·03:56 PM
Data Sourced
via MITRE·03:56 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

ntopng deployments prior to 6.7.260717 are exposed when nmap is available. The vulnerable REST endpoints do not require an administrator role, so any authenticated non-admin account can reach them.

2

What does an attacker need to execute commands?

An attacker can supply shell metacharacters through the scan_ports parameter to cause commands to run as the ntopng process account. They need either an authenticated non-admin ntopng account or a way to induce a logged-in user’s browser to send a GET request to the affected endpoint.

3

Does CSRF protection prevent browser-based exploitation?

No. The affected endpoints accept GET requests, while ntopng's CSRF validation applies to POST request bodies; an attacker can therefore trigger the request through a logged-in user's browser without having ntopng credentials.

4

What is the remediation?

Upgrade ntopng to version 6.7.260717, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203