Golang vulnerabilities
Every CVE BreachSpider tracks for Golang, with affected versions, the vendor's fix and the advisory. Send a device's exact version to learn which of these apply to it.
CVEs240
Critical (CVSS 9+)28
High (7 to 8.9)133
Known-exploited2
Golang products with the most CVEs
Go 174Crypto 21Net 12Http2 5Image 5Text 4Ssh 3Tiff 3Networking 2Gopls 1H2C 1Hpack 1Package Ssh 1Protobuf 1
A product appearing here does not mean every version is affected. Each CVE lists the affected versions; the free check answers for the version you run.
Golang's own CVEs by priority
CVE-2026-4659510.0Previously, CVE-2024-45337 fixed an authorization bypass for misused ssh server configu...CVE-2025-6812110.0During session resumption in crypto/tls, if the underlying Config has its ClientCAs or ...CVE-2026-271439.8Arithmetic over induction variables in loops were not correctly checked for underflow o...CVE-2024-247909.8The various Is methods (IsPrivate, IsLoopback, etc) did not work as expected for IPv4-m...CVE-2023-393209.8The go.mod toolchain directive, introduced in Go 1.21, can be leveraged to execute scri...CVE-2023-245409.8Not all valid JavaScript whitespace characters are considered to be whitespace. Templat...CVE-2021-382979.8Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in ...CVE-2019-148099.8net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URL...CVE-2017-150419.8Go before 1.8.4 and 1.9.x before 1.9.1 allows "go get" remote command execution. Using ...CVE-2015-57419.8The net/http library in net/http/transfer.go in Go before 1.4.3 does not properly parse...CVE-2015-57409.8The net/http library in net/http/transfer.go in Go before 1.4.3 does not properly parse...CVE-2015-57399.8The net/http library in net/textproto/reader.go in Go before 1.4.3 does not properly pa...CVE-2012-26669.8golang/go in 1.0.2 fixes all.bash on shared machines. dotest() in src/pkg/debug/gosym/p...CVE-2026-398219.6The ToASCII and ToUnicode functions incorrectly accept Punycode-encoded labels that dec...CVE-2026-425089.1Previously, a revoked 'SignatureKey' belonging to a CA was not correctly checked for re...CVE-2026-398349.1When writing data larger than 4GB in a single Write call on an SSH channel, an integer ...CVE-2026-398339.1The in-memory keyring returned by NewKeyring() silently accepted keys with the ConfirmB...CVE-2026-398329.1When adding a key to a remote agent constraint extensions such as restrict-destination-...CVE-2026-398319.1The Verify() method for FIDO/U2F security key types ([email protected]...CVE-2026-398309.1A malicious SSH peer could send unsolicited global request responses to fill an interna...CVE-2026-425038.8gopls by default communicates via pipe. However, -port and -listen flags are supported ...CVE-2026-271408.8SWIG file names containing 'cgo' and well-crafted payloads could lead to code smuggling...CVE-2018-71878.8The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used...CVE-2025-617328.6A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling ...CVE-2025-46748.6The go command may execute unexpected commands when operating in untrusted VCS reposito...CVE-2026-338108.2When verifying a certificate chain containing excluded DNS constraints, these constrain...CVE-2019-64868.2Go before 1.10.8 and 1.11.x before 1.11.5 mishandles P-521 and P-384 elliptic curves, w...CVE-2023-393238.1Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" direct...CVE-2018-168748.1In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to dir...CVE-2018-168738.1In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to rem...CVE-2017-32048.1The Go SSH library (x/crypto/ssh) by default does not verify host keys, facilitating ma...CVE-2026-398227.8On Unix systems, opening a file in an os.Root improperly follows symlinks to locations ...CVE-2025-617317.8Building a malicious file with cmd/go can cause can cause a write to an attacker-contro...CVE-2023-294037.8On Unix platforms, the Go runtime does not behave differently when a binary is run with...CVE-2022-305807.8Code injection in Cmd.Start in os/exec before Go 1.17.11 and Go 1.18.3 allows execution...CVE-2018-65747.8Go before 1.8.7, Go 1.9.x before 1.9.4, and Go 1.10 pre-releases before Go 1.10rc2 allo...CVE-2016-39587.8Untrusted search path vulnerability in Go before 1.5.4 and 1.6.x before 1.6.1 on Window...CVE-2026-786627.5Previously, a channel registered in the mux's chanList is not usable until it is establ...CVE-2026-568557.5Previously, after a channel has been established, a malicious peer could send crafted m...CVE-2026-466047.5The TIFF decoder can panic when decoding an invalid image with an out-of-bounds strip offset.CVE-2026-465977.5An incorrectly placed cast from bytes to int allowed for server-side panic in the AES-G...CVE-2026-425017.5A malicious module proxy can exploit a flaw in the go command's validation of module ch...CVE-2026-424997.5Pathological inputs could cause DoS through consumePhrase when parsing an email address...CVE-2026-398367.5The Dial and LookupPort functions panic on Windows when provided with an input containi...CVE-2026-398297.5The RSA and DSA public key parsers did not enforce size limits on key parameters. A cra...CVE-2026-398207.5Well-crafted inputs reaching ParseAddress, ParseAddressList, and ParseDate were able to...CVE-2026-338147.5When processing HTTP/2 SETTINGS frames, transport will enter an infinite loop of writin...CVE-2026-338137.5Parsing a WEBP image with an invalid, large size panics on 32-bit platforms.CVE-2026-338117.5When using LookupCNAME with the cgo DNS resolver, a very long CNAME response can trigge...CVE-2026-322837.5If one side of the TLS connection sends multiple key update messages post-handshake in ...CVE-2026-322817.5Validating certificate chains which use policies is unexpectedly inefficient when certi...CVE-2026-322807.5During chain building, the amount of work that is done is not correctly limited when a ...CVE-2026-271377.5When verifying a certificate chain which contains a certificate containing multiple ema...CVE-2026-256797.5url.Parse insufficiently validated the host/authority component and accepted some invalid URLs.CVE-2025-617297.5Within HostnameError.Error(), when constructing an error string, there is no limit to t...CVE-2025-617267.5The net/url package does not set a limit on the number of query parameters in a query. ...CVE-2025-617237.5The processing time for parsing some invalid inputs scales non-linearly with respect to...CVE-2025-581887.5Validating certificate chains which contain DSA public keys can cause programs to panic...CVE-2025-581877.5Due to the design of the name constraint checking algorithm, the processing time of som...CVE-2025-302047.5golang-jwt is a Go implementation of JSON Web Tokens. Starting in version 3.2.0 and pri...CVE-2023-452877.5Before Go 1.20, the RSA based TLS key exchanges used the math/big library, which is not...CVE-2023-452857.5Using go get to fetch a module with the ".git" suffix may unexpectedly fallback to the ...CVE-2023-393227.5QUIC connections do not set an upper bound on the amount of data buffered when reading ...CVE-2023-393217.5Processing an incomplete post-handshake message for a QUIC connection can cause a panic.CVE-2023-245377.5Calling any of the Parse functions on Go source code which contains //line directives w...CVE-2023-245367.5Multipart form parsing can consume large amounts of CPU and memory when processing form...CVE-2023-245347.5HTTP and MIME header parsing can allocate large amounts of memory, even when parsing sm...CVE-2022-417257.5A denial of service is possible from excessive resource consumption in net/http and mim...CVE-2022-417247.5Large handshake records may cause panics in crypto/tls. Both clients and servers may se...CVE-2022-417217.5A request smuggling attack is possible when using MaxBytesHandler. When using MaxBytesH...CVE-2022-321907.5JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative path. ...CVE-2022-321897.5A too-short encoded message can cause a panic in Float.GobDecode and Rat GobDecode in m...CVE-2022-321497.5An attacker may cause a denial of service by crafting an Accept-Language header which P...CVE-2022-306357.5Uncontrolled recursion in Decoder.Decode in encoding/gob before Go 1.17.12 and Go 1.18....CVE-2022-306337.5Uncontrolled recursion in Unmarshal in encoding/xml before Go 1.17.12 and Go 1.18.4 all...CVE-2022-306327.5Uncontrolled recursion in Glob in path/filepath before Go 1.17.12 and Go 1.18.4 allows ...CVE-2022-306317.5Uncontrolled recursion in Reader.Read in compress/gzip before Go 1.17.12 and Go 1.18.4 ...CVE-2022-306307.5Uncontrolled recursion in Glob in io/fs before Go 1.17.12 and Go 1.18.4 allows an attac...CVE-2022-28797.5Reader.Read does not set a limit on the maximum size of file headers. A maliciously cra...CVE-2022-276647.5In net/http in Go before 1.18.6 and 1.19.x before 1.19.1, attackers can cause a denial ...CVE-2022-271917.5The golang.org/x/crypto/ssh package before 0.0.0-20220314234659-1baeb1ce4c0b for Go all...CVE-2021-435657.5The x/crypto/ssh package before 0.0.0-20211202192323-5770296d904e of golang.org/x/crypt...CVE-2021-385617.5golang.org/x/text/language in golang.org/x/text before 0.3.7 can panic with an out-of-b...CVE-2021-331987.5In Go before 1.15.13 and 1.16.x before 1.16.5, there can be a panic for a large exponen...CVE-2021-331947.5golang.org/x/net before v0.0.0-20210520170846-37e1c6afe023 allows attackers to cause a ...CVE-2021-279187.5encoding/xml in Go before 1.15.9 and 1.16.x before 1.16.1 has an infinite loop if a cus...CVE-2020-92837.5golang.org/x/crypto before v0.0.0-20200220183623-bac4c82f6975 for Go allows a panic dur...CVE-2020-296527.5A nil pointer dereference in the golang.org/x/crypto/ssh component through v0.0.0-20201...CVE-2020-288527.5In x/text in Go before v0.3.5, a "slice bounds out of range" panic occurs in language.P...CVE-2020-288517.5In x/text in Go 1.15.4, an "index out of range" panic occurs in language.ParseAcceptLan...CVE-2020-283677.5Code injection in the go command with cgo before Go 1.14.12 and Go 1.15.5 allows arbitr...CVE-2020-168457.5Go before 1.13.15 and 14.x before 1.14.7 can have an infinite read loop in ReadUvarint ...CVE-2020-140407.5The x/text package before 0.3.3 for Go has a vulnerability in encoding/unicode that cou...CVE-2018-178487.5The html package (aka x/net/html) through 2018-09-25 in Go mishandles <math><template><...CVE-2018-178477.5The html package (aka x/net/html) through 2018-09-25 in Go mishandles <svg><template><d...CVE-2018-178467.5The html package (aka x/net/html) through 2018-09-25 in Go mishandles <table><math><sel...CVE-2018-171437.5The html package (aka x/net/html) through 2018-09-17 in Go mishandles <template><tBody>...CVE-2018-171427.5The html package (aka x/net/html) through 2018-09-17 in Go mishandles <math><template><...CVE-2018-170757.5The html package (aka x/net/html) before 2018-07-13 in Go mishandles "in frameset" inse...CVE-2018-168757.5The crypto/x509 package of Go before 1.10.6 and 1.11.x before 1.11.3 does not limit the...CVE-2017-10000987.5The net/http package's Request.ParseMultipartForm method starts writing to temporary fi...CVE-2017-10000977.5On Darwin, user's trust preferences for root certificates were not honored. If the user...CVE-2016-39597.5The Verify function in crypto/dsa/dsa.go in Go before 1.5.4 and 1.6.x before 1.6.1 does...CVE-2015-86187.5The Int.Exp Montgomery code in the math/big library in Go 1.5.x before 1.5.3 mishandles...CVE-2023-294007.3Templates containing actions in unquoted HTML attributes (e.g. "attr={{.}}") executed w...CVE-2023-245397.3Angle brackets (<>) are not considered dangerous characters when inserted into CSS cont...CVE-2026-271447.1The compiler is meant to unwrap pointers which are the operands of a memory move; a no-...CVE-2025-681197.0Downloading and building modules with malicious version strings can cause local code ex...CVE-2025-479077.0Cancelling a query (e.g. by cancelling the context passed to one of the query methods) ...CVE-2026-398276.5An authenticated SSH client that repeatedly opened channels which were rejected by the ...CVE-2026-256806.5Parsing arbitrary HTML can consume excessive CPU time, possibly leading to denial of service.CVE-2025-617286.5archive/zip uses a super-linear file name indexing algorithm that is invoked the first ...CVE-2025-617276.5An excluded subdomain constraint in a certificate chain does not restrict the usage of ...CVE-2025-479066.5If the PATH environment variable contains paths which are executables (rather than just...CVE-2023-294086.5The TIFF decoder does not place a limit on the size of compressed tile data. A maliciou...CVE-2023-294076.5A maliciously-crafted image can cause excessive CPU consumption in decoding. A tiled im...CVE-2022-17056.5Acceptance of some invalid Transfer-Encoding headers in the HTTP/1 client in net/http b...CVE-2026-322826.4On Linux, if the target of Root.Chmod is replaced with a symlink while the chmod operat...CVE-2026-398286.3When an SSH server authentication callback returned PartialSuccessError with non-nil Pe...CVE-2026-425066.1Parsing arbitrary HTML which is then rendered using Render can result in an unexpected ...CVE-2026-425026.1Parsing arbitrary HTML which is then rendered using Render can result in an unexpected ...CVE-2026-398266.1If a trusted template author were to write a <script> tag containing an empty 'type' at...CVE-2026-398236.1CVE-2026-27142 fixed a vulnerability in which URLs were not correctly escaped inside of...CVE-2026-338126.1Parsing a malicious font file can cause excessive memory allocation.CVE-2026-322896.1Context was not properly tracked across template branches for JS template literals, lea...CVE-2026-271426.1Actions which insert URLs into the content attribute of HTML meta tags are not escaped....CVE-2026-271366.1Parsing arbitrary HTML which is then rendered using Render can result in an unexpected ...CVE-2026-256816.1Parsing arbitrary HTML which is then rendered using Render can result in an unexpected ...CVE-2023-39786.1Text nodes not in the HTML namespace are incorrectly literally rendered, causing text w...CVE-2023-393196.1The html/template package does not apply the proper rules for handling occurrences of "...CVE-2023-393186.1The html/template package does not properly handle HTML-like "" comment tokens, nor has...CVE-2019-97416.1An issue was discovered in net/http in Go 1.11.5. CRLF injection is possible if the att...CVE-2026-398175.9The "go tool pack" subcommand (usually used only by the compiler as an internal tool wi...CVE-2026-271385.9Certificate verification can panic when a certificate in the chain has an empty DNS nam...CVE-2021-315255.9net/http in Go before 1.15.12 and 1.16.x before 1.16.4 allows remote attackers to cause...CVE-2019-118415.9A message-forgery issue was discovered in crypto/openpgp/clearsign/clearsign.go in supp...CVE-2019-118405.9An issue was discovered in the supplementary Go cryptography library, golang.org/x/cryp...CVE-2017-150425.9An unintended cleartext issue exists in Go before 1.8.4 and 1.9.x before 1.9.1. RFC 495...CVE-2026-322885.5tar.Reader can allocate an unbounded amount of memory when reading a maliciously-crafte...CVE-2024-247895.5The archive/zip package's handling of certain types of invalid zip files differs from t...CVE-2022-417275.5An attacker can craft a malformed TIFF image which will consume a significant amount of...CVE-2022-19625.5Uncontrolled recursion in the Parse functions in go/parser before Go 1.17.12 and Go 1.1...CVE-2021-279195.5archive/zip in Go 1.16.x before 1.16.1 allows attackers to cause a denial of service (p...CVE-2026-465985.3For certain crafted inputs, a 'ed25519.PrivateKey' was created by casting malformed wir...CVE-2026-425055.3Handshakes which used Encrypted Client Hello could be de-anonymized by a passive networ...CVE-2026-398355.3SSH servers which use CertChecker as a public key callback without setting IsUserAuthor...CVE-2026-398255.3ReverseProxy can forward queries containing parameters not visible to Rewrite functions...CVE-2026-398195.3The "go bug" command writes to two files with predictable names in the system temporary...CVE-2026-338095.3A maliciously crafted TIFF file can cause image decoding to attempt to allocate up 4GiB...CVE-2025-617305.3During the TLS 1.3 handshake if multiple messages are sent in records that span encrypt...CVE-2025-617245.3The Reader.ReadResponse function constructs a response string through repeated string c...CVE-2025-581895.3When Conn.Handshake fails during ALPN negotiation the error contains attacker controlle...CVE-2025-581855.3Parsing a maliciously crafted DER payload could allocate large amounts of memory, causi...CVE-2025-581815.3SSH servers parsing GSSAPI authentication requests do not validate the number of mechan...CVE-2025-479145.3SSH Agent servers do not validate the size of messages when processing new identity req...CVE-2025-479125.3The Parse function permits values other than IPv6 addresses to be included in square br...CVE-2023-393265.3A malicious HTTP sender can use chunk extensions to cause a receiver reading from a req...CVE-2023-245325.3The ScalarMult and ScalarBaseMult methods of the P256 Curve may return an incorrect res...CVE-2021-331975.3In Go before 1.15.13 and 1.16.x before 1.16.5, some configurations of ReverseProxy (fro...CVE-2020-140395.3In Go before 1.13.13 and 1.14.x before 1.14.5, Certificate.Verify may lack a check on t...CVE-2014-71894.3crpyto/tls in Go 1.1 before 1.3.2, when SessionTicketsDisabled is enabled, allows man-i...CVE-2025-228733.8It was possible to improperly access the parent directory of an os.Root by opening a fi...CVE-2022-306293.1Non-random values for ticket_age_add in session tickets in crypto/tls before Go 1.17.11...CVE-2026-271392.5On Unix platforms, when listing the contents of a directory using File.ReadDir or File....
Showing the 164 highest-scored of 240. Every CVE has its own page, and the API returns all of them for a device.
Third-party components in Golang products
CVEs filed for software that Golang products include, such as an operating system or library. They affect the Golang products and versions named on each CVE page.
CVE-2020-06018.1KEVMicrosoft, Rockwell Automation: A spoofing vulnerability exists in the way Windows CryptoAPI (Crypt...CVE-2023-444877.5KEVAkka, Amazon: The HTTP/2 protocol allows a denial of service (server resource con...CVE-2023-294059.8Siemens: The go command may execute arbitrary code at build time when using ...CVE-2023-294049.8Siemens: The go command may execute arbitrary code at build time when using ...CVE-2023-294029.8Siemens: The go command may generate unexpected code at build time when usin...CVE-2023-245389.8Siemens: Templates do not properly consider backticks (`) as Javascript stri...CVE-2019-118889.8Microsoft: Go through 1.12.5 on Windows mishandles process creation with a nil...CVE-2025-666309.4Gofiber: Fiber is an Express inspired web framework written in Go. Before 2....CVE-2024-453379.1Associated, Callback: Applications and libraries which misuse connection.serverAuthentica...CVE-2022-238069.1Netapp: Curve.IsOnCurve in crypto/elliptic in Go before 1.16.14 and 1.17.x ...CVE-2021-237728.8Iris-Go: This affects all versions of package github.com/kataras/iris; all v...CVE-2021-31218.6Hashicorp: An issue was discovered in GoGo Protobuf before 1.3.2. plugin/unmar...CVE-2025-276168.5Linux: Vela is a Pipeline Automation (CI/CD) framework built on Linux cont...CVE-2016-53868.1Oracle: The net/http package in Go through 1.6 does not attempt to address ...CVE-2019-96347.8Microsoft: Go through 1.12 on Windows misuses certain LoadLibrary functionalit...CVE-2024-44387.5Etcd, Linux: The etcd package distributed with the Red Hat OpenStack platform ha...CVE-2024-44377.5Etcd, Linux: The etcd package distributed with the Red Hat OpenStack platform ha...CVE-2024-44367.5Etcd, Linux: The etcd package distributed with the Red Hat OpenStack platform ha...CVE-2024-329727.5Ethereum, Protocol: go-ethereum (geth) is a golang execution layer implementation of th...CVE-2024-13947.5Github, Openssl: A memory leak flaw was found in Golang in the RSA encrypting/decryp...CVE-2023-543657.5Traefik: Traefik before 2.10.5 and 3.0.0-beta4 is affected by a denial-of-se...CVE-2023-463247.5Free5Gc: pkg/suci/suci.go in free5GC udm before 1.2.0, when Go before 1.19 i...CVE-2023-452837.5Microsoft: The filepath package does not recognize paths with a \??\ prefix as...CVE-2023-393257.5Netapp: A malicious HTTP/2 client which rapidly creates requests and immedi...CVE-2022-417237.5Siemens: A maliciously crafted HTTP/2 stream could cause excessive CPU consu...CVE-2022-417227.5Microsoft: A path traversal vulnerability exists in filepath.Clean on Windows....CVE-2022-417207.5Microsoft: On Windows, restricted files can be accessed via os.DirFS and http....CVE-2022-417167.5Microsoft: Due to unsanitized NUL values, attackers may be able to maliciously...CVE-2022-417157.5Siemens: Programs which compile regular expressions from untrusted sources m...CVE-2022-306347.5Microsoft, Netapp: Infinite loop in Read in crypto/rand before Go 1.17.11 and Go 1.18....
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Golang","product":"Go","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.