CVE-2025-34079

NSClient++ Authenticated Remote Code Execution via ExternalScripts API

State
Published
Severity
7.5 High
Published
Jul 2, 2025
Updated
Apr 7, 2026
Reserved
Apr 15, 2025

Read the record on cve.org

Description

An authenticated remote code execution vulnerability exists in NSClient++ version 0.5.2.35 when the web interface and ExternalScripts module are enabled. A remote attacker with the administrator password can authenticate to the web interface (default port 8443), inject arbitrary commands as external scripts via the /settings/query.json API, save the configuration, and trigger the script via the /query/{name} endpoint. The injected commands are executed with SYSTEM privileges, enabling full remote compromise.

This capability is an intended feature, but the lack of safeguards or privilege separation makes it risky when exposed to untrusted actors.

Scores

CVSSScoreVectorSource
4.07.5 HighCVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')
  • CWE-306 Missing Authentication for Critical Function

Affected Products

ProductVersions
NSClient++NSClient++
  • 0.5.2.35Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.