Golang Go vulnerabilities
142 known vulnerabilities affecting golang/go.
Total CVEs
142
CISA KEV
2
actively exploited
Public exploits
2
Exploited in wild
2
Severity breakdown
CRITICAL17HIGH84MEDIUM39LOW2
Vulnerabilities
Page 1 of 8
CVE-2025-68121CRITICALCVSS 10.0fixed in 1.24.13≥ 1.25.0, < 1.25.7+1 more2026-02-05
CVE-2025-68121 [CRITICAL] CWE-295 CVE-2025-68121: During session resumption in crypto/tls, if the underlying Config has its ClientCAs or RootCAs field
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 mutates the returned Config, or uses Config.GetConfigForClient. This
nvd
CVE-2025-61732HIGHCVSS 8.6fixed in 1.24.13≥ 1.25.0, < 1.25.72026-02-05
CVE-2025-61732 [HIGH] CWE-94 CVE-2025-61732: A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resu
A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resulting cgo binary.
nvd
CVE-2025-22873LOWCVSS 3.8fixed in 1.23.9≥ 1.24.0, < 1.24.32026-02-04
CVE-2025-22873 [LOW] CWE-23 CVE-2025-22873: It was possible to improperly access the parent directory of an os.Root by opening a filename ending
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 files contained within the parent.
nvd
CVE-2025-61726HIGHCVSS 7.5fixed in 1.24.12≥ 1.25.0, < 1.25.62026-01-28
CVE-2025-61726 [HIGH] CWE-770 CVE-2025-61726: The net/url package does not set a limit on the number of query parameters in a query. While the max
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 large form containing many unique query parameters can cause excessive memo
nvd
CVE-2025-68119HIGHCVSS 7.0fixed in 1.24.12≥ 1.25.0, < 1.25.62026-01-28
CVE-2025-68119 [HIGH] CWE-787 CVE-2025-68119: Downloading and building modules with malicious version strings can cause local code execution. On s
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 constructed. This issue can also be triggered by providing a malicious ve
nvd
CVE-2025-61731HIGHCVSS 7.8fixed in 1.24.12≥ 1.25.0, < 1.25.62026-01-28
CVE-2025-61731 [HIGH] CVE-2025-61731: Building a malicious file with cmd/go can cause can cause a write to an attacker-controlled file wit
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 provide a "--log-file" argument to this directive, causing pkg-config to write t
nvd
CVE-2025-61728MEDIUMCVSS 6.5fixed in 1.24.12≥ 1.25.0, < 1.25.62026-01-28
CVE-2025-61728 [MEDIUM] CWE-770 CVE-2025-61728: archive/zip uses a super-linear file name indexing algorithm that is invoked the first time a file i
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.
nvd
CVE-2025-61730MEDIUMCVSS 5.3fixed in 1.24.12≥ 1.25.0, < 1.25.62026-01-28
CVE-2025-61730 [MEDIUM] CVE-2025-61730: During the TLS 1.3 handshake if multiple messages are sent in records that span encryption level bou
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 information disclosure if a network-local attacker can inject messages during th
nvd
CVE-2025-61727MEDIUMCVSS 6.5fixed in 1.24.11≥ 1.25, < 1.25.52025-12-03
CVE-2025-61727 [MEDIUM] CWE-295 CVE-2025-61727: An excluded subdomain constraint in a certificate chain does not restrict the usage of wildcard SANs
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.
nvd
CVE-2025-61729HIGHCVSS 7.5fixed in 1.24.11≥ 1.25.0, < 1.25.52025-12-02
CVE-2025-61729 [HIGH] CWE-295 CVE-2025-61729: Within HostnameError.Error(), when constructing an error string, there is no limit to the number of
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 malicious actor can result in excessive resource consumption.
nvd
CVE-2025-58188HIGHCVSS 7.5fixed in 1.24.8≥ 1.25.0, < 1.25.22025-10-29
CVE-2025-58188 [HIGH] CWE-295 CVE-2025-58188: Validating certificate chains which contain DSA public keys can cause programs to panic, due to a in
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.
nvd
CVE-2025-61723HIGHCVSS 7.5fixed in 1.24.8≥ 1.25.0, < 1.25.22025-10-29
CVE-2025-61723 [HIGH] CWE-770 CVE-2025-61723: The processing time for parsing some invalid inputs scales non-linearly with respect to the size of
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.
nvd
CVE-2025-58187HIGHCVSS 7.5fixed in 1.24.9≥ 1.25.0, < 1.25.32025-10-29
CVE-2025-58187 [HIGH] CWE-407 CVE-2025-58187: Due to the design of the name constraint checking algorithm, the processing time of some inputs scal
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.
nvd
CVE-2025-58189MEDIUMCVSS 5.3fixed in 1.24.8≥ 1.25.0, < 1.25.22025-10-29
CVE-2025-58189 [MEDIUM] CWE-532 CVE-2025-58189: When Conn.Handshake fails during ALPN negotiation the error contains attacker controlled information
When Conn.Handshake fails during ALPN negotiation the error contains attacker controlled information (the ALPN protocols sent by the client) which is not escaped.
nvd
CVE-2025-61724MEDIUMCVSS 5.3fixed in 1.24.8≥ 1.25.0, < 1.25.22025-10-29
CVE-2025-61724 [MEDIUM] CWE-770 CVE-2025-61724: The Reader.ReadResponse function constructs a response string through repeated string concatenation
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.
nvd
CVE-2025-58185MEDIUMCVSS 5.3fixed in 1.24.8≥ 1.25.0, < 1.25.22025-10-29
CVE-2025-58185 [MEDIUM] CWE-770 CVE-2025-58185: Parsing a maliciously crafted DER payload could allocate large amounts of memory, causing memory exh
Parsing a maliciously crafted DER payload could allocate large amounts of memory, causing memory exhaustion.
nvd
CVE-2025-47912MEDIUMCVSS 5.3fixed in 1.24.8≥ 1.25.0, < 1.25.22025-10-29
CVE-2025-47912 [MEDIUM] CVE-2025-47912: The Parse function permits values other than IPv6 addresses to be included in square brackets within
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 addresses and hostnames must not appear within square brackets. Parse did not enforce t
nvd
CVE-2025-47906MEDIUMCVSS 6.5fixed in 1.23.12≥ 1.24.0, < 1.24.62025-09-18
CVE-2025-47906 [MEDIUM] CVE-2025-47906: If the PATH environment variable contains paths which are executables (rather than just directories)
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.
nvd
CVE-2025-47907HIGHCVSS 7.0fixed in 1.23.12≥ 1.24.0, < 1.24.62025-08-07
CVE-2025-47907 [HIGH] CWE-362 CVE-2025-47907: Cancelling a query (e.g. by cancelling the context passed to one of the query methods) during a call
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 expected results with those of another query, causing the call to Scan to r
nvd
CVE-2025-4674HIGHCVSS 8.6fixed in 1.23.11≥ 1.24.0, < 1.24.52025-07-29
CVE-2025-4674 [HIGH] CWE-73 CVE-2025-4674: The go command may execute unexpected commands when operating in untrusted VCS repositories. This oc
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 VCS (e.g. Mercurial). Modules which are retrieved using the go command line,
nvd
1 / 8Next →