| { |
| "dataType": "CVE_RECORD", |
| "dataVersion": "5.0", |
| "cveMetadata": { |
| "cveId": "CVE-2023-45290" |
| }, |
| "containers": { |
| "cna": { |
| "providerMetadata": { |
| "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" |
| }, |
| "title": "Memory exhaustion in multipart form parsing in net/textproto and net/http", |
| "descriptions": [ |
| { |
| "lang": "en", |
| "value": "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": [ |
| { |
| "vendor": "Go standard library", |
| "product": "net/textproto", |
| "collectionURL": "https://pkg.go.dev", |
| "packageName": "net/textproto", |
| "versions": [ |
| { |
| "version": "0", |
| "lessThan": "1.21.8", |
| "status": "affected", |
| "versionType": "semver" |
| }, |
| { |
| "version": "1.22.0-0", |
| "lessThan": "1.22.1", |
| "status": "affected", |
| "versionType": "semver" |
| } |
| ], |
| "programRoutines": [ |
| { |
| "name": "Reader.readLineSlice" |
| }, |
| { |
| "name": "Reader.readContinuedLineSlice" |
| }, |
| { |
| "name": "Reader.ReadCodeLine" |
| }, |
| { |
| "name": "Reader.ReadContinuedLine" |
| }, |
| { |
| "name": "Reader.ReadContinuedLineBytes" |
| }, |
| { |
| "name": "Reader.ReadDotLines" |
| }, |
| { |
| "name": "Reader.ReadLine" |
| }, |
| { |
| "name": "Reader.ReadLineBytes" |
| }, |
| { |
| "name": "Reader.ReadMIMEHeader" |
| }, |
| { |
| "name": "Reader.ReadResponse" |
| } |
| ], |
| "defaultStatus": "unaffected" |
| } |
| ], |
| "problemTypes": [ |
| { |
| "descriptions": [ |
| { |
| "lang": "en", |
| "description": "CWE-400: Uncontrolled Resource Consumption" |
| } |
| ] |
| } |
| ], |
| "references": [ |
| { |
| "url": "https://go.dev/issue/65383" |
| }, |
| { |
| "url": "https://go.dev/cl/569341" |
| }, |
| { |
| "url": "https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg" |
| }, |
| { |
| "url": "https://pkg.go.dev/vuln/GO-2024-2599" |
| }, |
| { |
| "url": "https://security.netapp.com/advisory/ntap-20240329-0004/" |
| }, |
| { |
| "url": "http://www.openwall.com/lists/oss-security/2024/03/08/4" |
| } |
| ], |
| "credits": [ |
| { |
| "lang": "en", |
| "value": "Bartek Nowotarski" |
| } |
| ] |
| } |
| } |
| } |