ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2023-45290

Details

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.

Affected packages

EcosystemPackageAffected versions
Ubuntu:14.04:LTSgolang-1.10
All versions, no fix listed
Ubuntu:Pro:16.04:LTSgolang-1.18
All versions before 1.18.1-1ubuntu1~16.04.6+esm1 (fixed in 1.18.1-1ubuntu1~16.04.6+esm1)
Ubuntu:16.04:LTSgolang-1.10
All versions, no fix listed
Ubuntu:16.04:LTSgolang-1.6
All versions, no fix listed
Ubuntu:Pro:16.04:LTSgolang-1.13
All versions, no fix listed
Ubuntu:18.04:LTSgolang-1.10
All versions, no fix listed
Ubuntu:Pro:18.04:LTSgolang-1.13
All versions, no fix listed
Ubuntu:Pro:18.04:LTSgolang-1.16
All versions, no fix listed
Ubuntu:Pro:18.04:LTSgolang-1.18
All versions before 1.18.1-1ubuntu1~18.04.4+esm1 (fixed in 1.18.1-1ubuntu1~18.04.4+esm1)
Ubuntu:18.04:LTSgolang-1.8
All versions, no fix listed
Ubuntu:18.04:LTSgolang-1.9
All versions, no fix listed
Ubuntu:20.04:LTSgolang-1.18
All versions before 1.18.1-1ubuntu1~20.04.3 (fixed in 1.18.1-1ubuntu1~20.04.3)
Ubuntu:20.04:LTSgolang-1.21
All versions before 1.21.1-1~ubuntu20.04.3 (fixed in 1.21.1-1~ubuntu20.04.3)
Ubuntu:20.04:LTSgolang-1.13
All versions, no fix listed
Ubuntu:20.04:LTSgolang-1.14
All versions, no fix listed
Ubuntu:Pro:20.04:LTSgolang-1.16
All versions, no fix listed
Ubuntu:20.04:LTSgolang-1.20
All versions, no fix listed
Ubuntu:22.04:LTSgolang-1.17
All versions before 1.17.13-3ubuntu1.3 (fixed in 1.17.13-3ubuntu1.3)
Ubuntu:22.04:LTSgolang-1.18
All versions before 1.18.1-1ubuntu1.2 (fixed in 1.18.1-1ubuntu1.2)
Ubuntu:22.04:LTSgolang-1.20
All versions, no fix listed
Ubuntu:22.04:LTSgolang-1.21
All versions before 1.21.1-1~ubuntu22.04.3 (fixed in 1.21.1-1~ubuntu22.04.3)
Ubuntu:Pro:22.04:LTSgolang-1.13
All versions, no fix listed

References