On Unix platforms, when listing the contents of a directory using File.ReadDir or File.Readdir the returned FileInfo could reference a file outside of the Root in which the File was opened. The impact of this escape is limited to reading metadata provided by lstat from arbitrary...
Product
golang go vulnerabilities
172 published CVES affecting golang go, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 172
- Critical
- 18
- High
- 100
- Medium
- 51
- Low
- 3
- Unscored
- 0
- CISA KEV
- 2
Latest golang go CVEs
Newest publication first · page 2 of 7
-
LowCVSS 2.5 EPSS 0.22%
-
CVE-2026-27138 Panic in name constraint checking for malformed certificates in crypto/x509
PublishedMediumCVSS 5.9 EPSS 0.38%Certificate verification can panic when a certificate in the chain has an empty DNS name and another certificate in the chain has excluded name constraints. This can crash programs that are either directly verifying X.509 certificate chains, or those that use TLS.
-
HighCVSS 7.5 EPSS 0.82%
url.Parse insufficiently validated the host/authority component and accepted some invalid URLs.
-
HighCVSS 7.5 EPSS 0.65%
When verifying a certificate chain which contains a certificate containing multiple email address constraints which share common local portions but different domain portions, these constraints will not be properly applied, and only the last constraint will be considered.
-
CriticalCVSS 10.0 EPSS 0.90%
During session resumption in crypto/tls, if the underlying Config has its ClientCAs or RootCAs fields mutated between the initial handshake and the resumed handshake, the resumed handshake may succeed when it should have failed. This may happen when a user calls Config.Clone and...
-
HighCVSS 7.4 EPSS 0.53%
A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resulting cgo binary.
-
LowCVSS 3.8 EPSS 0.23%
It was possible to improperly access the parent directory of an os.Root by opening a filename ending in "../". For example, Root.Open("../") would open the parent directory of the Root. This escape only permits opening the parent directory itself, not ancestors of the parent or f...
-
MediumCVSS 6.5 EPSS 0.74%
archive/zip uses a super-linear file name indexing algorithm that is invoked the first time a file in an archive is opened. This can lead to a denial of service when consuming a maliciously constructed ZIP archive.
-
HighCVSS 7.5 EPSS 2.3%
The net/url package does not set a limit on the number of query parameters in a query. While the maximum size of query parameters in URLs is generally limited by the maximum request header size, the net/http.Request.ParseForm method can parse large URL-encoded forms. Parsing a la...
-
HighCVSS 7.0 EPSS 0.36%
Downloading and building modules with malicious version strings can cause local code execution. On systems with Mercurial (hg) installed, downloading modules from non-standard sources (e.g., custom domains) can cause unexpected code execution due to how external VCS commands are...
-
HighCVSS 8.6 EPSS 0.59%
Building a malicious file with cmd/go can cause can cause a write to an attacker-controlled file with partial control of the file content. The "#cgo pkg-config:" directive in a Go source file provides command-line arguments to provide to the Go pkg-config command. An attacker can...
-
CVE-2025-61730 Handshake messages may be processed at the incorrect encryption level in crypto/tls
PublishedMediumCVSS 5.3 EPSS 0.32%During the TLS 1.3 handshake if multiple messages are sent in records that span encryption level boundaries (for instance the Client Hello and Encrypted Extensions messages), the subsequent messages may be processed before the encryption level changes. This can cause some minor i...
-
MediumCVSS 6.5 EPSS 0.30%
An excluded subdomain constraint in a certificate chain does not restrict the usage of wildcard SANs in the leaf certificate. For example a constraint that excludes the subdomain test.example.com does not prevent a leaf certificate from claiming the SAN *.example.com.
-
HighCVSS 7.5 EPSS 0.49%
Within HostnameError.Error(), when constructing an error string, there is no limit to the number of hosts that will be printed out. Furthermore, the error string is constructed by repeated string concatenation, leading to quadratic runtime. Therefore, a certificate provided by a...
-
MediumCVSS 5.3 EPSS 0.56%
The Reader.ReadResponse function constructs a response string through repeated string concatenation of lines. When the number of lines in a response is large, this can cause excessive CPU consumption.
-
HighCVSS 7.5 EPSS 0.40%
Validating certificate chains which contain DSA public keys can cause programs to panic, due to a interface cast that assumes they implement the Equal method. This affects programs which validate arbitrary certificate chains.
-
MediumCVSS 5.3 EPSS 0.58%
Parsing a maliciously crafted DER payload could allocate large amounts of memory, causing memory exhaustion.
-
MediumCVSS 5.3 EPSS 0.49%
The Parse function permits values other than IPv6 addresses to be included in square brackets within the host component of a URL. RFC 3986 permits IPv6 addresses to be included within the host component, enclosed within square brackets. For example: "http://[::1]/". IPv4 addresse...
-
HighCVSS 7.5 EPSS 0.66%
The processing time for parsing some invalid inputs scales non-linearly with respect to the size of the input. This affects programs which parse untrusted PEM inputs.
-
CVE-2025-58189 ALPN negotiation error contains attacker controlled information in crypto/tls
PublishedMediumCVSS 5.3 EPSS 0.47%When Conn.Handshake fails during ALPN negotiation the error contains attacker controlled information (the ALPN protocols sent by the client) which is not escaped.
-
HighCVSS 7.5 EPSS 0.43%
Due to the design of the name constraint checking algorithm, the processing time of some inputs scale non-linearly with respect to the size of the certificate. This affects programs which validate arbitrary certificate chains.
-
MediumCVSS 6.5 EPSS 0.57%
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.
-
HighCVSS 7.0 EPSS 0.44%
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.48%
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.33%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...
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.