Golang

61 CVEs across 14 Golang products. Browse Golang vulnerabilities, severities, and proof-of-concept exploits.

Golang products with known CVEs

ProductCVEs
Go174
Crypto19
Net12
Http25
Image5
Text4
Ssh3
Tiff3
Networking2
Archiver1
H2c1
Hpack1
Package Ssh1
Protobuf1
Golang CVEs — newest first
CVESeverityScorePublishedSummary
CVE-2026-42505Medium5.32026-07-08Handshakes 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 unenc…
CVE-2026-39822High7.82026-07-08On 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 sym…
CVE-2026-46604High7.52026-06-26The TIFF decoder can panic when decoding an invalid image with an out-of-bounds strip offset.
CVE-2023-54365High7.52026-06-23Traefik 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…
CVE-2026-42506Medium6.12026-05-22Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree. This can be leveraged to execute XSS attacks in applications…
CVE-2026-42502Medium6.12026-05-22Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree. This can be leveraged to execute XSS attacks in applications…
CVE-2026-39821Critical9.62026-05-22The ToASCII and ToUnicode functions incorrectly accept Punycode-encoded labels that decode to an ASCII-only label. For example, ToUnicode("xn--example-.com") i…
CVE-2026-27136Medium6.12026-05-22Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree. This can be leveraged to execute XSS attacks in applications…
CVE-2026-25681Medium6.12026-05-22Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree. This can be leveraged to execute XSS attacks in applications…
CVE-2026-25680Medium6.52026-05-22Parsing arbitrary HTML can consume excessive CPU time, possibly leading to denial of service.
CVE-2026-46598Medium5.32026-05-22For certain crafted inputs, a 'ed25519.PrivateKey' was created by casting malformed wire bytes, leading to a panic when used.
CVE-2026-46597High7.52026-05-22An incorrectly placed cast from bytes to int allowed for server-side panic in the AES-GCM packet decoder for well-crafted inputs.
CVE-2026-46595Critical10.02026-05-22Previously, CVE-2024-45337 fixed an authorization bypass for misused ssh server configurations; if any other type of callback is passed other than public key…
CVE-2026-42508Critical9.12026-05-22Previously, a revoked 'SignatureKey' belonging to a CA was not correctly checked for revocation. Now, both the 'key' and 'key.SignatureKey' are checked for @re…
CVE-2026-39835Medium5.32026-05-22SSH servers which use CertChecker as a public key callback without setting IsUserAuthority or IsHostAuthority could be caused to panic by a client presenting a…
CVE-2026-39834Critical9.12026-05-22When writing data larger than 4GB in a single Write call on an SSH channel, an integer overflow in the internal payload size calculation caused the write loop…
CVE-2026-39833Critical9.12026-05-22The in-memory keyring returned by NewKeyring() silently accepted keys with the ConfirmBeforeUse constraint but never enforced it. The key would sign without an…
CVE-2026-39832Critical9.12026-05-22When adding a key to a remote agent constraint extensions such as restrict-destination-v00@openssh.com were not serialized in the request. Destination restrict…
CVE-2026-39831Critical9.12026-05-22The Verify() method for FIDO/U2F security key types (sk-ecdsa-sha2-nistp256@openssh.com, sk-ssh-ed25519@openssh.com) did not check the User Presence flag. Sign…
CVE-2026-39830Critical9.12026-05-22A malicious SSH peer could send unsolicited global request responses to fill an internal buffer, blocking the connection's read loop. The blocked goroutine cou…
CVE-2026-39829High7.52026-05-22The RSA and DSA public key parsers did not enforce size limits on key parameters. A crafted public key with an excessively large modulus or DSA parameter could…
CVE-2026-39828Medium6.32026-05-22When an SSH server authentication callback returned PartialSuccessError with non-nil Permissions, those permissions were silently discarded, potentially droppi…
CVE-2026-39827Medium6.52026-05-22An authenticated SSH client that repeatedly opened channels which were rejected by the server caused unbounded memory growth, eventually crashing the server pr…
CVE-2026-42501High7.52026-05-07A malicious module proxy can exploit a flaw in the go command's validation of module checksums to bypass checksum database validation. This vulnerability affec…
CVE-2026-42499High7.52026-05-07Pathological inputs could cause DoS through consumePhrase when parsing an email address according to RFC 5322.
CVE-2026-39836High7.52026-05-07The Dial and LookupPort functions panic on Windows when provided with an input containing a NUL (0).
CVE-2026-39826Medium6.12026-05-07If 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…
CVE-2026-39825Medium5.32026-05-07ReverseProxy can forward queries containing parameters not visible to Rewrite functions. When used with a Rewrite function, or a Director function which parses…
CVE-2026-39823Medium6.12026-05-07CVE-2026-27142 fixed a vulnerability in which URLs were not correctly escaped inside of a <meta> tag's <content> attribute. If the URL content were to insert A…
CVE-2026-39820High7.52026-05-07Well-crafted inputs reaching ParseAddress, ParseAddressList, and ParseDate were able to trigger excessive CPU exhaustion and memory allocations.
CVE-2026-39819Medium5.32026-05-07The "go bug" command writes to two files with predictable names in the system temporary directory (for example, "/tmp"). An attacker with access to the tempora…
CVE-2026-39817Medium5.92026-05-07The "go tool pack" subcommand (usually used only by the compiler as an internal tool with known-good inputs) does not sanitize output filenames. Extracting a m…
CVE-2026-33814High7.52026-05-07When 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 va…
CVE-2026-33811High7.52026-05-07When using LookupCNAME with the cgo DNS resolver, a very long CNAME response can trigger a double-free of C memory and a crash.
CVE-2026-33813High7.52026-04-21Parsing a WEBP image with an invalid, large size panics on 32-bit platforms.
CVE-2026-33812Medium6.12026-04-21Parsing a malicious font file can cause excessive memory allocation.
CVE-2026-33810High8.22026-04-08When verifying a certificate chain containing excluded DNS constraints, these constraints are not correctly applied to wildcard DNS SANs which use a different…
CVE-2026-32289Medium6.12026-04-08Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect escaping of content when branches were used…
CVE-2026-32288Medium5.52026-04-08tar.Reader can allocate an unbounded amount of memory when reading a maliciously-crafted archive containing a large number of sparse regions encoded in the "ol…
CVE-2026-32283High7.52026-04-08If one side of the TLS connection sends multiple key update messages post-handshake in a single record, the connection can deadlock, causing uncontrolled consu…
CVE-2026-32282Medium6.42026-04-08On 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…
CVE-2026-32281High7.52026-04-08Validating certificate chains which use policies is unexpectedly inefficient when certificates in the chain contain a very large number of policy mappings, pos…
CVE-2026-32280High7.52026-04-08During chain building, the amount of work that is done is not correctly limited when a large number of intermediate certificates are passed in VerifyOptions.In…
CVE-2026-27144High7.12026-04-08The 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 d…
CVE-2026-27143Critical9.82026-04-08Arithmetic over induction variables in loops were not correctly checked for underflow or overflow. As a result, the compiler would allow for invalid indexing t…
CVE-2026-27140High8.82026-04-08SWIG 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.
CVE-2026-33809Medium5.32026-03-25A maliciously crafted TIFF file can cause image decoding to attempt to allocate up 4GiB of memory, causing either excessive resource consumption or an out-of-m…
CVE-2026-27142Medium6.12026-03-06Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute wit…
CVE-2026-27139Low2.52026-03-06On 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…
CVE-2026-27138Medium5.92026-03-06Certificate verification can panic when a certificate in the chain has an empty DNS name and another certificate in the chain has excluded name constraints. Th…
CVE-2026-27137High7.52026-03-06When verifying a certificate chain which contains a certificate containing multiple email address constraints which share common local portions but different d…
CVE-2026-25679High7.52026-03-06url.Parse insufficiently validated the host/authority component and accepted some invalid URLs.
CVE-2025-66630Critical9.42026-02-09Fiber is an Express inspired web framework written in Go. Before 2.52.11, on Go versions prior to 1.24, the underlying crypto/rand implementation can return an…
CVE-2025-68121Critical10.02026-02-05During session resumption in crypto/tls, if the underlying Config has its ClientCAs or RootCAs fields mutated between the initial handshake and the resumed han…
CVE-2025-61732High8.62026-02-05A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resulting cgo binary.
CVE-2025-22873Low3.82026-02-04It 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 par…
CVE-2025-68119High7.02026-01-28Downloading and building modules with malicious version strings can cause local code execution. On systems with Mercurial (hg) installed, downloading modules f…
CVE-2025-61731High7.82026-01-28Building 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…
CVE-2025-61730Medium5.32026-01-28During the TLS 1.3 handshake if multiple messages are sent in records that span encryption level boundaries (for instance the Client Hello and Encrypted Extens…
CVE-2025-61728Medium6.52026-01-28archive/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 servic…
CVE-2025-61726High7.52026-01-28The 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…
CVE-2025-61727Medium6.52025-12-03An excluded subdomain constraint in a certificate chain does not restrict the usage of wildcard SANs in the leaf certificate. For example a constraint that exc…
CVE-2025-61729High7.52025-12-02Within HostnameError.Error(), when constructing an error string, there is no limit to the number of hosts that will be printed out. Furthermore, the error stri…
CVE-2025-58181Medium5.32025-11-19SSH servers parsing GSSAPI authentication requests do not validate the number of mechanisms specified in the request, allowing an attacker to cause unbounded m…
CVE-2025-47914Medium5.32025-11-19SSH Agent servers do not validate the size of messages when processing new identity requests, which may cause the program to panic if the message is malformed…
CVE-2025-61724Medium5.32025-10-29The Reader.ReadResponse function constructs a response string through repeated string concatenation of lines. When the number of lines in a response is large…
CVE-2025-61723High7.52025-10-29The 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…
CVE-2025-58189Medium5.32025-10-29When Conn.Handshake fails during ALPN negotiation the error contains attacker controlled information (the ALPN protocols sent by the client) which is not escap…
CVE-2025-58188High7.52025-10-29Validating certificate chains which contain DSA public keys can cause programs to panic, due to a interface cast that assumes they implement the Equal method…
CVE-2025-58187High7.52025-10-29Due 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…
CVE-2025-58185Medium5.32025-10-29Parsing a maliciously crafted DER payload could allocate large amounts of memory, causing memory exhaustion.
CVE-2025-47912Medium5.32025-10-29The 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 address…
CVE-2025-47906Medium6.52025-09-18If the PATH environment variable contains paths which are executables (rather than just directories), passing certain strings to LookPath ("", ".", and "..")…
CVE-2025-47907High7.02025-08-07Cancelling 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 unex…
CVE-2025-4674High8.62025-07-29The go command may execute unexpected commands when operating in untrusted VCS repositories. This occurs when possibly dangerous VCS configuration is present i…
CVE-2025-0913Medium5.52025-06-11os.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 wi…
CVE-2024-24790Critical9.82024-06-05The various Is methods (IsPrivate, IsLoopback, etc) did not work as expected for IPv4-mapped IPv6 addresses, returning false for addresses which would return t…
CVE-2024-24789Medium5.52024-06-05The archive/zip package's handling of certain types of invalid zip files differs from the behavior of most zip implementations. This misalignment could be expl…
CVE-2023-48795Medium5.92023-12-18The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remote attackers to bypass integrity checks…
CVE-2023-45285High7.52023-12-06Using 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 "…
CVE-2023-39326Medium5.32023-12-06A 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…
CVE-2023-45287High7.52023-12-05Before 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…
CVE-2023-45284Medium5.32023-11-09On Windows, The IsLocal function does not correctly detect reserved device names in some cases. Reserved names followed by spaces, such as "COM1 ", and reserve…
CVE-2023-45283High7.52023-11-09The 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…
CVE-2023-46324High7.52023-10-23pkg/suci/suci.go in free5GC udm before 1.2.0, when Go before 1.19 is used, allows an Invalid Curve Attack because it may compute a shared secret via an uncompr…
CVE-2023-39325High7.52023-10-11A malicious HTTP/2 client which rapidly creates requests and immediately resets them can cause excessive server resource consumption. While the total number of…
CVE-2023-44487High7.52023-10-10The HTTP/2 protocol allows a denial of service (server resource consumption) because request cancellation can reset many streams quickly, as exploited in the w…
CVE-2023-39323High8.12023-10-05Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during com…
CVE-2023-39322High7.52023-09-08QUIC 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 u…
CVE-2023-39321High7.52023-09-08Processing an incomplete post-handshake message for a QUIC connection can cause a panic.
CVE-2023-39320Critical9.82023-09-08The 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" comman…
CVE-2023-39319Medium6.12023-09-08The html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within JS literals in <script> contexts…
CVE-2023-39318Medium6.12023-09-08The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the temp…
CVE-2023-3978Medium6.12023-08-02Text nodes not in the HTML namespace are incorrectly literally rendered, causing text which should be escaped to not be. This could lead to an XSS attack.
CVE-2023-29409Medium5.32023-08-02Extremely large RSA keys in certificate chains can cause a client/server to expend significant CPU time verifying signatures. With fix, the size of RSA keys tr…
CVE-2023-29408Medium6.52023-08-02The TIFF decoder does not place a limit on the size of compressed tile data. A maliciously-crafted image can exploit this to cause a small image (both in terms…
CVE-2023-29407Medium6.52023-08-02A maliciously-crafted image can cause excessive CPU consumption in decoding. A tiled image with a height of 0 and a very large width can cause excessive CPU co…
CVE-2023-29406Medium6.52023-07-11The HTTP/1 client does not fully validate the contents of the Host header. A maliciously crafted Host header can inject additional headers or entire requests…
CVE-2023-29405Critical9.82023-06-08The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other c…
CVE-2023-29404Critical9.82023-06-08The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other c…