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 package | Versions | Reported by |
|---|---|---|
| Shopify tophat | < 2.5.1, before 2.5.1 | CVE List, NVD |
All scores
| GitHub_M | 6.3medium CVSS:4.0 | CVSS: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 |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
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
| https://github.com/Shopify/tophat/security/advisories/GHSA-8x8g-6rv5-mgg2 | vendor-advisory | |
| https://github.com/Shopify/tophat/pull/139 | issue-tracking | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39862 changed 2026-04-09 | CVE Terms of Use |
| NVD | CVE-2026-39862 changed 2026-07-24 | Public domain |