Go runtime vulnerabilities

Go is a language runtime (its releases): every project written for it is exposed to its vulnerabilities, whatever packages it uses. Its advisories come from the NVD.

Recent advisories for Go

  • Critical CVSS 9.8

    CVE-2023-24538: Templates do not properly consider backticks (`) as Javascript string delimiters, and do not escape them as expected.

  • Critical CVSS 9.8

    CVE-2023-24540: Not all valid JavaScript whitespace characters are considered to be whitespace.

  • Critical CVSS 9.8

    CVE-2023-29402: The go command may generate unexpected code at build time when using cgo.

  • Critical CVSS 9.8

    CVE-2023-29404: The go command may execute arbitrary code at build time when using cgo.

  • Critical CVSS 9.8

    CVE-2023-29405: The go command may execute arbitrary code at build time when using cgo.

  • Critical CVSS 9.8

    CVE-2023-39320: 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.

  • Critical CVSS 9.8

    CVE-2024-24790: 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.

  • Critical CVSS 10.0

    CVE-2025-68121: 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...

  • Critical CVSS 9.8

    CVE-2026-27143: Arithmetic over induction variables in loops were not correctly checked for underflow or overflow.

  • High CVSS 7.5

    CVE-2022-27664: In net/http in Go before 1.18.6 and 1.19.x before 1.19.1, attackers can cause a denial of service because an HTTP/2 connection can hang during closing if shutdown were preempted by a fatal error.

  • High CVSS 7.5

    CVE-2022-2879: Reader.Read does not set a limit on the maximum size of file headers.

  • High CVSS 7.5

    CVE-2022-2880: Requests forwarded by ReverseProxy include the raw query parameters from the inbound request, including unparsable parameters rejected by net/http.

  • High CVSS 7.8

    CVE-2022-30580: Code injection in Cmd.Start in os/exec before Go 1.17.11 and Go 1.18.3 allows execution of any binaries in the working directory named either "..com" or "..exe" by calling Cmd.Run, Cmd.Start,...

  • High CVSS 7.5

    CVE-2022-30630: Uncontrolled recursion in Glob in io/fs before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a path which contains a large number of path separators.

  • High CVSS 7.5

    CVE-2022-30631: Uncontrolled recursion in Reader.Read in compress/gzip before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via an archive containing a large number of...

  • High CVSS 7.5

    CVE-2022-30632: Uncontrolled recursion in Glob in path/filepath before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a path containing a large number of path separators.

  • High CVSS 7.5

    CVE-2022-30633: Uncontrolled recursion in Unmarshal in encoding/xml before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via unmarshalling an XML document into a Go struct...

  • High CVSS 7.5

    CVE-2022-30635: Uncontrolled recursion in Decoder.Decode in encoding/gob before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a message which contains deeply nested...

  • High CVSS 7.5

    CVE-2022-32189: A too-short encoded message can cause a panic in Float.GobDecode and Rat GobDecode in math/big in Go before 1.17.13 and 1.18.5, potentially allowing a denial of service.

  • High CVSS 7.5

    CVE-2022-32190: JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative path.

  • High CVSS 7.5

    CVE-2022-41715: Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service.

  • High CVSS 7.5

    CVE-2022-41716: Due to unsanitized NUL values, attackers may be able to maliciously set environment variables on Windows.

  • High CVSS 7.5

    CVE-2022-41720: On Windows, restricted files can be accessed via os.DirFS and http.Dir.

  • High CVSS 7.5

    CVE-2022-41722: A path traversal vulnerability exists in filepath.Clean on Windows.

  • High CVSS 7.5

    CVE-2022-41723: A maliciously crafted HTTP/2 stream could cause excessive CPU consumption in the HPACK decoder, sufficient to cause a denial of service from a small number of small requests.

  • High CVSS 7.5

    CVE-2022-41724: Large handshake records may cause panics in crypto/tls.

  • High CVSS 7.5

    CVE-2022-41725: A denial of service is possible from excessive resource consumption in net/http and mime/multipart.

  • High CVSS 7.5

    CVE-2023-24534: HTTP and MIME header parsing can allocate large amounts of memory, even when parsing small inputs, potentially leading to a denial of service.

  • High CVSS 7.5

    CVE-2023-24536: Multipart form parsing can consume large amounts of CPU and memory when processing form inputs containing very large numbers of parts.

  • High CVSS 7.5

    CVE-2023-24537: Calling any of the Parse functions on Go source code which contains //line directives with very large line numbers can cause an infinite loop due to integer overflow.

  • High CVSS 7.3

    CVE-2023-24539: Angle brackets (<>) are not considered dangerous characters when inserted into CSS contexts.

  • High CVSS 7.3

    CVE-2023-29400: Templates containing actions in unquoted HTML attributes (e.g.

  • High CVSS 7.8

    CVE-2023-29403: On Unix platforms, the Go runtime does not behave differently when a binary is run with the setuid/setgid bits.

  • High CVSS 7.5

    CVE-2023-39321: Processing an incomplete post-handshake message for a QUIC connection can cause a panic.

  • High CVSS 7.5

    CVE-2023-39322: 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.

  • High CVSS 8.1

    CVE-2023-39323: 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.

  • High CVSS 7.5

    CVE-2023-39325: A malicious HTTP/2 client which rapidly creates requests and immediately resets them can cause excessive server resource consumption.

  • High CVSS 7.5

    CVE-2023-44487: 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.

  • High CVSS 7.5

    CVE-2023-45283: The filepath package does not recognize paths with a \??\ prefix as special.

  • High CVSS 7.5

    CVE-2023-45285: 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,...

  • High CVSS 7.5

    CVE-2023-45287: Before Go 1.20, the RSA based TLS key exchanges used the math/big library, which is not constant time.

  • High CVSS 7.5

    CVE-2023-54365: Traefik before 2.10.5 and 3.0.0-beta4 is affected by a denial-of-service vulnerability in HTTP/2 request handling inherited from the Go standard library's HTTP/2 implementation (CVE-2023-44487 /...

  • High CVSS 8.6

    CVE-2025-4674: The go command may execute unexpected commands when operating in untrusted VCS repositories.

  • High CVSS 7.0

    CVE-2025-47907: Cancelling a query (e.g.

  • High CVSS 7.5

    CVE-2025-58187: 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.

  • High CVSS 7.5

    CVE-2025-58188: 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.

  • High CVSS 7.5

    CVE-2025-61723: The processing time for parsing some invalid inputs scales non-linearly with respect to the size of the input.

  • High CVSS 7.5

    CVE-2025-61726: The net/url package does not set a limit on the number of query parameters in a query.

  • High CVSS 7.5

    CVE-2025-61729: Within HostnameError.Error(), when constructing an error string, there is no limit to the number of hosts that will be printed out.

  • High CVSS 7.8

    CVE-2025-61731: 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.

  • High CVSS 8.6

    CVE-2025-61732: A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resulting cgo binary.

  • High CVSS 7.0

    CVE-2025-68119: Downloading and building modules with malicious version strings can cause local code execution.

  • High CVSS 7.5

    CVE-2026-25679: url.Parse insufficiently validated the host/authority component and accepted some invalid URLs.

  • High CVSS 7.5

    CVE-2026-27137: 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...

  • High CVSS 8.8

    CVE-2026-27140: SWIG file names containing 'cgo' and well-crafted payloads could lead to code smuggling and arbitrary code execution at build time due to trust layer bypass.

  • High CVSS 7.1

    CVE-2026-27144: The compiler is meant to unwrap pointers which are the operands of a memory move; a no-op interface conversion prevented the compiler from making the correct determination about non-overlapping...

  • High CVSS 7.5

    CVE-2026-32280: During chain building, the amount of work that is done is not correctly limited when a large number of intermediate certificates are passed in VerifyOptions.Intermediates, which can lead to a...

  • High CVSS 7.5

    CVE-2026-32281: Validating certificate chains which use policies is unexpectedly inefficient when certificates in the chain contain a very large number of policy mappings, possibly causing denial of service.

  • High CVSS 7.5

    CVE-2026-32283: If one side of the TLS connection sends multiple key update messages post-handshake in a single record, the connection can deadlock, causing uncontrolled consumption of resources.

  • High CVSS 8.2

    CVE-2026-33810: When verifying a certificate chain containing excluded DNS constraints, these constraints are not correctly applied to wildcard DNS SANs which use a different case than the constraint.

  • High CVSS 7.5

    CVE-2026-33811: When using LookupCNAME with the cgo DNS resolver, a very long CNAME response can trigger a double-free of C memory and a crash.

  • High CVSS 7.5

    CVE-2026-33814: When processing HTTP/2 SETTINGS frames, transport will enter an infinite loop of writing CONTINUATION frames if it receives a SETTINGS_MAX_FRAME_SIZE with a value of 0.

  • High CVSS 7.5

    CVE-2026-39820: Well-crafted inputs reaching ParseAddress, ParseAddressList, and ParseDate were able to trigger excessive CPU exhaustion and memory allocations.

  • High CVSS 7.8

    CVE-2026-39822: On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a symbolic link and the path ends in /.

  • High CVSS 7.5

    CVE-2026-39836: The Dial and LookupPort functions panic on Windows when provided with an input containing a NUL (0).

  • High CVSS 7.5

    CVE-2026-42499: Pathological inputs could cause DoS through consumePhrase when parsing an email address according to RFC 5322.

  • High CVSS 7.5

    CVE-2026-42501: A malicious module proxy can exploit a flaw in the go command's validation of module checksums to bypass checksum database validation.

  • Medium CVSS 6.5

    CVE-2022-32148: Improper exposure of client IP addresses in net/http before Go 1.17.12 and Go 1.18.4 can be triggered by calling httputil.ReverseProxy.ServeHTTP with a Request.Header map containing a nil value...

  • Medium CVSS 5.3

    CVE-2022-41717: An attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests.

  • Medium CVSS 5.3

    CVE-2023-24532: The ScalarMult and ScalarBaseMult methods of the P256 Curve may return an incorrect result if called with some specific unreduced scalars (a scalar larger than the order of the curve).

  • Medium CVSS 6.5

    CVE-2023-29406: The HTTP/1 client does not fully validate the contents of the Host header.

  • Medium CVSS 5.3

    CVE-2023-29409: Extremely large RSA keys in certificate chains can cause a client/server to expend significant CPU time verifying signatures.

  • Medium CVSS 6.1

    CVE-2023-39318: The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts.

  • Medium CVSS 6.1

    CVE-2023-39319: The html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within JS literals in <script> contexts.

  • Medium CVSS 5.3

    CVE-2023-39326: 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.

  • Medium CVSS 5.3

    CVE-2023-45284: On Windows, The IsLocal function does not correctly detect reserved device names in some cases.

  • Medium CVSS 5.5

    CVE-2024-24789: The archive/zip package's handling of certain types of invalid zip files differs from the behavior of most zip implementations.

  • Medium CVSS 5.5

    CVE-2025-0913: os.OpenFile(path, os.O_CREATE|O_EXCL) behaved differently on Unix and Windows systems when the target path was a dangling symlink.

  • Medium CVSS 6.5

    CVE-2025-47906: 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...

  • Medium CVSS 5.3

    CVE-2025-47912: The Parse function permits values other than IPv6 addresses to be included in square brackets within the host component of a URL.

  • Medium CVSS 5.3

    CVE-2025-58185: Parsing a maliciously crafted DER payload could allocate large amounts of memory, causing memory exhaustion.

  • Medium CVSS 5.3

    CVE-2025-58189: When Conn.Handshake fails during ALPN negotiation the error contains attacker controlled information (the ALPN protocols sent by the client) which is not escaped.

  • Medium CVSS 5.3

    CVE-2025-61724: The Reader.ReadResponse function constructs a response string through repeated string concatenation of lines.

  • Medium CVSS 6.5

    CVE-2025-61727: An excluded subdomain constraint in a certificate chain does not restrict the usage of wildcard SANs in the leaf certificate.

  • Medium CVSS 6.5

    CVE-2025-61728: archive/zip uses a super-linear file name indexing algorithm that is invoked the first time a file in an archive is opened.

  • Medium CVSS 5.3

    CVE-2025-61730: 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...

  • Medium CVSS 5.9

    CVE-2026-27138: 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.

  • Medium CVSS 6.1

    CVE-2026-27142: Actions which insert URLs into the content attribute of HTML meta tags are not escaped.

  • Medium CVSS 6.4

    CVE-2026-32282: On Linux, if the target of Root.Chmod is replaced with a symlink while the chmod operation is in progress, Chmod can operate on the target of the symlink, even when the target lies outside the root.

  • Medium CVSS 5.5

    CVE-2026-32288: tar.Reader can allocate an unbounded amount of memory when reading a maliciously-crafted archive containing a large number of sparse regions encoded in the "old GNU sparse map" format.

  • Medium CVSS 6.1

    CVE-2026-32289: Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect escaping of content when branches were used.

  • Medium CVSS 5.9

    CVE-2026-39817: The "go tool pack" subcommand (usually used only by the compiler as an internal tool with known-good inputs) does not sanitize output filenames.

  • Medium CVSS 5.3

    CVE-2026-39819: The "go bug" command writes to two files with predictable names in the system temporary directory (for example, "/tmp").

  • Medium CVSS 6.1

    CVE-2026-39823: CVE-2026-27142 fixed a vulnerability in which URLs were not correctly escaped inside of a <meta> tag's <content> attribute.

  • Medium CVSS 5.3

    CVE-2026-39825: ReverseProxy can forward queries containing parameters not visible to Rewrite functions.

  • Medium CVSS 6.1

    CVE-2026-39826: If a trusted template author were to write a <script> tag containing an empty 'type' attribute or a 'type' attribute with an ASCII whitespace, the execution of the template would incorrectly...

  • Medium CVSS 5.3

    CVE-2026-42505: Handshakes which used Encrypted Client Hello could be de-anonymized by a passive network observer due to a disclosure of pre-shared key identities in the unencrypted client hello.

  • Low CVSS 3.1

    CVE-2022-30629: Non-random values for ticket_age_add in session tickets in crypto/tls before Go 1.17.11 and Go 1.18.3 allow an attacker that can observe TLS handshakes to correlate successive connections by...

  • Low CVSS 3.8

    CVE-2025-22873: It was possible to improperly access the parent directory of an os.Root by opening a filename ending in "../".

  • Low CVSS 2.5

    CVE-2026-27139: 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.

Check your whole project

Go is one package among hundreds in a lockfile. Upload your lockfile, or paste a public GitHub repository, and get every vulnerable package with the version that fixes it. Free, and no account needed.

About this data

Vulnerability data: the NVD. Licences: deps.dev. These pages list the versions AIssue checks every day for the projects it monitors, not every version ever released.