CVE-2023-24534: HTTP and MIME header parsing can allocate large amounts of memory, even when parsing small inputs, potentially leading to a denial of service.
High CVSS 7.5
- CVE id
- CVE-2023-24534
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Go Runtimes and servers |
< 1.19.8 >= 1.20.0, < 1.20.3 |
1.19.8, 1.20.3 |
How to fix it
Upgrade Go to the fixed release of the line you run: 1.19.8, 1.20.3.
go version
- Build with the patched Go release (set "toolchain" in go.mod, or the golang image tag) and redeploy: Go programs include the standard library, so they must be rebuilt.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
HTTP and MIME header parsing can allocate large amounts of memory, even when parsing small inputs, potentially leading to a denial of service. Certain unusual patterns of input data can cause the common function used to parse HTTP and MIME headers to allocate substantially more memory than required to hold the parsed headers. An attacker can exploit this behavior to cause an HTTP server to allocate large amounts of memory from a small request, potentially leading to memory exhaustion and a denial of service. With fix, header parsing now correctly allocates only the memory required to hold parsed headers.
References
- CVE-2023-24534 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-24534
- Web: https://go.dev/cl/481994
- Web: https://go.dev/issue/58975
- Web: https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8
- Web: https://pkg.go.dev/vuln/GO-2023-1704
- Web: https://security.gentoo.org/glsa/202311-09
- Web: https://security.netapp.com/advisory/ntap-20230526-0007/
- Web: https://go.dev/cl/481994
- Web: https://go.dev/issue/58975
- Web: https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8
- Web: https://pkg.go.dev/vuln/GO-2023-1704
- Web: https://security.gentoo.org/glsa/202311-09
- Web: https://security.netapp.com/advisory/ntap-20230526-0007/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.