CVE-2023-45290
Memory exhaustion in multipart form parsing in net/textproto and net/http
Reported by go · Published March 5, 2024
When parsing a multipart form (either explicitly with Request.ParseMultipartForm or implicitly with Request.FormValue, Request.PostFormValue, or Request.FormFile), limits on the total size of the parsed form were not applied to the memory consumed while reading a single form line. This permits a maliciously crafted input containing very long lines to cause allocation of arbitrarily large amounts of memory, potentially leading to memory exhaustion. With fix, the ParseMultipartForm function now correctly limits the maximum size of form lines.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| amass | Chainguard | 4.2.0-r4 |
| amass | Wolfi | 4.2.0-r4 |
| k8ssandra-operator-fips | Chainguard | 1.13.0-r1 |
| dex | Chainguard | 2.38.0-r1 |
| dex | Wolfi | 2.38.0-r1 |
| golang | Amazon Linux | 1.22.3-1.amzn2023.0.1 |
| delve | Wolfi | 1.22.1-r1 |
| scorecard | Wolfi | 4.13.1-r2 |
| goreleaser-1.18 | Wolfi | 1.18.2-r6 |
| temporal-ui-server | Wolfi | 2.24.0-r1 |
| bom | Wolfi | 0.6.0-r1 |
| kube-logging-operator | Wolfi | 4.5.6-r1 |
88 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | net/textproto | 0, 1.22.0-0 |
| chainguard | amass | 0 |
| wolfi | amass | 0 |
| chainguard | k8ssandra-operator-fips | 0 |
| chainguard | dex | 0 |
| wolfi | dex | 0 |
| amazon:2023 | golang | 0 |
| wolfi | delve | 0 |
| wolfi | scorecard | 0 |
| wolfi | goreleaser-1.18 | 0 |
| wolfi | temporal-ui-server | 0 |
| wolfi | bom | 0 |
| wolfi | kube-logging-operator | 0 |
| chainguard | chainctl | 0 |
| wolfi | nri-mongodb | 0 |
| chainguard | prometheus-redis-exporter | 0 |
| chainguard | helm-push | 0 |
| chainguard | prometheus-pushgateway | 0 |
| chainguard | dynamic-localpv-provisioner-fips | 0 |
| wolfi | protoc-gen-go-grpc | 0 |
…and 702 more
Timeline
- Feb 29, 2024 CVE Published
- Mar 6, 2024 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Security Advisory (239 in total, the first dated here)
- Aug 2, 2026 Coalition ESS Score
- Aug 10, 2026 Distribution Patch (226 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-45290
vulnetix vdb fixes CVE-2023-45290
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-45290/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart