🛡️ CVE-2018-16874 — toolchain
Description
Directory traversal via "go get" command in cmd/go
The "go get" command is vulnerable to directory traversal when executed with the import path of a malicious Go package which contains curly brace (both '{' and '}' characters).
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). The attacker can cause an arbitrary filesystem write, which can lead to code execution.
Affected software
CVE-2018-16874 is recorded against 1 package.
- toolchain
Timeline and source
Published on 2 August 2022 and last revised on 20 May 2024. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from OSV.
References
go.dev (Fix)
go.googlesource.com (Fix)
go.dev (Report)
groups.google.com (Web)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| toolchain | — | — |
References
Similar Threats
- High CVE-2025-4674
- High CVE-2025-22867
- High CVE-2024-45340
- Critical CVE-2023-24531
- Medium CVE-2024-24787
More CVE 2018 advisories
Browse all of CVE 2018 in the advisory index.
Free Vulnerability Check
Is your site affected by CVE-2018-16874?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2018-16874 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.