If the PATH environment variable contains paths which are executables (rather than just directories), passing certain strings to LookPath ("", ".", and ".."), can result in the binaries listed in the PATH being unexpectedly returned.
Vendor
golang vulnerabilities
229 published CVES affecting golang, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 229
- Critical
- 21
- High
- 134
- Medium
- 71
- Low
- 3
- Unscored
- 0
- CISA KEV
- 2
Products
- go 172
- crypto 22
- net 11
- http2 6
- image 6
- text 4
- ssh 3
- tiff 3
- networking 2
- archiver 1
- github.com/golang/glog 1
- github.com/golang/vscode-go 1
- gopls 1
- h2c 1
- hpack 1
- package ssh 1
- protobuf 1
Latest golang CVEs
Newest publication first · page 4 of 10
-
MediumCVSS 6.5 EPSS 0.57%
-
HighCVSS 7.0 EPSS 0.50%
Cancelling a query (e.g. by cancelling the context passed to one of the query methods) during a call to the Scan method of the returned Rows can result in unexpected results if other queries are being made in parallel. This can result in a race condition that may overwrite the ex...
-
HighCVSS 8.6 EPSS 0.32%
The go command may execute unexpected commands when operating in untrusted VCS repositories. This occurs when possibly dangerous VCS configuration is present in repositories. This can happen when a repository was fetched via one VCS (e.g. Git), but contains metadata for another V...
-
CVE-2025-0913 Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall
PublishedMediumCVSS 5.5 EPSS 0.29%os.OpenFile(path, os.O_CREATE|O_EXCL) behaved differently on Unix and Windows systems when the target path was a dangling symlink. On Unix systems, OpenFile with O_CREATE and O_EXCL flags never follows symlinks. On Windows, when the target path was a symlink to a nonexistent loca...
-
HighCVSS 7.1 EPSS 0.34%
When logs are written to a widely-writable directory (the default), an unprivileged attacker may predict a privileged process's log file path and pre-create a symbolic link to a sensitive file in its place. When that privileged process runs, it will follow the planted symlink and...
-
CVE-2022-30636 Limited directory traversal vulnerability on Windows in golang.org/x/crypto
PublishedHighCVSS 7.5 EPSS 0.87%httpTokenCacheKey uses path.Base to extract the expected HTTP-01 token value to lookup in the DirCache implementation. On Windows, path.Base acts differently to filepath.Base, since Windows uses a different path separator (\ vs. /), allowing a user to provide a relative path, i.e...
-
HighCVSS 7.5 EPSS 1.2%
Parsing a corrupt or malicious image with invalid color indices can cause a panic.
-
MediumCVSS 5.5 EPSS 0.39%
The archive/zip package's handling of certain types of invalid zip files differs from the behavior of most zip implementations. This misalignment could be exploited to create an zip file with contents that vary depending on the implementation reading the file. The archive/zip pac...
-
CVE-2024-24790 Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in net/netip
PublishedCriticalCVSS 9.8 EPSS 2.2%The various Is methods (IsPrivate, IsLoopback, etc) did not work as expected for IPv4-mapped IPv6 addresses, returning false for addresses which would return true in their traditional IPv4 forms.
-
MediumCVSS 6.4 EPSS 0.51%
On Darwin, building a Go module which contains CGO can trigger arbitrary code execution when using the Apple version of ld, due to usage of the -lto_library flag in a "#cgo LDFLAGS" directive.
-
HighCVSS 7.5 EPSS 3.4%
An attacker may cause an HTTP/2 endpoint to read arbitrary amounts of header data by sending an excessive number of CONTINUATION frames. Maintaining HPACK state requires parsing and processing all HEADERS and CONTINUATION frames on a connection. When a request's headers exceed Ma...
-
CVE-2023-48795 Prefix Truncation Attack against ChaCha20-Poly1305 and Encrypt-then-MAC aka Terrapin
PublishedMediumCVSS 5.9 EPSS 35.8% Public exploit Scanner templateThe SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remote attackers to bypass integrity checks such that some packets are omitted (from the extension negotiation message), and a client and server may consequently end...
-
HighCVSS 7.5 EPSS 1.0%
Using go get to fetch a module with the ".git" suffix may unexpectedly fallback to the insecure "git://" protocol if the module is unavailable via the secure "https://" and "git+ssh://" protocols, even if GOINSECURE is not set for said module. This only affects users who are not...
-
MediumCVSS 5.3 EPSS 1.1%
A malicious HTTP sender can use chunk extensions to cause a receiver reading from a request or response body to read many more bytes from the network than are in the body. A malicious HTTP client can further exploit this to cause a server to automatically read a large amount of d...
-
HighCVSS 7.5 EPSS 1.2%
Before Go 1.20, the RSA based TLS key exchanges used the math/big library, which is not constant time. RSA blinding was applied to prevent timing attacks, but analysis shows this may not have been fully effective. In particular it appears as if the removal of PKCS#1 padding may l...
-
MediumCVSS 5.3 EPSS 0.86%
On Windows, The IsLocal function does not correctly detect reserved device names in some cases. Reserved names followed by spaces, such as "COM1 ", and reserved names "COM" and "LPT" followed by superscript 1, 2, or 3, are incorrectly reported as local. With fix, IsLocal now corr...
-
HighCVSS 7.5 EPSS 1.9%
The filepath package does not recognize paths with a ??\ prefix as special. On Windows, a path beginning with ??\ is a Root Local Device path equivalent to a path beginning with \?. Paths with a ??\ prefix may be used to access arbitrary locations on the system. For example, the...
-
HighCVSS 7.5 EPSS 3.9%
A malicious HTTP/2 client which rapidly creates requests and immediately resets them can cause excessive server resource consumption. While the total number of requests is bounded by the http2.Server.MaxConcurrentStreams setting, resetting an in-progress request allows the attack...
-
HighCVSS 7.5 EPSS 94.0% CISA KEV added 2023-10-10 Exploited in the wild Public exploit PoC
The HTTP/2 protocol allows a denial of service (server resource consumption) because request cancellation can reset many streams quickly, as exploited in the wild in August through October 2023.
-
HighCVSS 8.1 EPSS 1.9%
Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of arbitrary code when running "go build". The line directive requires...
-
HighCVSS 7.5 EPSS 1.4%
QUIC connections do not set an upper bound on the amount of data buffered when reading post-handshake messages, allowing a malicious QUIC connection to cause unbounded memory growth. With fix, connections now consistently reject messages larger than 65KiB in size.
-
CVE-2023-39321 Panic when processing post-handshake message on QUIC connections in crypto/tls
PublishedHighCVSS 7.5 EPSS 1.3%Processing an incomplete post-handshake message for a QUIC connection can cause a panic.
-
MediumCVSS 6.1 EPSS 0.96%
The html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within JS literals in <script> contexts. This may cause the template parser to improperly consider script contexts to be terminated early, causing actions to be...
-
CriticalCVSS 9.8 EPSS 1.8%
The go.mod toolchain directive, introduced in Go 1.21, can be leveraged to execute scripts and binaries relative to the root of the module when the "go" command was executed within the module. This applies to modules downloaded using the "go" command from the module proxy, as wel...
-
CVE-2023-39318 Improper handling of HTML-like comments in script contexts in html/template
PublishedMediumCVSS 6.1 EPSS 0.96%The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the template parser to improperly interpret the contents of <script> contexts, causing actions to be improperly escaped. This may...
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.