stdlib
Go183 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting stdlibpage 3 of 4
- CVE-2024-24785MEDIUMCVSS 5.4EG 5.4fixed in 1.21.8 or 1.22.1, by version range2024-03-05
If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/template package, allowing for subsequent actions to inject unexpected content into templ…
- CVE-2024-24788MEDIUMCVSS 5.9EG 5.9fixed in 1.22.32024-05-08
A malformed DNS message in response to a query can cause the Lookup functions to get stuck in an infinite loop.
- CVE-2024-24789MEDIUMCVSS 5.5EG 5.5fixed in 1.21.11 or 1.22.4, by version range2024-06-05
The archive/zip package's handling of certain types of invalid zip files differs from the behavior of most zip implementations. This misalignment could be exploited to create an zip file with contents that vary depending on the implementat…
- CVE-2024-24790CRITICALCVSS 9.8EG 9.8fixed in 1.21.11 or 1.22.4, by version range2024-06-05
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.
- CVE-2024-24791HIGHCVSS 7.5EG 7.5fixed in 1.21.12 or 1.22.5, by version range2024-07-02
The net/http HTTP/1.1 client mishandled the case where a server responds to a request with an "Expect: 100-continue" header with a non-informational (200 or higher) status. This mishandling could leave a client connection in an invalid sta…
- CVE-2024-34155MEDIUMCVSS 4.3EG 4.3fixed in 1.22.7 or 1.23.1, by version range2024-09-06
Calling any of the Parse functions on Go source code which contains deeply nested literals can cause a panic due to stack exhaustion.
- CVE-2024-34156HIGHCVSS 7.5EG 7.5fixed in 1.22.7 or 1.23.1, by version range2024-09-06
Calling Decoder.Decode on a message which contains deeply nested structures can cause a panic due to stack exhaustion. This is a follow-up to CVE-2022-30635.
- CVE-2024-34158HIGHCVSS 7.5EG 7.5fixed in 1.22.7 or 1.23.1, by version range2024-09-06
Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.
- CVE-2024-45336MEDIUMCVSS 6.1EG 6.1fixed in 1.22.11, 1.23.5 or 1.24.0-rc.2, by version range2025-01-28
The HTTP client drops sensitive headers after following a cross-domain redirect. For example, a request to a.com/ containing an Authorization header which is redirected to b.com/ will not send that header to b.com. In the event that the cl…
- CVE-2024-45341MEDIUMCVSS 6.1EG 6.1fixed in 1.22.11, 1.23.5 or 1.24.0-rc.2, by version range2025-01-28
A certificate with a URI which has a IPv6 address with a zone ID may incorrectly satisfy a URI name constraint that applies to the certificate chain. Certificates containing URIs are not permitted in the web PKI, so this only affects users…
- CVE-2025-0913MEDIUMCVSS 5.5EG 5.5fixed in 1.23.10 or 1.24.4, by version range2025-06-11
os.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 with O_CREATE and O_EXCL flags never follows symlinks. On Windows, when the target…
- CVE-2025-22865HIGHCVSS 7.5EG 7.5fixed in 1.24.0-rc.22025-01-28
Using ParsePKCS1PrivateKey to parse a RSA key that is missing the CRT values would panic when verifying that the key is well formed.
- CVE-2025-22866HIGHCVSS 4.0EG 8.4fixed in 1.22.12, 1.23.6 or 1.24.0-rc.3, by version range2025-02-06
Due to the usage of a variable time instruction in the assembly implementation of an internal function, a small number of bits of secret scalars are leaked on the ppc64le architecture. Due to the way this function is used, we do not believ…
- CVE-2025-22870MEDIUMCVSS 4.4EG 4.4fixed in 1.23.7 or 1.24.1, by version range2025-03-12
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 m…
- CVE-2025-22871CRITICALCVSS 9.1EG 9.1fixed in 1.23.8 or 1.24.2, by version range2025-04-08
The net/http package improperly accepts a bare LF as a line terminator in chunked data chunk-size lines. This can permit request smuggling if a net/http server is used in conjunction with a server that incorrectly accepts a bare LF as part…
- CVE-2025-22873LOWCVSS 3.8EG 3.8fixed in 1.23.9 or 1.24.3, by version range2026-02-04
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…
- CVE-2025-22874HIGHCVSS 7.5EG 7.5fixed in 1.24.42025-06-11
Calling Verify with a VerifyOptions.KeyUsages that contains ExtKeyUsageAny unintentionally disabledpolicy validation. This only affected certificate chains which contain policy graphs, which are rather uncommon.
- CVE-2025-4673MEDIUMCVSS 6.8EG 6.8fixed in 1.23.10 or 1.24.4, by version range2025-06-11
Proxy-Authorization and Proxy-Authenticate headers persisted on cross-origin redirects potentially leaking sensitive information.
- CVE-2025-47906MEDIUMCVSS 6.5EG 6.5fixed in 1.23.12 or 1.24.6, by version range2025-09-18
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.
- CVE-2025-47907HIGHCVSS 7.0EG 7.0fixed in 1.23.12 or 1.24.6, by version range2025-08-07
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…
- CVE-2025-47910MEDIUMCVSS 5.4EG 5.4fixed in 1.25.12025-09-22
When using http.CrossOriginProtection, the AddInsecureBypassPattern method can unexpectedly bypass more requests than intended. CrossOriginProtection then skips validation, but forwards the original request path, which may be served by a d…
- CVE-2025-47912MEDIUMCVSS 5.3EG 5.3fixed in 1.24.8 or 1.25.2, by version range2025-10-29
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. Fo…
- CVE-2025-58183MEDIUMCVSS 4.3EG 4.3fixed in 1.24.8 or 1.25.2, by version range2025-10-29
tar.Reader does not set a maximum size on the number of sparse region data blocks in GNU tar pax 1.0 sparse files. A maliciously-crafted archive containing a large number of sparse regions can cause a Reader to read an unbounded amount of …
- CVE-2025-58185MEDIUMCVSS 5.3EG 5.3fixed in 1.24.8 or 1.25.2, by version range2025-10-29
Parsing a maliciously crafted DER payload could allocate large amounts of memory, causing memory exhaustion.
- CVE-2025-58186MEDIUMCVSS 5.3EG 5.3fixed in 1.24.8 or 1.25.2, by version range2025-10-29
Despite HTTP headers having a default limit of 1MB, the number of cookies that can be parsed does not have a limit. By sending a lot of very small cookies such as "a=;", an attacker can make an HTTP server allocate a large amount of struct…
- CVE-2025-58187HIGHCVSS 7.5EG 7.5fixed in 1.24.9 or 1.25.3, by version range2025-10-29
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.
- CVE-2025-58188HIGHCVSS 7.5EG 7.5fixed in 1.24.8 or 1.25.2, by version range2025-10-29
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.
- CVE-2025-58189MEDIUMCVSS 5.3EG 5.3fixed in 1.24.8 or 1.25.2, by version range2025-10-29
When Conn.Handshake fails during ALPN negotiation the error contains attacker controlled information (the ALPN protocols sent by the client) which is not escaped.
- CVE-2025-61723HIGHCVSS 7.5EG 7.5fixed in 1.24.8 or 1.25.2, by version range2025-10-29
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.
- CVE-2025-61724MEDIUMCVSS 5.3EG 5.3fixed in 1.24.8 or 1.25.2, by version range2025-10-29
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.
- CVE-2025-61725HIGHCVSS 7.5EG 7.5fixed in 1.24.8 or 1.25.2, by version range2025-10-29
The ParseAddress function constructs domain-literal address components through repeated string concatenation. When parsing large domain-literal components, this can cause excessive CPU consumption.
- CVE-2025-61726HIGHCVSS 7.5EG 7.5fixed in 1.24.12 or 1.25.6, by version range2026-01-28
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 pa…
- CVE-2025-61727MEDIUMCVSS 6.5EG 6.5fixed in 1.24.11 or 1.25.5, by version range2025-12-03
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 cl…
- CVE-2025-61728MEDIUMCVSS 6.5EG 6.5fixed in 1.24.12 or 1.25.6, by version range2026-01-28
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.
- CVE-2025-61729HIGHCVSS 7.5EG 7.5fixed in 1.24.11 or 1.25.5, by version range2025-12-02
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…
- CVE-2025-61730MEDIUMCVSS 5.3EG 6.2fixed in 1.24.12 or 1.25.6, by version range2026-01-28
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 l…
- CVE-2025-68121CRITICALCVSS 10.0EG 10.0fixed in 1.24.13, 1.25.7 or 1.26.0-rc.3, by version range2026-02-05
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 h…
- CVE-2026-25679HIGHCVSS 7.5EG 7.5fixed in 1.25.8 or 1.26.1, by version range2026-03-06
url.Parse insufficiently validated the host/authority component and accepted some invalid URLs.
- CVE-2026-27137HIGHCVSS 7.5EG 7.5fixed in 1.26.12026-03-06
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 will not be properly applied, and only the las…
- CVE-2026-27138MEDIUMCVSS 5.9EG 5.9fixed in 1.26.12026-03-06
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. This can crash programs that are either directly verifying X.509 certificate chain…
- CVE-2026-27139LOWCVSS 2.5EG 2.5fixed in 1.25.8 or 1.26.1, by version range2026-03-06
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. The impact of this escape is limited to reading m…
- CVE-2026-27142HIGHCVSS 6.1EG 7.5fixed in 1.25.8 or 1.26.1, by version range2026-03-06
Actions 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 with the value "refresh". A new GODEBUG setting has been added, htmlmetacontenturle…
- CVE-2026-27145MEDIUMCVSS 6.5EG 6.5fixed in 1.25.11 or 1.26.4, by version range2026-06-02
(*x509.Certificate).VerifyHostname previously called matchHostnames in a loop over all DNS Subject Alternative Name (SAN) entries. This caused strings.Split(host, ".") to execute repeatedly on the same input hostname. With a large DNS SAN …
- CVE-2026-32280HIGHCVSS 7.5EG 7.5fixed in 1.25.9 or 1.26.2, by version range2026-04-08
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 denial of service. This affects both direct use…
- CVE-2026-32281HIGHCVSS 7.5EG 7.5fixed in 1.25.9 or 1.26.2, by version range2026-04-08
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. This only affects validation of otherwise trust…
- CVE-2026-32282MEDIUMCVSS 6.4EG 6.4fixed in 1.25.9 or 1.26.2, by version range2026-04-08
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. The Linux fchmodat syscall silently igno…
- CVE-2026-32283HIGHCVSS 7.5EG 7.5fixed in 1.25.9 or 1.26.2, by version range2026-04-08
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. This can lead to a denial of service. This only affects TLS…
- CVE-2026-32288MEDIUMCVSS 5.5EG 5.5fixed in 1.25.9 or 1.26.2, by version range2026-04-08
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.
- CVE-2026-32289MEDIUMCVSS 6.1EG 6.1fixed in 1.25.9 or 1.26.2, by version range2026-04-08
Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect escaping of content when branches were used. Additionally template actions within JS template literals did not properly track…
- CVE-2026-33810HIGHCVSS 8.2EG 8.2fixed in 1.26.22026-04-08
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. This only affects validation of otherwise trusted cert…
Check whether stdlib is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for stdlib CVEs against the assets you own.
Book a Demo →