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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.241% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T16:04:35.064Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:39.236Z | OSV |
| affected | verified | 2026-11-19T12:56:41.656Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:41.656Z | CVE Program |
Affected versions and configuration
Go standard library mime/multipart; default status: unaffected: 0 to < 1.19.6 [affected; scheme: semver]; 1.20.0-0 to < 1.20.1 [affected; scheme: semver]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "Go standard library",
"product": "mime/multipart",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "1.19.6",
"versionType": "semver"
},
{
"status": "affected",
"version": "1.20.0-0",
"lessThan": "1.20.1",
"versionType": "semver"
}
],
"packageName": "mime/multipart",
"collectionURL": "https://pkg.go.dev",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "Reader.ReadForm"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://go.dev/issue/58006",
"tags": [
"x_transferred"
]
},
{
"url": "https://go.dev/cl/468124",
"tags": [
"x_transferred"
]
},
{
"url": "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E",
"tags": [
"x_transferred"
]
},
{
"url": "https://pkg.go.dev/vuln/GO-2023-1569",
"tags": [
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/202311-09",
"tags": [
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T12:49:43.723Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-41725",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-03-07T17:57:52.557641Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-03-07T17:58:06.747Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GO-2023-1569",
"aliases": [
"BIT-golang-2022-41725",
"CVE-2022-41725"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.19.6"
},
{
"introduced": "1.20.0-0"
},
{
"fixed": "1.20.1"
}
]
}
],
"package": {
"name": "stdlib",
"purl": "pkg:golang/stdlib",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2023-1569.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "mime/multipart",
"symbols": [
"Reader.ReadForm"
]
}
]
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://go.dev/issue/58006",
"type": "REPORT"
},
{
"url": "https://go.dev/cl/468124",
"type": "FIX"
},
{
"url": "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2023-1569",
"review_status": "REVIEWED"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Go / package | stdlib | Not a distribution channel | 1.19.6 | Official record |
| ecosystem-boundary | Go / package | stdlib | Not a distribution channel | 1.20.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:39.236ZArchived source JSON
Source publication: 2023-02-21T20:44:30.000Z
Source modification: 2026-02-04T03:22:48.161ZDocument fingerprint
4ca7818b395ba1078372d8aa5d2c3c1d10796ecab94cc944cbdcb6a19ce4ed17 - CVE ProgramConsulted: 2026-11-19T12:56:41.656ZArchived source JSON
Source publication: 2023-02-28T17:19:42.989Z
Source modification: 2025-03-07T17:58:06.747ZDocument fingerprint
1386d30896e85152d32317d6c8c79e401fb03e7706e0229764446113db068b67 - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:35.064ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
c13e0c6529336cd1e12663be20e318c9cd67e09307dd85d396d1c3a6f2ee454d
Official status history
- UNKNOWN → PUBLISHED · · evidence