p PatchFirst

CVE-2026-82412

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 8.8 · High · EPSS 0.7%

Published
Updated

Stack: system

Affected products and versions

  • ntopng

    Versions
    • < 6.7.260717: Affected

    No fix published

  • ntopng Ubuntu:Pro:16.04:LTS

    Versions
    • 1.2.1+dfsg1-2ubuntu1
    • 2.0+dfsg1-1
    • 2.2+dfsg1-1
    • 2.2+dfsg1-1build1
    • 2.2+dfsg1-1ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ntopng Ubuntu:Pro:18.04:LTS

    Versions
    • 2.4+dfsg1-3
    • 2.4+dfsg1-4
    • 3.2+dfsg1-1
    • 3.2+dfsg1-1ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ntopng Ubuntu:20.04:LTS

    Versions
    • 3.8+dfsg1-2.1build3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ntopng Ubuntu:22.04:LTS

    Versions
    • 5.2.1+dfsg1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ntopng Ubuntu:24.04:LTS

    Versions
    • 5.2.1+dfsg1-1
    • 5.2.1+dfsg1-1ubuntu1
    • 5.2.1+dfsg1-1ubuntu3
    • 5.2.1+dfsg1-1ubuntu4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →