cve.bz

CVE-2022-41725 golang go

7.5 highEPSS 1.2%Fix available

High (7.5) in golang go. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.19.6, 1.20.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 70th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-03-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-41725 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-41725?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-41725?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-41725 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library mime/multipartbefore 1.19.6
Go standard library mime/multipartfrom 1.20.0-0 before 1.20.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2023-1569Gostdlib<1.19.6
>=1.20.0-0 <1.20.1
1.19.6, 1.20.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.191.19.6-2DEBIAN-CVE-2022-41725
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2022-41725
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2022-41725
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2022-41725
Ubuntu20.04:LTSgolang-1.13, golang-1.14no fix listedUBUNTU-CVE-2022-41725
Ubuntu20.04:LTSgolang-1.181.18.1-1ubuntu1~20.04.3UBUNTU-CVE-2022-41725 USN-7109-1
Ubuntu22.04:LTSgolang-1.171.17.13-3ubuntu1.3UBUNTU-CVE-2022-41725 USN-7111-1
Ubuntu22.04:LTSgolang-1.181.18.1-1ubuntu1.2UBUNTU-CVE-2022-41725 USN-7109-1
UbuntuPro:16.04:LTSgolang-1.181.18.1-1ubuntu1~16.04.6+esm1UBUNTU-CVE-2022-41725 USN-7109-1
UbuntuPro:16.04:LTS, Pro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2022-41725
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16no fix listedUBUNTU-CVE-2022-41725
UbuntuPro:18.04:LTSgolang-1.181.18.1-1ubuntu1~18.04.4+esm1UBUNTU-CVE-2022-41725 USN-7109-1
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2022-41725
Red Hatansible_automation_platform:2.3::el8openshift-clients0:4.12.0-202307200611.p0.g49844f7.assembly.stream.el8RHSA-2023:4470
Red Hatcontainer_native_virtualization:4.14::el8kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:4.14.1-2150.el8RHSA-2023:7672
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more1:1.24.6-7.module+el8.9.0+19784+443be299RHSA-2023:6938
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more1:1.31.3-1.module+el8.9.0+19761+326da906RHSA-2023:6939
Red Hatenterprise_linux:8::appstreamcockpit-podman0:46-1.module+el8.9.0+19098+6e7a5e3fRHSA-2023:6938
Red Hatenterprise_linux:8::appstreamcockpit-podman0:75-1.module+el8.9.0+19761+326da906RHSA-2023:6939
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource2:2.1.4-2.module+el8.9.0+19098+6e7a5e3fRHSA-2023:6938
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource3:2.1.8-1.module+el8.9.0+19761+326da906RHSA-2023:6939
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.205.0-3.module+el8.9.0+19098+6e7a5e3fRHSA-2023:6938
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.221.0-1.module+el8.9.0+19685+019f3589RHSA-2023:6939
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.1.1-5.module+el8.9.0+19784+443be299RHSA-2023:6938
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.3.0-4.module+el8.9.0+19649+5879504aRHSA-2023:6939
72 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 morecontainer-suseconnect2.4.0-150000.4.24.1SUSE-SU-2023:0871-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morego1.181.18.10-150000.1.46.1SUSE-SU-2023:0869-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morego1.18-openssl1.18.10.1-150000.1.9.1SUSE-SU-2023:2312-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morego1.191.19.7-150000.1.23.1SUSE-SU-2023:0733-1
SUSELinux Enterprise Module for Development Tools 15 SP4go1.201.20.2-150000.1.5.1SUSE-SU-2023:0735-1
openSUSELeap 15.4go1.181.18.10-150000.1.46.1SUSE-SU-2023:0869-1
openSUSELeap 15.4go1.191.19.7-150000.1.23.1SUSE-SU-2023:0733-1
openSUSELeap 15.4go1.201.20.2-150000.1.5.1SUSE-SU-2023:0735-1
openSUSELeap 15.4, Leap 15.5go1.18-openssl1.18.10.1-150000.1.9.1SUSE-SU-2023:2312-1
openSUSETumbleweedgo1.181.18.10-1.1openSUSE-SU-2024:12798-1
openSUSETumbleweedgo1.191.19.6-1.1openSUSE-SU-2024:12707-1
openSUSETumbleweedgo1.201.20.1-1.1openSUSE-SU-2024:12708-1
AlmaLinux8aardvark-dns2:1.7.0-1.module_el8.9.0+3657+d86e192fALSA-2023:6939
AlmaLinux8buildah, buildah-tests1:1.24.6-7.module_el8.9.0+3627+db8ec155ALSA-2023:6938
AlmaLinux8buildah, buildah-tests1:1.31.3-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux8cockpit-podman46-1.module_el8.7.0+3344+5bcd850fALSA-2023:6938
AlmaLinux8cockpit-podman75-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux8conmon2:2.1.4-2.module_el8.9.0+3627+db8ec155ALSA-2023:6938
AlmaLinux8conmon3:2.1.8-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux8container-selinux2:2.205.0-3.module_el8.9.0+3627+db8ec155ALSA-2023:6938
AlmaLinux8container-selinux2:2.221.0-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux8containernetworking-plugins1:1.1.1-5.module_el8.9.0+3627+db8ec155ALSA-2023:6938
AlmaLinux8containernetworking-plugins1:1.3.0-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux8containers-common2:1-38.module_el8.9.0+3627+db8ec155ALSA-2023:6938
36 more for AlmaLinux in the JSON.
Rocky Linux8buildah1:1.24.6-7.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8cockpit-podman0:46-1.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8conmon2:2.1.4-2.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8container-selinux2:2.205.0-3.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8containernetworking-plugins1:1.1.1-5.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8containers-common2:1-38.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8criu0:3.15-3.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8crun0:1.8.3-1.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8delve0:1.9.1-1.module+el8.8.0+1263+19d1a562RLSA-2023:3083
Rocky Linux8fuse-overlayfs0:1.9-2.module+el8.9.0+1445+07728297RLSA-2023:6938
Rocky Linux8golang, go-toolset0:1.19.6-1.module+el8.8.0+1263+19d1a562RLSA-2023:3083
Rocky Linux8libslirp0:4.4.0-1.module+el8.9.0+1445+07728297RLSA-2023:6938 RLSA-2023:6939
6 more for Rocky Linux in the JSON.
Alpinev3.17go1.19.6-r0ALPINE-CVE-2022-41725
Alpinev3.18, v3.19, v3.20 and 4 morego1.20.1-r0ALPINE-CVE-2022-41725
Azure Linux2golang1.19.5-1AZL-13732
Azure Linux2golang1.21.6-1AZL-37334 AZL-37487
Azure Linux2msft-golang1.19.6-1AZL-13739
Azure Linux3golangno fix listedAZL-78992 AZL-98943
Azure Linux3golang1.19.5-1AZL-34761

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The opportunity for a Denial of Service is limited to the golang runtime. In the case of the OpenShift Container Platform, this would be restricted within each individual container. There are multiple layers of guide rails (Golang’s Garbage Collector; OpenShift’s resource constraints imposed at the container and cluster levels) which would require a malicious user to continue submitting attacks for there to be any enduring impact. They would also need access to external server resources to be able to send a massive volume of requests to cause a significant impact on server operations.

