/

CVE-2026-18813

Severity:

HIGH RISK

(7.2)

OS Command Injection (CWE-77) in H3C NX15 /api/esps

CVE-2026-18813

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-74, CWE-77

Impact:

Remote Code Execution

Severity:

HIGH RISK

(7.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

H3C NX15 V100R017 contains a command injection vulnerability in the /api/esps file-deletion functionality. A remote attacker may manipulate the esps.apcm.version argument to influence operating-system command processing when the endpoint is reachable and input is not safely handled.

Affected context

The vulnerability occurs in H3C NX15 V100R017 deployments that expose the /api/esps functionality and process the esps.apcm.version argument through command-related operations. Risk depends on network reachability, request handling, and whether the affected service account has meaningful operating-system privileges.

Exploit preconditions

  • Attack surface: Remotely reachable /api/esps endpoint
  • Required access: Ability to send requests to the affected service; authentication requirements may depend on deployment configuration
  • Trigger point: Processing of the esps.apcm.version argument during the file-deletion operation
  • Why exploitation is possible: Input may reach an operating-system command execution path without sufficient separation between data and command syntax

Why this happens

The underlying issue is improper neutralization of externally supplied input before it is used in an operating-system command context. If the application constructs or invokes commands using the esps.apcm.version value without strict validation and safe argument handling, attacker-controlled syntax may alter the intended command behavior. This maps primarily to CWE-77: Improper Neutralization of Special Elements used in a Command, with CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component describing the broader injection pattern.

Potential impact

  • An attacker may execute unauthorized operating-system commands
  • The affected device may be compromised or disrupted
  • Device configuration or stored data could be altered
  • Credentials, logs, or other sensitive information could be exposed
  • A compromised device could support lateral movement into connected networks

General mitigation guidance

Mitigation generally focuses on removing shell interpretation from application workflows and reducing trust in request parameters.

Common defensive patterns include:

  • Replacing command construction with direct, parameterized APIs
  • Applying strict allowlist validation to version-related input
  • Separating data values from executable command syntax
  • Running the service with the minimum operating-system privileges required
  • Restricting network access to the affected management endpoint
  • Adding authorization and request-integrity controls around file operations
  • Avoiding reliance on escaping alone as the primary defense

How teams detect issues like this

Detection can include:

  • Static analysis for string concatenation or interpolation into shell and process-execution calls
  • Code review checks for request parameters passed into file-system or command utilities
  • Monitoring for unusual requests to /api/esps, especially unexpected values in esps.apcm.version
  • Endpoint and device telemetry review for child processes or command activity initiated by the management service
  • Policy enforcement requiring allowlist validation and parameterized process APIs

Automated code-review and application-security tools may help identify command construction patterns before deployment.

Sources

SourceLink
github.comgithub.com/coconut652-7/IOT_Vul_Public/tree/main/H3C/NX15R017/esps_apcm_version_delete_root_rce
vuldb.comvuldb.com/cve/CVE-2026-18813
vuldb.comvuldb.com/submit/857811
vuldb.comvuldb.com/vuln/385812
vuldb.comvuldb.com/vuln/385812/cti

Frequently asked

questions

Yes. The reported attack surface is the remotely reachable /api/esps functionality, although network exposure and authentication controls influence practical exploitability.

An attacker needs the ability to submit requests to the affected endpoint. Whether authentication is required depends on the device's access-control and deployment configuration.

Avoid passing user-controlled values into shell commands. Prefer direct APIs, strict allowlist validation, and explicit argument handling that keeps data separate from executable syntax.

Enforce secure coding rules for process execution, review all request-to-command data flows, limit service privileges, restrict management interfaces, and monitor for anomalous command activity.

Find out what's already
exploitable in your codebase.