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.
Published: 2025-07-02
Score: 7.5 High
EPSS: 73.1% High
KEV: No
Impact: Remote Code Execution (SYSTEM)
Action: Patch Now
AI Analysis

Impact

NSClient++ version 0.5.2.35 contains a feature that allows authenticated administrators to inject arbitrary scripts through the ExternalScripts library. An attacker who can submit commands to the /settings/query.json endpoint can cause those commands to be executed with SYSTEM privileges when the script is later triggered via /query/{name}. This flaw is a CWE-306 (Missing Authentication for Privileged Function) and CWE-94 (Code Injection) vulnerability that enables a malicious actor to take full control of the host with the highest local privilege level.

Affected Systems

The vulnerability is present in NSClient++ 0.5.2.35 when the web interface on the default HTTPS port 8443 and the ExternalScripts module are enabled. Only this specific version is known to be affected; later releases are not listed as vulnerable.

Risk and Exploitability

The CVSS score of 7.5 reflects a high severity due to the potential for full system compromise. An EPSS score of 73% indicates that the exploit is likely to be used. The flaw is not listed in the CISA KEV catalog, but it can be exploited over the network by anyone who can authenticate using an administrator account. The attack vector is remote, relying on valid credentials and the use of the web API; it requires web access to port 8443 and the ExternalScripts functionality, with no additional preconditions beyond basic authenticated access.

Generated by OpenCVE AI on April 28, 2026 at 22:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Disable the NSClient++ web interface and ExternalScripts module when they are not required.
  • Apply a firewall rule to limit inbound traffic on port 8443 to trusted hosts or subnets only.
  • Update NSClient++ to the latest available release that removes or secures the ExternalScripts API, or apply any vendor‑provided patch once released.
  • Implement rigorous input validation and enforce proper authentication on the ExternalScripts API to mitigate CWE-94 and CWE-306 weaknesses.

Generated by OpenCVE AI on April 28, 2026 at 22:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2025-19752 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.
History

Tue, 16 Sep 2025 20:00:00 +0000

Type Values Removed Values Added
First Time appeared Nsclient
Nsclient nsclient\+\+
CPEs cpe:2.3:a:nsclient:nsclient\+\+:0.5.2.35:*:*:*:*:*:*:*
Vendors & Products Nsclient
Nsclient nsclient\+\+
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Wed, 02 Jul 2025 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 02 Jul 2025 19:45:00 +0000

Type Values Removed Values Added
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.
Title NSClient++ Authenticated Remote Code Execution via ExternalScripts API
Weaknesses CWE-306
CWE-94
References
Metrics cvssV4_0

{'score': 7.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Nsclient Nsclient\+\+
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-04-07T14:09:21.778Z

Reserved: 2025-04-15T19:15:22.550Z

Link: CVE-2025-34079

cve-icon Vulnrichment

Updated: 2025-07-02T19:42:28.775Z

cve-icon NVD

Status : Analyzed

Published: 2025-07-02T20:15:29.963

Modified: 2025-09-16T19:53:27.970

Link: CVE-2025-34079

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-28T22:45:25Z

Weaknesses