CVEBrief

Home / Go standard library / mime/multipart / CVE-2022-41725

CVE-2022-41725: is it exploited, and which versions of Go standard library mime/multipart are affected and fixed?

CVE-2022-41725 is a denial of service (uncontrolled resource consumption) vulnerability in Go standard library mime/multipart. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: mime/multipart before 1.19.6 and mime/multipart from 1.20.0-0 before 1.20.1 (CVE record by Go). Fixed in 1.19.6 and 1.20.1 (CVE record by Go). Severity: High (7.5, CVSS 3.1, from NVD).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:41 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 14:38 UTC
Affected
mime/multipart before 1.19.6 and mime/multipart from 1.20.0-0 before 1.20.1
CVE record by Go
Fixed in
1.19.6 and 1.20.1
CVE record by Go
Severity
High 7.5
CVSS 3.1 from NVD
Exploit odds (EPSS)
1.23% in 30 days
higher than 70% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2022-41725?

Excessive resource consumption in mime/multipart

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.

From the CVE record by Go, last updated March 7, 2025, 17:58 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
Go standard librarymime/multipartbefore 1.19.6
from 1.20.0-0 before 1.20.1
1.19.6, 1.20.1

As the CVE record by Go states it, last updated March 7, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
golanggobefore 1.19.6application
golanggo1.20.0application

NVD analysis (status Modified), last modified June 17, 2026, 05:03 UTC.

How severe is CVE-2022-41725?

ScoreVersionVectorSource
High 7.5CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2022-41725 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, March 7, 2025)
EPSS
1.23% probability of exploitation activity in the next 30 days, percentile 69.9 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
September 28, 2022
Published
February 28, 2023, 17:19 UTC
CVE record updated
March 7, 2025, 17:58 UTC by Go
NVD
Modified, last modified June 17, 2026, 05:03 UTC
Last checked
CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:41 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect mime/multipart?

Every CVE in mime/multipart

Questions about CVE-2022-41725

Is CVE-2022-41725 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 1.23% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of Go standard library mime/multipart are affected by CVE-2022-41725?

mime/multipart before 1.19.6 and mime/multipart from 1.20.0-0 before 1.20.1, per the CVE record by Go. The tables above give every range the sources list.

Which version fixes CVE-2022-41725?

1.19.6 and 1.20.1, per the CVE record by Go. Check the vendor's advisory before you rely on it.

How severe is CVE-2022-41725?

High (7.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.

Where is the official record of CVE-2022-41725?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.