CVE-2025-34078

NSClient++ 0.5.2.35 Local Privilege Escalation via ExternalScripts and Web Interface

Published Jul 2, 2025 CVSS 4.0 · 7.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
Weaknesses CWE-269
CWE-312
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'}

Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-522

    Insufficiently Protected Credentials

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Apr 7, 2026, 2:09 PM
Reserved
Apr 15, 2025, 7:15 PM
Status
Modified
Published
Jul 2, 2025, 8:15 PM
Modified
Jun 17, 2026, 9:13 AM