製品・ソフトウェアに関する情報
ShopifyのTophatにおけるOS コマンドインジェクションの脆弱性
Title ShopifyのTophatにおけるOS コマンドインジェクションの脆弱性
Summary

Tophatはモバイルアプリケーションのテストハーネスです。バージョン2.5.1以前のTophatは、細工されたtophat://またはhttp://localhost:29070のURLを介したリモートコード実行の影響を受けます。引数のqueryパラメータはURL解析から/bin/bash -cの実行まで適切にサニタイズされておらず、攻撃者が開発者のmacOSワークステーション上で任意のコマンドを実行できる状態になっています。Tophatをインストールしているすべての開発者が影響を受けます。以前に信頼されていたビルドホストの場合、確認ダイアログは表示されません。攻撃者のコマンドはユーザーの権限で実行されます。この脆弱性はバージョン2.5.1で修正されました。

Possible impacts 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 8, 2026, midnight
Registration Date April 21, 2026, 10:42 a.m.
Last Update April 21, 2026, 10:42 a.m.
CVSS3.0 : 重要
Score 8.8
Vector CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected System
Shopify
Tophat 2.5.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年04月21日]
  掲載
April 21, 2026, 10:42 a.m.

NVD Vulnerability Information
CVE-2026-39862
Summary

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.

Publication Date April 9, 2026, 5:16 a.m.
Registration Date April 15, 2026, 11:32 a.m.
Last Update April 20, 2026, 11:39 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:shopify:tophat:*:*:*:*:*:*:*:* 2.5.1
Related information, measures and tools
Common Vulnerabilities List