ProductPackageStateAdvisory
CERT-MANAGER-1.10-RHEL-9cert-manager-operator-bundle-container-v1.10.3-4Fixed 2023-08-08RHSA-2023:4335
CERT-MANAGER-1.10-RHEL-9cert-manager-operator-container-v1.10.3-2Fixed 2023-08-08RHSA-2023:4335
CERT-MANAGER-1.10-RHEL-9jetstack-cert-manager-container-v1.10.2-18Fixed 2023-08-08RHSA-2023:4335
Cryostat 2 on RHEL 8cryostat-tech-preview/cryostat-grafana-dashboard-rhel8:2.3.0-5Fixed 2023-05-18RHSA-2023:3167
Cryostat 2 on RHEL 8cryostat-tech-preview/cryostat-operator-bundle:2.3.0-5Fixed 2023-05-18RHSA-2023:3167
Cryostat 2 on RHEL 8cryostat-tech-preview/cryostat-reports-rhel8:2.3.0-5Fixed 2023-05-18RHSA-2023:3167
Cryostat 2 on RHEL 8cryostat-tech-preview/cryostat-rhel8:2.3.0-5Fixed 2023-05-18RHSA-2023:3167
Cryostat 2 on RHEL 8cryostat-tech-preview/cryostat-rhel8-operator:2.3.0-5Fixed 2023-05-18RHSA-2023:3167
Cryostat 2 on RHEL 8cryostat-tech-preview/jfr-datasource-rhel8:2.3.0-5Fixed 2023-05-18RHSA-2023:3167
Migration Toolkit for Virtualization 2.4migration-toolkit-virtualization/mtv-controller-rhel9:2.4.3-5Fixed 2023-10-25RHBA-2023:6109
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel8Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel9Not affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel8-operatorAffected
Node Maintenance Operatorworkload-availability/node-maintenance-rhel8-operatorAffected
OpenShift Developer Tools and ServiceshelmAffected
OpenShift Developer Tools and Servicesocp-tools-4/jenkins-rhel8Affected
OpenShift Developer Tools and ServicesodoWill not fix
OpenShift Pipelinesopenshift-pipelines-clientWill not fix
OpenShift Serverlessknative-eventingAffected
OpenShift Serverlessknative-servingAffected
533 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-41725.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON