/

CVE-2026-18902

Severity:

HIGH RISK

(7.2)

OS Command Injection (CWE-77) in H3C NX15 Repeater

CVE-2026-18902

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-74, CWE-77

Impact:

Remote command execution and device compromise

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

A command injection vulnerability in the H3C NX15 V100R017 repeater functionality may allow a remote attacker to cause operating-system commands to be interpreted by the device. The risk arises when attacker-controlled input reaches the repeater API without adequate validation or safe command handling.

Affected context

The vulnerability occurs in the H3C NX15 V100R017 web API, specifically in the repeater processing functionality exposed through /api/esps. It is associated with the esps.wan.repeater.set/repeaterproc operation when the my2P4key argument is processed in a way that may allow command syntax to influence operating-system execution. Exploitability depends on the API being reachable and the device accepting the relevant request.

Exploit preconditions

  • Attack surface: Network-accessible H3C NX15 management or API service
  • Required access: Ability to reach the affected endpoint; additional authentication requirements depend on deployment configuration
  • Trigger point: Processing of the my2P4key argument by the repeater operation
  • Why exploitation is possible: Input may reach an operating-system command execution path without sufficient separation between data and commands

Why this happens

The underlying issue is improper neutralization of special elements used in an operating-system command, mapping primarily to CWE-77: Command Injection. The related CWE-74 classification reflects the broader failure to separate control syntax from application data. The insecure pattern occurs when externally supplied input is concatenated into or otherwise interpreted by a shell or command processor instead of being treated strictly as validated data.

Potential impact

  • An attacker may execute commands with the privileges of the affected service
  • The device could be compromised or its configuration altered
  • Sensitive network, credential, or operational data could be exposed
  • The vulnerability could enable further access to connected systems
  • Network availability or device functionality could be disrupted

General mitigation guidance

Mitigation generally centers on removing shell interpretation from request

processing and reducing trust in network-supplied input.

Common defensive patterns include:

  • Prefer direct process or library APIs that pass fixed arguments without invoking a shell
  • Apply allowlist validation for values such as keys, identifiers, and configuration parameters
  • Keep command construction separate from request data and reject unexpected characters or structures
  • Run the affected service with the least privileges needed for its function
  • Restrict management interfaces to trusted networks and enforce strong access controls
  • Use secure-by-default API behavior that rejects malformed or unrecognized input

How teams detect issues like this

Detection programs commonly look for:

  • Static-analysis findings involving shell execution, command concatenation, or dynamic process invocation
  • Code-review signals where API parameters flow into command builders or interpreters
  • Tests that submit boundary characters and unexpected input types to confirm strict rejection
  • Network monitoring for unusual requests to repeater-management endpoints
  • Policy enforcement requiring allowlist validation and prohibiting shell invocation for externally influenced data

Automated code-review and software-composition tools may help identify risky command-execution patterns, but findings should be validated against the actual request and privilege boundaries.

Sources

SourceLink
github.comgithub.com/coconut652-7/IOT_Vul_Public/blob/main/H3C/NX15R017/esps.wan.repeater.set-repeaterproc/poc/postauth_esps_wan_repeater_repeaterproc_rce.py
github.comgithub.com/coconut652-7/IOT_Vul_Public/blob/main/H3C/NX15R017/esps.wan.repeater.set-repeaterproc/report/postauth_esps_wan_repeater_repeaterproc_rce_report.md
vuldb.comvuldb.com/cve/CVE-2026-18902
vuldb.comvuldb.com/submit/857833
vuldb.comvuldb.com/vuln/385936
vuldb.comvuldb.com/vuln/385936/cti

Frequently asked

questions

Yes, the reported issue is described as remotely exploitable when an attacker can reach the affected H3C NX15 API. Whether authentication or other network controls are required depends on the device's configuration.

Network access to the affected repeater endpoint is the key prerequisite. The practical scope also depends on whether the endpoint is exposed externally and what authorization controls protect it.

Avoid passing request data through a shell or command interpreter. Use fixed, direct APIs with strict allowlist validation and reject values outside the expected format.

Apply secure input-handling standards, review all data flows into process execution, enforce least privilege, limit management-plane exposure, and test API parameters for injection behavior during development and security review.

Find out what's already
exploitable in your codebase.