CVE-2026-39862
JSON

6.3medium

Tophat has a Command Injection Vulnerability When Accessing a Maliciously Crafted Tophat Link

Severity
6.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.59% (higher than 49% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Tophat is a mobile applications testing harness. Prior to 2.5.1, Tophat is affected by remote code execution via crafted tophat:// or http://localhost:29070 URLs. The arguments query parameter flows unsanitized from URL parsing through to /bin/bash -c execution, allowing an attacker to execute arbitrary commands on a developer's macOS workstation. Any developer with Tophat installed is vulnerable. For previously trusted build hosts, no confirmation dialog appears. Attacker commands run with the user's permissions. This vulnerability is fixed in 2.5.1.

Affected

Product or packageVersionsReported by
Shopify tophat< 2.5.1, before 2.5.1CVE List, NVD

All scores

GitHub_M6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Tophat is a mobile applications testing harness. Prior to 2.5.1, Tophat is affected by remote code execution via crafted tophat:// or http://localhost:29070 URLs. The arguments query parameter flows unsanitized from URL parsing through to /bin/bash -c execution, allowing an attacker to execute arbitrary commands on a developer's macOS workstation. Any developer with Tophat installed is vulnerable. For previously trusted build hosts, no confirmation dialog appears. Attacker commands run with the user's permissions. This vulnerability is fixed in 2.5.1.

NVD (es)

Tophat es un arnés de pruebas para aplicaciones móviles. Antes de la 2.5.1, Tophat está afectado por ejecución remota de código a través de URLs tophat:// o HTTP://localhost:29070 manipuladas. El parámetro de consulta arguments fluye sin sanitizar desde el análisis de la URL hasta la ejecución de /bin/bash -c, permitiendo a un atacante ejecutar comandos arbitrarios en la estación de trabajo macOS de un desarrollador. Cualquier desarrollador con Tophat instalado es vulnerable. Para hosts de compilación previamente confiables, no aparece ningún cuadro de diálogo de confirmación. Los comandos del atacante se ejecutan con los permisos del usuario. Esta vulnerabilidad está corregida en la 2.5.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-39862 changed 2026-04-09CVE Terms of Use
NVDCVE-2026-39862 changed 2026-07-24Public domain