Skip to content
Heist/ feed
Back to feed
High

NSClient++ Authenticated Remote Code Execution via ExternalScripts API

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-34079
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 06:31 UTC · Revision 1

Source evidence

NSClient++ Authenticated Remote Code Execution via ExternalScripts API

core-osv · Original source

Published 2 Jul 2025, 19:27 UTC

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.

osv:CVE-2025-34079
Complete source record
{
  "id": "f95754378a31b6906e162d1c32abc6d6999ccc459e10e1a43bab54ce160eb645",
  "url": "https://osv.dev/vulnerability/CVE-2025-34079",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "NSClient++ Authenticated Remote Code Execution via ExternalScripts API",
    "summary": "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.",
    "evidence": "osv:CVE-2025-34079",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-34079",
      "aliases": [
        "CVE-2025-34079"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mickem/nscp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e1a3942cf2794b789198af6b191bd89e7aa050ea"
                },
                {
                  "last_affected": "e1a3942cf2794b789198af6b191bd89e7aa050ea"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:nsclient:nsclient\\+\\+:0.5.2.35:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.5.2.35"
                      },
                      {
                        "last_affected": "0.5.2.35"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.5.2.35"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-34079.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.434636942Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/34xxx/CVE-2025-34079.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-34079",
        "https://vulncheck.com/advisories/nsclient-localtoremote-system-compromise",
        "https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/windows/http/nscp_authenticated_rce.rb",
        "https://www.exploit-db.com/exploits/48360"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-306",
          "CWE-94"
        ],
        "cna_assigner": "VulnCheck",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.5.2.35"
                  },
                  {
                    "last_affected": "0.5.2.35"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/34xxx/CVE-2025-34079.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-34079",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493064,
  "published_at": "2025-07-02T19:27:41.046+00:00"
}