Skip to main content
Vulnerability Database/CVE-2026-112372

CVE-2026-112372: H3C Magic NX15 Path Traversal Vulnerability

CVE-2026-112372 is a path traversal vulnerability in H3C Magic NX15 router affecting the importprofile function. Attackers can exploit this remotely to access unauthorized files. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112372 Overview

CVE-2026-112372 is a path traversal vulnerability in the H3C Magic NX15 router running firmware version V100R017. The flaw resides in the importprofile function of the /api/upload endpoint, where the fileName argument is not properly sanitized. An authenticated remote attacker can manipulate this parameter to write files outside the intended directory. A public proof-of-concept exploit is available on GitHub, and the vendor was notified prior to disclosure. The weakness is tracked as CWE-22: Improper Limitation of a Pathname to a Restricted Directory.

Critical Impact

Authenticated attackers can write arbitrary files to the device filesystem via the fileName parameter, which may enable configuration tampering or persistent compromise of the router.

Affected Products

  • H3C Magic NX15 router
  • Firmware version V100R017
  • importprofile function of /api/upload endpoint

Discovery Timeline

  • 2026-10-19 - CVE-2026-112372 published to NVD
  • 2026-10-20 - Last updated in NVD database

Technical Details for CVE-2026-112372

Vulnerability Analysis

The vulnerability affects the importprofile handler exposed through the /api/upload endpoint on the H3C Magic NX15 router. When a client submits a request to import a configuration profile, the backend reads the fileName field from the request and uses it to determine the destination path on the device filesystem.

Because the handler does not normalize or validate the supplied path, directory traversal sequences such as ../ are accepted. An attacker with valid credentials can therefore place attacker-controlled content at arbitrary locations writable by the web process. Depending on the chosen destination, this may permit overwriting configuration files, startup scripts, or web assets served by the device.

The issue is network-reachable and does not require user interaction. However, high privileges are required to invoke the endpoint, which limits the vulnerability to attackers who have already authenticated or obtained administrative credentials.

Root Cause

The root cause is missing input validation on the fileName parameter inside the importprofile function. The handler concatenates attacker-supplied input into a filesystem path without canonicalization or allow-list checks, satisfying the classic [CWE-22] path traversal pattern.

Attack Vector

Exploitation requires an authenticated HTTP(S) session to the router's management interface. The attacker sends a crafted multipart request to /api/upload targeting the importprofile function, setting fileName to a traversal payload such as ../../etc/target_file. The server writes the uploaded content to the resolved path. A public proof-of-concept is hosted at XxingGoD/H3C-NX15-R017-Vulns. Refer to the PoC repository and VulDB entry 422420 for request specifics; no synthetic exploit code is reproduced here.

Detection Methods for CVE-2026-112372

Indicators of Compromise

  • HTTP POST requests to /api/upload invoking the importprofile function with fileName values containing ../, ..\, URL-encoded %2e%2e%2f, or absolute paths.
  • Unexpected new or modified files on the router outside the configured profile import directory.
  • Configuration changes, new administrative accounts, or altered web UI assets appearing shortly after upload activity.

Detection Strategies

  • Inspect web server and management-plane logs for /api/upload requests whose fileName parameter contains traversal sequences or paths outside the expected profile directory.
  • Correlate authenticated administrative sessions with file-write events on the device to identify abuse of valid credentials.
  • Monitor firmware integrity by comparing file hashes of configuration and web root contents against a known-good baseline.

Monitoring Recommendations

  • Forward router management logs to a centralized log platform and alert on upload activity to /api/upload from non-administrative source networks.
  • Track failed and successful admin logins to the NX15 management UI to detect credential stuffing or brute-force precursors.
  • Alert on configuration file changes outside scheduled maintenance windows.

How to Mitigate CVE-2026-112372

Immediate Actions Required

  • Restrict access to the router's management interface to trusted administrative networks only; block exposure to the internet.
  • Rotate administrative credentials on all H3C Magic NX15 devices and enforce strong, unique passwords.
  • Review /api/upload request logs for prior exploitation attempts and audit the device filesystem for unauthorized file writes.

Patch Information

No vendor patch URL is referenced in the available advisory data. Consult the VulDB CVE-2026-112372 entry and the H3C support channels for firmware updates addressing the importprofile traversal flaw. Apply vendor-supplied firmware as soon as it becomes available.

Workarounds

  • Place the router's administrative interface behind a VPN or management VLAN that is unreachable from untrusted segments.
  • Disable or limit use of the profile import feature until firmware addressing the issue is installed.
  • Monitor the device filesystem and configuration state continuously to detect unauthorized changes resulting from the traversal.
bash
# Example ACL concept: restrict management access to a trusted subnet
# Replace interface and subnet values to match your deployment
acl advanced name RESTRICT_MGMT
 rule 10 permit tcp source 10.0.0.0 0.0.0.255 destination-port eq 443
 rule 20 deny tcp destination-port eq 443
interface GigabitEthernet0/0
 packet-filter name RESTRICT_MGMT inbound

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.