CVE-2023-24536
CVE-2023-24536 · Excessive resource consumption in net/http, net/textproto and mime/multipart
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
Multipart form parsing can consume large amounts of CPU and memory when processing form inputs containing very large numbers of parts. This stems from several causes: 1. mime/multipart.Reader.ReadForm limits the total memory a parsed multipart form can consume. ReadForm can undercount the amount of memory consumed, leading it to accept larger inputs than intended. 2. Limiting total memory does not account for increased pressure on the garbage collector from large numbers of small allocations in forms with many parts. 3. ReadForm can allocate a large number of short-lived buffers, further increasing pressure on the garbage collector. The combination of these factors can permit an attacker to cause an program that parses multipart forms to consume large amounts of CPU and memory, potentially resulting in a denial of service. This affects programs that use mime/multipart.Reader.ReadForm, as well as form parsing in the net/http package with the Request methods FormFile, FormValue, ParseMultipartForm, and PostFormValue. With fix, ReadForm now does a better job of estimating the memory consumption of parsed forms, and performs many fewer short-lived allocations. In addition, the fixed mime/multipart.Reader imposes the following limits on the size of parsed forms: 1. Forms parsed with ReadForm may contain no more than 1000 parts. This limit may be adjusted with the environment variable GODEBUG=multipartmaxparts=. 2. Form parts parsed with NextPart and NextRawPart may contain no more than 10,000 header fields. In addition, forms parsed with ReadForm may contain no more than 10,000 header fields across all parts. This limit may be adjusted with the environment variable GODEBUG=multipartmaxheaders=.
CVSS 7.5 · Élevée · EPSS 1,5% · Correctif disponible
- Publication
- Mise à jour
Pile logicielle: system
Produits et versions concernés
mime/multipart
- Versions du logiciel
- ≥ 0, < 1.19.8: Concernée (semver)
- ≥ 1.20.0-0, < 1.20.3: Concernée (semver)
Mettez à jour vers 1.19.8; Mettez à jour vers 1.20.3
net/textproto
- Versions du logiciel
- ≥ 0, < 1.19.8: Concernée (semver)
- ≥ 1.20.0-0, < 1.20.3: Concernée (semver)
Mettez à jour vers 1.19.8; Mettez à jour vers 1.20.3
golang-1.19 Debian:12
- Plages de versions concernées
- ECOSYSTEM: < 1.19.8-2
Mettez à jour vers 1.19.8-2
golang-1.10 Ubuntu:14.04:LTS
- Versions du logiciel
- 1.10.4-2ubuntu1~14.04.1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-1.18 Ubuntu:Pro:16.04:LTS
- Versions du logiciel
- 1.18.1-1ubuntu1~16.04.6
- Plages de versions concernées
- ECOSYSTEM: < 1.18.1-1ubuntu1~16.04.6+esm1
Mettez à jour vers 1.18.1-1ubuntu1~16.04.6+esm1
golang-1.10 Ubuntu:16.04:LTS
- Versions du logiciel
- 1.10.4-2ubuntu1~16.04.1
- 1.10.4-2ubuntu1~16.04.2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-1.6 Ubuntu:16.04:LTS
- Versions du logiciel
- 1.6-0ubuntu1
- 1.6-0ubuntu2
- 1.6-0ubuntu3
- 1.6-0ubuntu4
- 1.6-0ubuntu5
- 1.6.1-0ubuntu1
- 1.6.2-0ubuntu5~16.04
- 1.6.2-0ubuntu5~16.04.2
- 1.6.2-0ubuntu5~16.04.3
- 1.6.2-0ubuntu5~16.04.4
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-1.13 Ubuntu:Pro:16.04:LTS
- Versions du logiciel
- 1.13.8-1ubuntu1~16.04.2
- 1.13.8-1ubuntu1~16.04.3
- 1.13.8-1ubuntu1~16.04.3+esm2
- 1.13.8-1ubuntu1~16.04.3+esm3
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-1.10 Ubuntu:18.04:LTS
- Versions du logiciel
- 1.10~rc1-1
- 1.10~rc1-1ubuntu1
- 1.10~rc1-2ubuntu1
- 1.10~rc2-1ubuntu1
- 1.10-1ubuntu1
- 1.10.1-1ubuntu2
- 1.10.4-2ubuntu1~18.04.1
- 1.10.4-2ubuntu1~18.04.2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-1.13 Ubuntu:Pro:18.04:LTS
- Versions du logiciel
- 1.13.8-1ubuntu1~18.04.2
- 1.13.8-1ubuntu1~18.04.3
- 1.13.8-1ubuntu1~18.04.4
- 1.13.8-1ubuntu1~18.04.4+esm1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-1.16 Ubuntu:Pro:18.04:LTS
- Versions du logiciel
- 1.16.2-0ubuntu1~18.04.2
- 1.16.2-0ubuntu1~18.04.2+esm1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-1.18 Ubuntu:Pro:18.04:LTS
- Versions du logiciel
- 1.18.1-1ubuntu1~18.04.3
- 1.18.1-1ubuntu1~18.04.4
- Plages de versions concernées
- ECOSYSTEM: < 1.18.1-1ubuntu1~18.04.4+esm1
Mettez à jour vers 1.18.1-1ubuntu1~18.04.4+esm1
golang-1.8 Ubuntu:18.04:LTS
- Versions du logiciel
- 1.8.3-2ubuntu1
- 1.8.3-2ubuntu1.18.04.1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-1.9 Ubuntu:18.04:LTS
- Versions du logiciel
- 1.9.1-2ubuntu1
- 1.9.2-1ubuntu1
- 1.9.2-3ubuntu1
- 1.9.3-1ubuntu1
- 1.9.4-1ubuntu1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-1.18 Ubuntu:20.04:LTS
- Versions du logiciel
- 1.18.1-1ubuntu1~20.04.1
- 1.18.1-1ubuntu1~20.04.2
- Plages de versions concernées
- ECOSYSTEM: < 1.18.1-1ubuntu1~20.04.3
Mettez à jour vers 1.18.1-1ubuntu1~20.04.3
golang-1.13 Ubuntu:20.04:LTS
- Versions du logiciel
- 1.13.1-1ubuntu1
- 1.13.3-1ubuntu1
- 1.13.4-1ubuntu1
- 1.13.5-1ubuntu1
- 1.13.6-1ubuntu1
- 1.13.6-2ubuntu1
- 1.13.7-1ubuntu1
- 1.13.8-1ubuntu1
- 1.13.8-1ubuntu1.1
- 1.13.8-1ubuntu1.2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-1.14 Ubuntu:20.04:LTS
- Versions du logiciel
- 1.14~beta1-1
- 1.14~beta1-2
- 1.14~rc1-1
- 1.14-1
- 1.14.1-1
- 1.14.2-1
- 1.14.2-1ubuntu1
- 1.14.3-2ubuntu2~20.04.1
- 1.14.3-2ubuntu2~20.04.2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-1.16 Ubuntu:Pro:20.04:LTS
- Versions du logiciel
- 1.16.2-0ubuntu1~20.04
- 1.16.2-0ubuntu1~20.04.1
- 1.16.2-0ubuntu1~20.04.1+esm1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-1.17 Ubuntu:22.04:LTS
- Versions du logiciel
- 1.17-1ubuntu2
- 1.17.3-1ubuntu1
- 1.17.3-1ubuntu2
- 1.17.13-3ubuntu1
- 1.17.13-3ubuntu1.2
- Plages de versions concernées
- ECOSYSTEM: < 1.17.13-3ubuntu1.3
Mettez à jour vers 1.17.13-3ubuntu1.3
golang-1.18 Ubuntu:22.04:LTS
- Versions du logiciel
- 1.18~beta1-0ubuntu1
- 1.18~beta2-1ubuntu1
- 1.18~beta2-1ubuntu2
- 1.18~rc1-1ubuntu1
- 1.18-1ubuntu1
- 1.18.1-1ubuntu1
- 1.18.1-1ubuntu1.1
- Plages de versions concernées
- ECOSYSTEM: < 1.18.1-1ubuntu1.2
Mettez à jour vers 1.18.1-1ubuntu1.2
golang-1.13 Ubuntu:Pro:22.04:LTS
- Versions du logiciel
- 1.13.8-1ubuntu2
- 1.13.8-1ubuntu2.22.04.1
- 1.13.8-1ubuntu2.22.04.1+esm1
- 1.13.8-1ubuntu2.22.04.2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
Sources originales
- https://go.dev/issue/59153
- https://go.dev/cl/482076
- https://go.dev/cl/482075
- https://go.dev/cl/482077
- https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8
- https://pkg.go.dev/vuln/GO-2023-1705
- https://security.netapp.com/advisory/ntap-20230526-0007/
- https://security.gentoo.org/glsa/202311-09
- https://nvd.nist.gov/vuln/detail/CVE-2023-24536