The html.Parse function in golang.org/x/net/html has quadratic parsing complexity when processing certain inputs, which can lead to denial of service (DoS) if an attacker provides specially crafted HTML content.
Vendor
golang.org vulnerabilities
95 published CVES affecting golang.org, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 95
- Critical
- 5
- High
- 60
- Medium
- 28
- Low
- 1
- Unscored
- 1
- CISA KEV
- 1
Products
- golang.org/x/net 38
- golang.org/x/crypto 32
- golang.org/x/crypto/ssh 15
- golang.org/x/image 13
- golang.org/x/net/http2 13
- golang.org/x/net/html 12
- golang.org/x/image/tiff 8
- golang.org/x/crypto/ssh/agent 5
- golang.org/x/text 5
- golang.org/x/image/webp 2
- golang.org/x/mod 2
- golang.org/x/sys 2
- golang.org/x/crypto/acme/autocert 1
- golang.org/x/crypto/openpgp 1
- golang.org/x/crypto/ssh/knownhosts 1
- golang.org/x/image/bmp 1
- golang.org/x/image/font/sfnt 1
- golang.org/x/image/vp8l 1
- golang.org/x/mod/sumdb 1
- golang.org/x/mod/sumdb/tlog 1
- golang.org/x/net/dns/dnsmessage 1
- golang.org/x/net/http/httpproxy 1
- golang.org/x/net/http2/h2c 1
- golang.org/x/net/http2/hpack 1
- golang.org/x/net/idna 1
- golang.org/x/net/proxy 1
- golang.org/x/oauth2 1
- golang.org/x/oauth2/jws 1
- golang.org/x/playground 1
- golang.org/x/sys/windows 1
Latest golang.org CVEs
Newest publication first · page 3 of 4
-
MediumCVSS 5.3 EPSS 0.65%
-
CVE-2025-47914 Malformed constraint may cause denial of service in golang.org/x/crypto/ssh/agent
PublishedMediumCVSS 5.3 EPSS 0.68%SSH 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 due to an out of bounds read.
-
MediumCVSS 5.3 EPSS 0.77%
SSH servers parsing GSSAPI authentication requests do not validate the number of mechanisms specified in the request, allowing an attacker to cause unbounded memory consumption.
-
HighCVSS 7.5 EPSS 0.67%
SSH clients receiving SSH_AGENT_SUCCESS when expecting a typed response will panic and cause early termination of the client process.
-
MediumCVSS 6.5 EPSS 0.61%
The tokenizer incorrectly interprets tags with unquoted attribute values that end with a solidus character (/) as self-closing. When directly using Tokenizer, this can result in such tags incorrectly being marked as self-closing, and when using the Parse functions, this can resul...
-
MediumCVSS 4.4 EPSS 0.30%
Matching of hosts against proxy patterns can improperly treat an IPv6 zone ID as a hostname component. For example, when the NO_PROXY environment variable is set to "*.example.com", a request to "[::1%25.example.com]:80` will incorrectly match and not be proxied.
-
HighCVSS 7.5 EPSS 1.0%
An attacker can pass a malicious malformed token which causes unexpected memory to be consumed during parsing.
-
HighCVSS 7.5 EPSS 1.1%
SSH servers which implement file transfer protocols are vulnerable to a denial of service attack from clients which complete the key exchange slowly, or not at all, causing pending content to be read into memory, but never transmitted.
-
MediumCVSS 5.3 EPSS 1.5%
An attacker can craft an input to the Parse functions that would be processed non-linearly with respect to its length, resulting in extremely slow parsing. This could cause a denial of service.
-
CriticalCVSS 9.1 EPSS 3.9%
Applications and libraries which misuse connection.serverAuthenticate (via callback field ServerConfig.PublicKeyCallback) may be susceptible to an authorization bypass. The documentation for ServerConfig.PublicKeyCallback says that "A call to this function does not guarantee that...
-
CVE-2022-30636 Limited directory traversal vulnerability on Windows in golang.org/x/crypto
PublishedHighCVSS 7.5 EPSS 0.87%httpTokenCacheKey uses path.Base to extract the expected HTTP-01 token value to lookup in the DirCache implementation. On Windows, path.Base acts differently to filepath.Base, since Windows uses a different path separator (\ vs. /), allowing a user to provide a relative path, i.e...
-
HighCVSS 7.5 EPSS 1.2%
Parsing a corrupt or malicious image with invalid color indices can cause a panic.
-
HighCVSS 7.5 EPSS 3.4%
An attacker may cause an HTTP/2 endpoint to read arbitrary amounts of header data by sending an excessive number of CONTINUATION frames. Maintaining HPACK state requires parsing and processing all HEADERS and CONTINUATION frames on a connection. When a request's headers exceed Ma...
-
CVE-2023-48795 Prefix Truncation Attack against ChaCha20-Poly1305 and Encrypt-then-MAC aka Terrapin
PublishedMediumCVSS 5.9 EPSS 35.8% Public exploit Scanner templateThe SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remote attackers to bypass integrity checks such that some packets are omitted (from the extension negotiation message), and a client and server may consequently end...
-
HighCVSS 7.5 EPSS 3.9%
A malicious HTTP/2 client which rapidly creates requests and immediately resets them can cause excessive server resource consumption. While the total number of requests is bounded by the http2.Server.MaxConcurrentStreams setting, resetting an in-progress request allows the attack...
-
HighCVSS 7.5 EPSS 94.0% CISA KEV added 2023-10-10 Exploited in the wild Public exploit PoC
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.
-
CVE-2023-29407 Excessive CPU consumption when decoding 0-height images in golang.org/x/image/tiff
PublishedMediumCVSS 6.5 EPSS 1.2%A 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 consumption, despite the image size (width * height) appearing to be zero.
-
MediumCVSS 6.5 EPSS 1.2%
The 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 of pixel width/height, and encoded size) to make the decoder decode large amounts of compressed data, consuming excessiv...
-
MediumCVSS 6.1 EPSS 0.86%
Text 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.
-
MediumCVSS 5.5 EPSS 0.35%
An attacker can craft a malformed TIFF image which will consume a significant amount of memory when passed to DecodeConfig. This could lead to a denial of service.
-
CVE-2022-41723 Denial of service via crafted HTTP/2 stream in net/http and golang.org/x/net
PublishedHighCVSS 7.5 EPSS 6.2%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.
-
CVE-2022-41721 Request smuggling due to improper request handling in golang.org/x/net/http2/h2c
PublishedHighCVSS 7.5 EPSS 1.9%A request smuggling attack is possible when using MaxBytesHandler. When using MaxBytesHandler, the body of an HTTP request is not fully consumed. When the server attempts to read HTTP2 frames from the connection, it will instead be reading the body of the HTTP request, which coul...
-
HighCVSS 7.5 EPSS 1.5%
golang.org/x/text/language in golang.org/x/text before 0.3.7 can panic with an out-of-bounds read during BCP 47 language tag parsing. Index calculation is mishandled. If parsing untrusted user input, this can be used as a vector for a denial-of-service attack.
-
MediumCVSS 5.3 EPSS 5.5%
An attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests. HTTP/2 server connections contain a cache of HTTP header keys sent by the client. While the total number of entries in this cache is capped, an attacker sending very large keys can cause the s...
-
CVE-2022-32149 Denial of service via crafted Accept-Language header in golang.org/x/text/language
PublishedHighCVSS 7.5 EPSS 1.7%An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.
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.