CVE-2018-16873

In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to remote code execution when executed with the -u flag and the import path of a malicious Go package, or a package that imports it directly or indirectly. Specifically, it is only vulnerable in GOPATH mode, but not in module mode (the distinction is documented at https://golang.org/cmd/go/#hdr-Module_aware_go_get). Using custom domains, it's possible to arrange things so that a Git repository is cloned to a folder named ".git" by using a vanity import path that ends with "/.git". If the Git repository root contains a "HEAD" file, a "config" file, an "objects" directory, a "refs" directory, with some work to ensure the proper ordering of operations, "go get -u" can be tricked into considering the parent directory as a repository root, and running Git commands on it. That will use the "config" file in the original Git repository root for its configuration, and if that config file contains malicious commands, they will execute on the system running "go get -u".

公開: 2018-12-14 最終更新: 2026-06-16 Assigner: [email protected] ソース: [email protected]

総合評価: CVE-2018-16873 は高リスク(72.1/100)。CVSS 深刻度は高。悪用される可能性が高い(EPSS 66.25%、99 パーセンタイル) 根拠: EPSS 上、短期間での悪用可能性は高い水準です。 直近 1 日で EPSS が +9.45% 上昇。悪用への関心が高まっている可能性があります。 推奨対応: 悪用可能性が高いため、影響範囲の確認と修補の優先付けを推奨します。

リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。

CVE-2018-16873 の EPSS(Exploit Prediction Scoring System)スコア

EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-15 56.80% 66.25% +9.45%
2 2026-03-11 60.61% 56.80% -3.80%
3 2026-01-16 60.61%

EPSS の全履歴 (全 37 件)

CVE-2018-16873 の CVSS(Common Vulnerability Scoring System)指標

この CVE の CVSS 指標。

ベーススコア バージョン 深刻度 ベクトル 悪用しやすさ 影響 スコアの出典
8.1 3.1 HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:H)
到達できても、タイミング・負荷・周辺設定など、揃わないと成功しない局面が多い。
必要な権限 (PR:N)
事前のログインや昇格は不要で、匿名アクセスのまま踏み台にしうる。
ユーザーの関与 (UI:N)
メールのリンクを開く、マクロを有効にするなど、被害者の協力がなくても成立しうる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:H)
長時間のサービス停止、データ損壊による復旧不能に近い状態など、利用者に著しい不便を与えうる。
2.2 5.9 [email protected]
7.5 3.0 HIGH
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:H)
到達できても、タイミング・負荷・周辺設定など、揃わないと成功しない局面が多い。
必要な権限 (PR:N)
事前のログインや昇格は不要で、匿名アクセスのまま踏み台にしうる。
ユーザーの関与 (UI:R)
インストールの許可、設定変更、悪意あるファイルの実行など、人の一度の判断がトリガーになる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:H)
長時間のサービス停止、データ損壊による復旧不能に近い状態など、利用者に著しい不便を与えうる。
1.6 5.9 [email protected]
6.8 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P クリックして展開
アクセス経路 (AV:N)
ルーティング可能なネットワーク越しに、遠隔から到達・悪用しうる。
アクセスの複雑さ (AC:M)
多少の有利条件は要るが、極端なレアケースではない。
認証 (AU:N)
認証を経ずに攻撃を完結できる。
機密性への影響 (C:P)
機密性は部分的に損なわれる。
完全性への影響 (I:P)
完全性は部分的に損なわれる。
可用性への影響 (A:P)
可用性は部分的に損なわれる。
8.6 6.4 [email protected]

CVE-2018-16873 の弱点分類(列挙)

CVE-2018-16873 の OS トラッカー

vendor priority summary link
alpine high CVE-2018-16873: 1 source package rows (go); 2 state rows across 2 repos (3.22-community, edge-community); fixed 0, open 2. https://security.alpinelinux.org/vuln/CVE-2018-16873
gentoo normal CVE-2018-16873: 1 GLSA(s) (201812-09), 1 atom(s) (dev-lang/go); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2018-16873
redhat medium https://access.redhat.com/security/cve/CVE-2018-16873
suse high CVE-2018-16873 severity important: SUSE including 526 source package names (2.0.2-4.2.20:runc-1.0.0~rc6-1.3.1, 2.4.6-6.1:etcd-3.5.12-150000.7.6.1, …), 1621 product×package rows across 332 product lines (Container containers/milvus, Container rancher/elemental-teal-iso/5.4, … (332 product lines)): Fixed 1454, Known Affected 157, Known Not Affected 10. https://www.suse.com/security/cve/CVE-2018-16873/
ubuntu medium CVE-2018-16873 medium priority: Ubuntu including 6 source packages (golang, golang-1.10, golang-1.11, golang-1.6, golang-1.8, golang-1.9), 114 status rows across 19 suites (bionic, cosmic, disco, eoan, focal, groovy, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 97, needs-triage 8, ignored 4, needed 2, released 2, not-affected 1. https://ubuntu.com/security/CVE-2018-16873

CVE-2018-16873 の影響を受けるソフトウェア/構成

ベンダー 製品 バージョン 生の CPE
golang go < 1.10.6 cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
golang go >= 1.11.0, < 1.11.3 cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
opensuse backports_sle 15.0 cpe:2.3:a:opensuse:backports_sle:15.0:-:*:*:*:*:*:*
opensuse leap 15.0 cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*
opensuse leap 15.1 cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*
opensuse leap 42.3 cpe:2.3:o:opensuse:leap:42.3:*:*:*:*:*:*:*
suse linux_enterprise_server 12 cpe:2.3:o:suse:linux_enterprise_server:12:-:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*

CVE-2018-16873 の参考情報

URL タグ
http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00044.html Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00060.html Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00011.html Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00015.html Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00010.html Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00041.html Mailing List Third Party Advisory
http://www.securityfocus.com/bid/106226 Third Party Advisory VDB Entry
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16873 Issue Tracking Third Party Advisory
https://groups.google.com/forum/?pli=1#%21topic/golang-announce/Kw31K8G7Fi0
https://lists.debian.org/debian-lts-announce/2021/03/msg00014.html Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/03/msg00015.html Mailing List Third Party Advisory
https://security.gentoo.org/glsa/201812-09 Mitigation Third Party Advisory
cvelogic Threat Intelligence