stdlib
Go157 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 1 of 4
- CVE-2014-7189NONECVSS 0.0EG 0.0✓ Fixed in 1.3.22014-10-07
crpyto/tls in Go 1.1 before 1.3.2, when SessionTicketsDisabled is enabled, allows man-in-the-middle attackers to spoof clients via unspecified vectors.
- CVE-2015-5739CRITICALCVSS 9.8EG 9.8✓ Fixed in 1.4.32017-10-18
The net/http library in net/textproto/reader.go in Go before 1.4.3 does not properly parse HTTP header keys, which allows remote attackers to conduct HTTP request smuggling attacks via a space instead of a hyphen, as demonstrated by "Conte…
- CVE-2015-5740CRITICALCVSS 9.8EG 9.8✓ Fixed in 1.4.32017-10-18
The net/http library in net/http/transfer.go in Go before 1.4.3 does not properly parse HTTP headers, which allows remote attackers to conduct HTTP request smuggling attacks via a request with two Content-length headers.
- CVE-2015-5741CRITICALCVSS 9.8EG 9.8✓ Fixed in 1.4.32020-02-08
The net/http library in net/http/transfer.go in Go before 1.4.3 does not properly parse HTTP headers, which allows remote attackers to conduct HTTP request smuggling attacks via a request that contains Content-Length and Transfer-Encoding …
- CVE-2015-8618HIGHCVSS 7.5EG 7.5✓ Fixed in 1.5.32016-01-27
The Int.Exp Montgomery code in the math/big library in Go 1.5.x before 1.5.3 mishandles carry propagation and produces incorrect output, which makes it easier for attackers to obtain private RSA keys via unspecified vectors.
- CVE-2016-3958HIGHCVSS 7.8EG 7.8✓ Fixed in 1.6.12016-05-23
Untrusted search path vulnerability in Go before 1.5.4 and 1.6.x before 1.6.1 on Windows allows local users to gain privileges via a Trojan horse DLL in the current working directory, related to use of the LoadLibrary function.
- CVE-2016-3959HIGHCVSS 7.5EG 7.5✓ Fixed in 1.6.12016-05-23
The Verify function in crypto/dsa/dsa.go in Go before 1.5.4 and 1.6.x before 1.6.1 does not properly check parameters passed to the big integer library, which might allow remote attackers to cause a denial of service (infinite loop) via a …
- CVE-2016-5386HIGHCVSS 8.1EG 8.1✓ Fixed in 1.6.32016-07-19
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect CGI applications from the presence of untrusted client data in the HTTP_PROXY environment variabl…
- CVE-2017-1000097HIGHCVSS 7.5EG 7.5✓ Fixed in 1.7.42017-10-05
On Darwin, user's trust preferences for root certificates were not honored. If the user had a root certificate loaded in their Keychain that was explicitly not trusted, a Go program would still verify a connection using that root certifica…
- CVE-2017-1000098HIGHCVSS 7.5EG 7.5✓ Fixed in 1.7.42017-10-05
The net/http package's Request.ParseMultipartForm method starts writing to temporary files once the request body size surpasses the given "maxMemory" limit. It was possible for an attacker to generate a multipart request crafted such that …
- CVE-2017-15042MEDIUMCVSS 5.9EG 5.9✓ Fixed in 1.9.12017-10-05
An unintended cleartext issue exists in Go before 1.8.4 and 1.9.x before 1.9.1. RFC 4954 requires that, during SMTP, the PLAIN auth scheme must only be used on network connections secured with TLS. The original implementation of smtp.Plain…
- CVE-2017-8932MEDIUMCVSS 5.9EG 5.9✓ Fixed in 1.8.22017-07-06
A bug in the standard library ScalarMult implementation of curve P-256 for amd64 architectures in Go before 1.7.6 and 1.8.x before 1.8.2 causes incorrect results to be generated for specific input points. An adaptive attack can be mounted …
- CVE-2018-16875MEDIUMCVSS 5.9EG 7.5✓ Fixed in 1.11.32018-12-14
The crypto/x509 package of Go before 1.10.6 and 1.11.x before 1.11.3 does not limit the amount of work performed for each chain verification, which might allow attackers to craft pathological inputs leading to a CPU denial of service. Go T…
- CVE-2019-14809CRITICALCVSS 9.8EG 9.8✓ Fixed in 1.12.82019-08-13
net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization bypass in some applications. This is related to a Host field with a suffix appearing in neither Hostname() nor Port(), an…
- CVE-2019-16276HIGHCVSS 7.5EG 7.5✓ Fixed in 1.13.12019-09-30
Go before 1.12.10 and 1.13.x before 1.13.1 allow HTTP Request Smuggling.
- CVE-2019-17596HIGHCVSS 7.5EG 7.5✓ Fixed in 1.13.22019-10-24
Go before 1.12.11 and 1.3.x before 1.13.2 can panic upon an attempt to process network traffic containing an invalid DSA public key. There are several attack scenarios, such as traffic from a client to a server that verifies client certifi…
- CVE-2019-6486HIGHCVSS 8.2EG 8.2✓ Fixed in 1.11.52019-01-24
Go before 1.10.8 and 1.11.x before 1.11.5 mishandles P-521 and P-384 elliptic curves, which allows attackers to cause a denial of service (CPU consumption) or possibly conduct ECDH private key recovery attacks.
- CVE-2019-9512HIGHCVSS 7.5EG 7.5✓ Fixed in 1.12.82019-08-13
Some HTTP/2 implementations are vulnerable to ping floods, potentially leading to a denial of service. The attacker sends continual pings to an HTTP/2 peer, causing the peer to build an internal queue of responses. Depending on how efficie…
- CVE-2019-9514HIGHCVSS 7.5EG 7.5✓ Fixed in 1.12.82019-08-13
Some HTTP/2 implementations are vulnerable to a reset flood, potentially leading to a denial of service. The attacker opens a number of streams and sends an invalid request over each stream that should solicit a stream of RST_STREAM frames…
- CVE-2019-9634HIGHCVSS 7.8EG 7.8✓ Fixed in 1.12.22019-03-08
Go through 1.12 on Windows misuses certain LoadLibrary functionality, leading to DLL injection.
- CVE-2020-0601HIGHCVSS 8.1EG 9.0⚠ KEV✓ Fixed in 1.13.72020-01-14
A spoofing vulnerability exists in the way Windows CryptoAPI (Crypt32.dll) validates Elliptic Curve Cryptography (ECC) certificates.An attacker could exploit the vulnerability by using a spoofed code-signing certificate to sign a malicious…
- CVE-2020-14039MEDIUMCVSS 5.3EG 5.3✓ Fixed in 1.14.52020-07-17
In Go before 1.13.13 and 1.14.x before 1.14.5, Certificate.Verify may lack a check on the VerifyOptions.KeyUsages EKU requirements (if VerifyOptions.Roots equals nil and the installation is on Windows). Thus, X.509 certificate verification…
- CVE-2020-15586MEDIUMCVSS 5.9EG 5.9✓ Fixed in 1.14.52020-07-17
Go before 1.13.13 and 1.14.x before 1.14.5 has a data race in some net/http servers, as demonstrated by the httputil.ReverseProxy Handler, because it reads a request body and writes a response at the same time.
- CVE-2020-16845HIGHCVSS 7.5EG 7.5✓ Fixed in 1.14.72020-08-06
Go before 1.13.15 and 14.x before 1.14.7 can have an infinite read loop in ReadUvarint and ReadVarint in encoding/binary via invalid inputs.
- CVE-2020-24553MEDIUMCVSS 6.1EG 6.1✓ Fixed in 1.15.12020-09-02
Go before 1.14.8 and 1.15.x before 1.15.1 allows XSS because text/html is the default for CGI/FCGI handlers that lack a Content-Type header.
- CVE-2020-28362HIGHCVSS 7.5EG 7.5✓ Fixed in 1.15.52020-11-18
Go before 1.14.12 and 1.15.x before 1.15.4 allows Denial of Service.
- CVE-2020-7919HIGHCVSS 7.5EG 7.5✓ Fixed in 1.13.72020-03-16
Go before 1.12.16 and 1.13.x before 1.13.7 (and the crypto/cryptobyte package before 0.0.0-20200124225646-8b5121be2f68 for Go) allows attacks on clients (resulting in a panic) via a malformed X.509 certificate.
- CVE-2021-27918HIGHCVSS 7.5EG 7.5✓ Fixed in 1.16.12021-03-11
encoding/xml in Go before 1.15.9 and 1.16.x before 1.16.1 has an infinite loop if a custom TokenReader (for xml.NewTokenDecoder) returns EOF in the middle of an element. This can occur in the Decode, DecodeElement, or Skip method.
- CVE-2021-27919MEDIUMCVSS 5.5EG 5.5✓ Fixed in 1.16.12021-03-11
archive/zip in Go 1.16.x before 1.16.1 allows attackers to cause a denial of service (panic) upon attempted use of the Reader.Open API for a ZIP archive in which ../ occurs at the beginning of any filename.
- CVE-2021-3114MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.15.72021-01-26
In Go before 1.14.14 and 1.15.x before 1.15.7, crypto/elliptic/p224.go can generate incorrect outputs, related to an underflow of the lowest limb during the final complete reduction in the P-224 field.
- CVE-2021-31525MEDIUMCVSS 5.9EG 5.9✓ Fixed in 1.16.42021-05-27
net/http in Go before 1.15.12 and 1.16.x before 1.16.4 allows remote attackers to cause a denial of service (panic) via a large header to ReadRequest or ReadResponse. Server, Transport, and Client can each be affected in some configuration…
- CVE-2021-33195HIGHCVSS 7.3EG 7.3✓ Fixed in 1.16.52021-08-02
Go before 1.15.13 and 1.16.x before 1.16.5 has functions for DNS lookups that do not validate replies from DNS servers, and thus a return value may contain an unsafe injection (e.g., XSS) that does not conform to the RFC1035 format.
- CVE-2021-33196HIGHCVSS 7.5EG 7.5✓ Fixed in 1.16.52021-08-02
In archive/zip in Go before 1.15.13 and 1.16.x before 1.16.5, a crafted file count (in an archive's header) can cause a NewReader or OpenReader panic.
- CVE-2021-33197MEDIUMCVSS 5.3EG 5.3✓ Fixed in 1.16.52021-08-02
In Go before 1.15.13 and 1.16.x before 1.16.5, some configurations of ReverseProxy (from net/http/httputil) result in a situation where an attacker is able to drop arbitrary headers.
- CVE-2021-33198HIGHCVSS 7.5EG 7.5✓ Fixed in 1.16.52021-08-02
In Go before 1.15.13 and 1.16.x before 1.16.5, there can be a panic for a large exponent to the math/big.Rat SetString or UnmarshalText method.
- CVE-2021-34558MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.16.62021-07-15
The crypto/tls package of Go through 1.16.5 does not properly assert that the type of public key in an X.509 certificate matches the expected type when doing a RSA based key exchange, allowing a malicious TLS server to cause a TLS client t…
- CVE-2021-36221MEDIUMCVSS 5.9EG 5.9✓ Fixed in 1.16.72021-08-08
Go before 1.15.15 and 1.16.x before 1.16.7 has a race condition that can lead to a net/http/httputil ReverseProxy panic upon an ErrAbortHandler abort.
- CVE-2021-39293HIGHCVSS 7.5EG 7.5✓ Fixed in 1.17.12022-01-24
In archive/zip in Go before 1.16.8 and 1.17.x before 1.17.1, a crafted archive header (falsely designating that many files are present) can cause a NewReader or OpenReader panic. NOTE: this issue exists because of an incomplete fix for CVE…
- CVE-2021-41771HIGHCVSS 7.5EG 7.5✓ Fixed in 1.17.32021-11-08
ImportedSymbols in debug/macho (for Open or OpenFat) in Go before 1.16.10 and 1.17.x before 1.17.3 Accesses a Memory Location After the End of a Buffer, aka an out-of-bounds slice situation.
- CVE-2021-41772HIGHCVSS 7.5EG 7.5✓ Fixed in 1.17.32021-11-08
Go before 1.16.10 and 1.17.x before 1.17.3 allows an archive/zip Reader.Open panic via a crafted ZIP archive containing an invalid name or an empty filename field.
- CVE-2021-44716HIGHCVSS 7.5EG 7.5✓ Fixed in 1.17.52022-01-01
net/http in Go before 1.16.12 and 1.17.x before 1.17.5 allows uncontrolled memory consumption in the header canonicalization cache via HTTP/2 requests.
- CVE-2021-44717MEDIUMCVSS 4.8EG 4.8✓ Fixed in 1.17.52022-01-01
Go before 1.16.12 and 1.17.x before 1.17.5 on UNIX allows write operations to an unintended file or unintended network connection as a consequence of erroneous closing of file descriptor 0 after file-descriptor exhaustion.
- CVE-2022-1705MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.18.42022-08-10
Acceptance of some invalid Transfer-Encoding headers in the HTTP/1 client in net/http before Go 1.17.12 and Go 1.18.4 allows HTTP request smuggling if combined with an intermediate server that also improperly fails to reject the header as …
- CVE-2022-1962MEDIUMCVSS 5.5EG 5.5✓ Fixed in 1.18.42022-08-10
Uncontrolled recursion in the Parse functions in go/parser before Go 1.17.12 and Go 1.18.4 allow an attacker to cause a panic due to stack exhaustion via deeply nested types or declarations.
- CVE-2022-23772HIGHCVSS 7.5EG 7.5✓ Fixed in 1.17.72022-02-11
Rat.SetString in math/big in Go before 1.16.14 and 1.17.x before 1.17.7 has an overflow that can lead to Uncontrolled Memory Consumption.
- CVE-2022-23806CRITICALCVSS 9.1EG 9.1✓ Fixed in 1.17.72022-02-11
Curve.IsOnCurve in crypto/elliptic in Go before 1.16.14 and 1.17.x before 1.17.7 can incorrectly return true in situations with a big.Int value that is not a valid field element.
- CVE-2022-24675HIGHCVSS 7.5EG 7.5✓ Fixed in 1.18.12022-04-20
encoding/pem in Go before 1.17.9 and 1.18.x before 1.18.1 has a Decode stack overflow via a large amount of PEM data.
- CVE-2022-24921HIGHCVSS 7.5EG 7.5✓ Fixed in 1.17.82022-03-05
regexp.Compile in Go before 1.16.15 and 1.17.x before 1.17.8 allows stack exhaustion via a deeply nested expression.
- CVE-2022-27536HIGHCVSS 7.5EG 7.5✓ Fixed in 1.18.12022-04-20
Certificate.Verify in crypto/x509 in Go 1.18.x before 1.18.1 can be caused to panic on macOS when presented with certain malformed certificates. This allows a remote TLS server to cause a TLS client to panic.
- CVE-2022-27664HIGHCVSS 7.5EG 7.5✓ Fixed in 1.19.12022-09-06
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.
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.
Start Free Scan →