CVEMETERBack to radar
OFFICIAL RECORD · Go

CVE-2022-41725

PUBLISHEDOfficial status check: verifiedCVSS unknown: unknown · unknown

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

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:57:41.748ZCISA KEV
cvssunknownunknownunknown
epssverified2026-11-19T16:04:35.064ZFIRST EPSS
patchesverified2026-11-19T12:52:39.236ZOSV
affectedverified2026-11-19T12:56:41.656ZCVE Program
lifecycleverified2026-11-19T12:56:41.656ZCVE 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 JSON
OSV · 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 JSON

Correction 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 typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryGo / packagestdlibNot a distribution channel1.19.6Official record
ecosystem-boundaryGo / packagestdlibNot a distribution channel1.20.1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history