CVE-2025-34079 NSClient++ Authenticated Remote Code Execution via ExternalScripts API

High 7.5 Published Updated

Authenticated attackers can execute arbitrary commands with SYSTEM privileges via the ExternalScripts API if the web interface is enabled.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-34079?

CVE-2025-34079 is a high-severity command injection vulnerability in NSClient++, published on 2 Jul 2025. An attacker needs administrator access to exploit it, with no action from the victim.

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

Weakness: CWE-94, CWE-306

Which versions are affected by CVE-2025-34079?

It affects 1 product.

Products include Nsclient Nsclient\+\+.

How do I fix CVE-2025-34079?

No fix has been published for CVE-2025-34079 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-34079 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-34079 exists.

Public exploit code: 1 Metasploit module.

Sources

Also known as GHSA-rhrw-79v5-jc5x.

Is CVE-2025-34079 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free