{"id":"CVE-2024-37298","state":"PUBLISHED","title":"Potential memory exhaustion attack due to sparse slice deserialization","description":"gorilla/schema converts structs to and from form values. Prior to version 1.4.1 Running `schema.Decoder.Decode()` on a struct that has a field of type `[]struct{...}` opens it up to malicious attacks regarding memory allocations, taking advantage of the sparse slice functionality. Any use of `schema.Decoder.Decode()` on a struct with arrays of other structs could be vulnerable to this memory exhaustion vulnerability. Version 1.4.1 contains a patch for the issue.","publishedAt":"2024-07-01T18:27:33.952Z","updatedAt":"2024-08-02T03:50:55.675Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["gorilla schema"],"affected":[{"vendor":"gorilla","product":"schema","versions":[{"version":"< 1.4.1","status":"affected"}]}],"references":["https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3","https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff","https://github.com/gorilla/schema/blob/main/decoder.go#L223"],"weaknesses":["CWE-770"],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/37xxx/CVE-2024-37298.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-37298","state":"PUBLISHED","datePublished":"2024-07-01T18:27:33.952Z","dateUpdated":"2024-08-02T03:50:55.675Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-06-05T20:10:46.496Z"},"containers":{"cna":{"title":"Potential memory exhaustion attack due to sparse slice deserialization","descriptions":[{"lang":"en","value":"gorilla/schema converts structs to and from form values. Prior to version 1.4.1 Running `schema.Decoder.Decode()` on a struct that has a field of type `[]struct{...}` opens it up to malicious attacks regarding memory allocations, taking advantage of the sparse slice functionality. Any use of `schema.Decoder.Decode()` on a struct with arrays of other structs could be vulnerable to this memory exhaustion vulnerability. Version 1.4.1 contains a patch for the issue."}],"affected":[{"vendor":"gorilla","product":"schema","versions":[{"version":"< 1.4.1","status":"affected"}]}],"references":[{"url":"https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3","name":"https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff","name":"https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff","tags":["x_refsource_MISC"]},{"url":"https://github.com/gorilla/schema/blob/main/decoder.go#L223","name":"https://github.com/gorilla/schema/blob/main/decoder.go#L223","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-770","lang":"en","description":"CWE-770: Allocation of Resources Without Limits or Throttling","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-07-01T18:27:33.952Z"},"source":{"advisory":"GHSA-3669-72x9-r9p3","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"gorillatoolkit","product":"schema","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"1.4.1","versionType":"custom"}],"cpes":["cpe:2.3:a:gorillatoolkit:schema:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-07-02T14:16:14.834696Z","id":"CVE-2024-37298","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-03T20:58:34.291Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3","name":"https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff","name":"https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/gorilla/schema/blob/main/decoder.go#L223","name":"https://github.com/gorilla/schema/blob/main/decoder.go#L223","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T03:50:55.675Z"}}]}}}