Description
A local privilege escalation vulnerability exists in NSClient++ 0.5.2.35 when both the web interface and ExternalScripts features are enabled. The configuration file (nsclient.ini) stores the administrative password in plaintext and is readable by local users. By extracting this password, an attacker can authenticate to the NSClient++ web interface (typically accessible on port 8443) and abuse the ExternalScripts plugin to inject and execute arbitrary commands as SYSTEM by registering a custom script, saving the configuration, and triggering it via the API.

This behavior is documented but insecure, as the plaintext credential exposure undermines access isolation between local users and administrative functions.
Published: 2025-07-02
Score: 7.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A local privilege escalation vulnerability exists in NSClient++ version 0.5.2.35 when the web interface and ExternalScripts features are enabled. The configuration file nsclient.ini stores the administrative password in plaintext and is readable by all local users. An attacker can extract this password, authenticate to the NSClient++ web interface (usually on port 8443), and use the ExternalScripts plugin to register and trigger custom scripts. Once a script is registered and the configuration is saved, the attacker can execute the script via the API, causing arbitrary command execution with SYSTEM privileges. The flaw exemplifies insecure credential storage (CWE-522) and allows unchecked privilege escalation.

Affected Systems

The vulnerability is present in the NSClient++ 0.5.2.35 product. No other product versions are identified as affected. The issue arises only when the web interface and ExternalScripts components are enabled in nsclient.ini.

Risk and Exploitability

The CVSS score of 7.3 classifies the vulnerability as high severity. The EPSS score of <1% indicates a very low probability of exploitation. The flaw is local; an attacker only needs to be able to read nsclient.ini, which is accessible to any local user. No remote network access is required. The exploit flow involves reading the plaintext password, logging into the web interface, registering a script via ExternalScripts, saving the configuration, and then triggering the script through the API to run commands as SYSTEM. The vulnerability is not listed in CISA's KEV catalog.

Generated by OpenCVE AI on June 18, 2026 at 06:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest NSClient++ update to eliminate plaintext password storage.
  • Disable the ExternalScripts feature and/or the web interface in nsclient.ini to prevent script registration.
  • Restrict file permissions on nsclient.ini so that only privileged accounts can read it, and consider moving credentials to a secure storage mechanism.

Generated by OpenCVE AI on June 18, 2026 at 06:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2025-19753 A local privilege escalation vulnerability exists in NSClient++ 0.5.2.35 when both the web interface and ExternalScripts features are enabled. The configuration file (nsclient.ini) stores the administrative password in plaintext and is readable by local users. By extracting this password, an attacker can authenticate to the NSClient++ web interface (typically accessible on port 8443) and abuse the ExternalScripts plugin to inject and execute arbitrary commands as SYSTEM by registering a custom script, saving the configuration, and triggering it via the API. This behavior is documented but insecure, as the plaintext credential exposure undermines access isolation between local users and administrative functions.
History

Tue, 25 Nov 2025 15:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-269
CWE-312

Wed, 17 Sep 2025 13:45:00 +0000

Type Values Removed Values Added
First Time appeared Nsclient
Nsclient nsclient\+\+
Weaknesses CWE-522
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 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


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

Type Values Removed Values Added
Description A local privilege escalation vulnerability exists in NSClient++ 0.5.2.35 when both the web interface and ExternalScripts features are enabled. The configuration file (nsclient.ini) stores the administrative password in plaintext and is readable by local users. By extracting this password, an attacker can authenticate to the NSClient++ web interface (typically accessible on port 8443) and abuse the ExternalScripts plugin to inject and execute arbitrary commands as SYSTEM by registering a custom script, saving the configuration, and triggering it via the API. This behavior is documented but insecure, as the plaintext credential exposure undermines access isolation between local users and administrative functions.
Title NSClient++ 0.5.2.35 Local Privilege Escalation via ExternalScripts and Web Interface
Weaknesses CWE-269
CWE-312
References
Metrics cvssV4_0

{'score': 7.3, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/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:20.995Z

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

Link: CVE-2025-34078

cve-icon Vulnrichment

Updated: 2025-07-02T20:31:57.950Z

cve-icon NVD

Status : Modified

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

Modified: 2026-06-17T09:13:26.040

Link: CVE-2025-34078

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-18T07:00:16Z

Weaknesses
  • CWE-522

    Insufficiently Protected Credentials