Vulnerability · Published Nov 12, 2024 · Assigned by GitHub_M

CVE-2024-52010Zoraxy has an authenticated command injection in the Web SSH feature

High 8.6

In plain English

A high-severity OS command injection in zoraxy from tobychui. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.6High
Exploit odds (30 days)1.5%top 25.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official description

Zoraxy is a general purpose HTTP reverse proxy and forwarding tool. A command injection vulnerability in the Web SSH feature allows an authenticated attacker to execute arbitrary commands as root on the host. Zoraxy has a Web SSH terminal feature that allows authenticated users to connect to SSH servers from their browsers. In HandleCreateProxySession the request to create an SSH session is handled. An attacker can exploit the username variable to escape from the bash command and inject arbitrary commands into sshCommand. This is possible, because, unlike hostname and port, the username is not validated or sanitized.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/tobychui/zoraxy3.1.3GHSA-7hpf-g48v-hw3j
Gogithub.com/tobychui/zoraxy3.1.3+incompatibleGO-2024-3267

Affected products (as reported)

VendorProductVersions
tobychui zoraxy >= 2.6.1, < 3.1.3

Weakness: CWE-78 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

References