Vulnerability
CVE-2022-41725
A denial of service is possible from excessive resource consumption in net/http and mime/multipart. Multipart form parsing with mime/multipart.Reader.ReadForm can consume largely unlimited amounts of memory and disk files. This also affects form parsing in the net/http package with the Request methods FormFile, FormValue, ParseMultipartForm, and PostFormValue. ReadForm takes a maxMemory parameter, and is documented as storing "up to maxMemory bytes +10MB (reserved for non-file parts) in memory". File parts which cannot be stored in memory are stored on disk in temporary files. The unconfigurable 10MB reserved for non-file parts is excessively large and can potentially open a denial of service vector on its own. However, ReadForm did not properly account for all memory consumed by a parsed form, such as map entry overhead, part names, and MIME headers, permitting a maliciously crafted form to consume well over 10MB. In addition, ReadForm contained no limit on the number of disk files created, permitting a relatively small request body to create a large number of disk temporary files. With fix, ReadForm now properly accounts for various forms of memory overhead, and should now stay within its documented limit of 10MB + maxMemory bytes of memory consumption. Users should still be aware that this limit is high and may still be hazardous. In addition, ReadForm now creates at most one on-disk temporary file, combining multiple form parts into a single temporary file. The mime/multipart.File interface type's documentation states, "If stored on disk, the File's underlying concrete type will be an *os.File.". This is no longer the case when a form contains more than one file part, due to this coalescing of parts into a single file. The previous behavior of using distinct files for each form part may be reenabled with the environment variable GODEBUG=multipartfiles=distinct. Users should be aware that multipart.ReadForm and the http.Request methods that call it do not limit the amount of disk consumed by temporary files. Callers can limit the size of form data with http.MaxBytesReader.
81 advisories report this vulnerability, across 15 ecosystems.
Advisories
-
ALAS2-2023-2163
Amazon Linux 2 2017.12 - ALAS2-2023-2163: important priority package update for golang
-
ALAS2023-2023-175
Amazon Linux 2023 - ALAS2023-2023-175: Important priority package update for golang
-
ALPINE-CVE-2022-41725
A denial of service is possible from excessive resource consumption in net/http and mime/multipart. Multipart form parsing with mime/multipart.Reader.ReadForm can consume largely unlimited amounts of memory and disk…
- ALPINE-EDGE-CVE-2022-41725
-
ALSA-2023:3083
Moderate: go-toolset:rhel8 security and bug fix update
-
ALSA-2023:6346
Moderate: toolbox security and bug fix update
-
ALSA-2023:6363
Moderate: skopeo security update
-
ALSA-2023:6402
Moderate: containernetworking-plugins security and bug fix update
-
ALSA-2023:6473
Moderate: buildah security update
-
ALSA-2023:6474
Moderate: podman security, bug fix, and enhancement update
-
ALSA-2023:6938
Moderate: container-tools:4.0 security and bug fix update
-
ALSA-2023:6939
Moderate: container-tools:rhel8 security and bug fix update
-
AZL-13732
CVE-2022-41725 affecting package golang for versions less than 1.19.5-1
-
AZL-13739
CVE-2022-41725 affecting package msft-golang for versions less than 1.19.6-1
-
AZL-34761
CVE-2022-41725 affecting package golang for versions less than 1.19.5-1
-
AZL-37334
CVE-2022-41725 affecting package golang for versions less than 1.21.6-1
-
AZL-37487
CVE-2022-41725 affecting package golang for versions less than 1.21.6-1
-
AZL-78992
CVE-2022-41725 affecting package golang 1.25.7-1
-
AZL-98943
CVE-2022-41725 affecting package golang 1.27.1-1
- CGA-2fwc-j852-f39g
- CGA-33f3-446w-97q8
- CGA-5j5x-9vf3-fgjc
- CGA-68xj-6572-hx4g
- CGA-8jp3-wrhq-53h9
- CGA-8pf8-hgrr-hr5g
- CGA-9j7p-5hx7-gq7p
- CGA-fqvv-4v7r-v85h
- CGA-g6w5-q42x-8w3m
- CGA-hgfj-88r7-2wj2
- CGA-jcg9-mfcg-m3jc
- CGA-jgcj-v526-rhg9
- CGA-jjgv-3f28-mj44
- CGA-mfph-cq3v-pmg5
- CGA-pfg2-c2f3-jp8p
- CGA-v35w-v2wg-hcvf
- CGA-vmf5-8vwf-558j
- CGA-whc9-pv2q-fr2v
- CGA-xfcq-9mww-f37g
- CGA-xhf9-3f76-w6vm
-
DEBIAN-CVE-2022-41725
A denial of service is possible from excessive resource consumption in net/http and mime/multipart. Multipart form parsing with mime/multipart.Reader.ReadForm can consume largely unlimited amounts of memory and disk…
-
ELSA-2023-3083
ELSA-2023-3083: go-toolset:ol8 security and bug fix update (MODERATE)
-
ELSA-2023-6363
ELSA-2023-6363: skopeo security update (MODERATE)
-
ELSA-2023-6402
ELSA-2023-6402: containernetworking-plugins security and bug fix update (MODERATE)
-
ELSA-2023-6473
ELSA-2023-6473: buildah security update (MODERATE)
-
ELSA-2023-6474
ELSA-2023-6474: podman security, bug fix, and enhancement update (MODERATE)
-
ELSA-2023-6938
ELSA-2023-6938: container-tools:4.0 security and bug fix update (MODERATE)
-
ELSA-2023-6939
ELSA-2023-6939: container-tools:ol8 security and bug fix update (MODERATE)
-
GO-2023-1569
Excessive resource consumption in mime/multipart
-
OESA-2023-1192
golang security update
-
RHBA-2023:2181
Red Hat Bug Fix Advisory: delve, golang, and go-toolset bug fix and enhancement update
-
RHSA-2023:1325
Red Hat Security Advisory: OpenShift Container Platform 4.13.0 security update
-
RHSA-2023:3083
Red Hat Security Advisory: go-toolset:rhel8 security and bug fix update
-
RHSA-2023:3445
Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (etcd) security update
-
RHSA-2023:3450
Red Hat Security Advisory: OpenShift Serverless Client kn 1.29.0 release
-
RHSA-2023:3612
Red Hat Security Advisory: OpenShift Container Platform 4.13.4 packages and security update
-
RHSA-2023:4003
Red Hat Security Advisory: Red Hat Service Interconnect 1.4 Release security update
-
RHSA-2023:4470
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.3 Product Security and Bug Fix Update
-
RHSA-2023:5964
Red Hat Security Advisory: Red Hat OpenStack Platform 16.2.5 (collectd-libpod-stats) security update
-
RHSA-2023:6346
Red Hat Security Advisory: toolbox security and bug fix update
-
RHSA-2023:6363
Red Hat Security Advisory: skopeo security update
-
RHSA-2023:6402
Red Hat Security Advisory: containernetworking-plugins security and bug fix update
-
RHSA-2023:6473
Red Hat Security Advisory: buildah security update
-
RHSA-2023:6474
Red Hat Security Advisory: podman security, bug fix, and enhancement update
-
RHSA-2023:6938
Red Hat Security Advisory: container-tools:4.0 security and bug fix update
-
RHSA-2023:6939
Red Hat Security Advisory: container-tools:rhel8 security and bug fix update
-
RHSA-2023:7672
Red Hat Security Advisory: OpenShift Virtualization 4.14.1 RPMs security and bug fix update
-
RHVEX-CVE-2022-41725
golang: net/http, mime/multipart: denial of service from excessive resource consumption
-
RLSA-2023:3083
Moderate: go-toolset:Rocky Linux8 security and bug fix update
-
RLSA-2023:6938
Moderate: container-tools:4.0 security and bug fix update
-
RLSA-2023:6939
Moderate: container-tools:rhel8 security and bug fix update
-
SUSE-SU-2023:0733-1
Security update for go1.19
-
SUSE-SU-2023:0735-1
Security update for go1.20
-
SUSE-SU-2023:0869-1
Security update for go1.18
-
SUSE-SU-2023:0871-1
Security update for container-suseconnect
-
SUSE-SU-2023:2312-1
Security update for go1.18-openssl
-
UBUNTU-CVE-2022-41725
A denial of service is possible from excessive resource consumption in net/http and mime/multipart. Multipart form parsing with mime/multipart.Reader.ReadForm can consume largely unlimited amounts of memory and disk…
-
USN-7109-1
golang-1.18 vulnerabilities
-
USN-7111-1
golang-1.17 vulnerabilities
-
openSUSE-SU-2024:12707-1
go1.19-1.19.6-1.1 on GA media
-
openSUSE-SU-2024:12708-1
go1.20-1.20.1-1.1 on GA media
-
openSUSE-SU-2024:12798-1
go1.18-1.18.10-1.1 on GA media