Lucene search

K
cvelistGoCVELIST:CVE-2023-24534
HistoryApr 06, 2023 - 3:50 p.m.

CVE-2023-24534 Excessive memory allocation in net/http and net/textproto

2023-04-0615:50:45
Go
www.cve.org
1
cve-2023-24534
excessive memory allocation
net/http
net/textproto
denial of service
http
mime header parsing

8.7 High

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

59.7%

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.

CNA Affected

[
  {
    "vendor": "Go standard library",
    "product": "net/textproto",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "net/textproto",
    "versions": [
      {
        "version": "0",
        "lessThan": "1.19.8",
        "status": "affected",
        "versionType": "semver"
      },
      {
        "version": "1.20.0-0",
        "lessThan": "1.20.3",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "programRoutines": [
      {
        "name": "readMIMEHeader"
      },
      {
        "name": "Reader.upcomingHeaderNewlines"
      },
      {
        "name": "Reader.ReadMIMEHeader"
      }
    ],
    "defaultStatus": "unaffected"
  }
]