{"id":"EUVD-2024-2233","revision":null,"records":[{"revision":"8a66334953994280b5ea866aec932daf","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-37298","aliases":[],"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.","state":0,"publishedAt":"2024-07-01T18:27:33.952+00:00","modifiedAt":"2024-08-02T03:50:55.675+00:00","affected":[{"ecosystem":"Vendor product","name":"schema","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"gorilla\",\n                    \"product\": \"schema\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 1.4.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-37298","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-37298","identifiers":["CVE-2024-37298"]},"retained":false,"historicalAffected":[]},{"revision":"a7d9e71de425454bbbc7546ea5d7ebe0","observedAt":"2026-11-15T01:55:28.865+00:00","statement":{"source":"euvd","id":"EUVD-2024-2233","aliases":["CVE-2024-37298","GHSA-3669-72x9-r9p3"],"title":"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 adv…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":null}],"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"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-2233","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jul 1, 2024, 6:27:33 PM","dateUpdated":"Aug 2, 2024, 3:50:55 AM"},"relatedAdvisories":[{"id":"RHSA-2024:4963","title":"Red Hat Security Advisory: OpenShift Container Platform 4.14.34 security update","vulnerabilityIds":["CVE-2024-6104","CVE-2024-37298"]},{"id":"RHSA-2024:4848","title":"Red Hat Security Advisory: OpenShift Container Platform 4.13.46 security update","vulnerabilityIds":["CVE-2024-37298"]},{"id":"RHSA-2024:6054","title":"Red Hat Security Advisory: ACS 4.4 enhancement and security update","vulnerabilityIds":["CVE-2024-3727","CVE-2024-6104","CVE-2024-37298"]},{"id":"RHSA-2024:5258","title":"Red Hat Security Advisory: container-tools:rhel8 security update","vulnerabilityIds":["CVE-2023-45290","CVE-2024-1394","CVE-2024-3727","CVE-2024-6104","CVE-2024-24783","CVE-2024-24784","CVE-2024-24789","CVE-2024-37298","CVE-2024-37891"]},{"id":"RHSA-2024:4825","title":"Red Hat Security Advisory: podman security update","vulnerabilityIds":["CVE-2024-37298"]},{"id":"RHSA-2024:6194","title":"Red Hat Security Advisory: podman security update","vulnerabilityIds":["CVE-2024-6104","CVE-2024-24783","CVE-2024-37298"]},{"id":"RHSA-2024:5634","title":"Red Hat Security Advisory: podman security update","vulnerabilityIds":["CVE-2024-1394","CVE-2024-6104","CVE-2024-37298"]},{"id":"openSUSE-SU-2025:14663-1","title":"velociraptor-0.7.0.4.git142.862ef23-1.1 on GA media","vulnerabilityIds":["CVE-2023-1732","CVE-2023-44270","CVE-2023-45133","CVE-2023-45683","CVE-2023-46234","CVE-2024-21538","CVE-2024-23331","CVE-2024-24786","CVE-2024-28180","CVE-2024-31207","CVE-2024-37298","CVE-2024-4067","CVE-2024-4068","CVE-2024-42459","CVE-2024-42460","CVE-2024-42461","CVE-2024-45296","CVE-2024-45338","CVE-2024-45811","CVE-2024-45812","CVE-2024-47068","CVE-2024-47875","CVE-2024-48948","CVE-2024-48949","CVE-2024-51744","CVE-2024-55565","CVE-2024-6104"]},{"id":"NCSC-2024-0339","title":"Kwetsbaarheden verholpen in Microsoft Mariner","vulnerabilityIds":["CVE-2022-2601","CVE-2022-3775","CVE-2022-36648","CVE-2019-3833","CVE-2021-3929","CVE-2021-4158","CVE-2021-4206","CVE-2021-4207","CVE-2022-26353","CVE-2022-35414","CVE-2023-3354","CVE-2022-3872","CVE-2022-4144","CVE-2023-45288","CVE-2023-29404","CVE-2023-29402","CVE-2019-3816","CVE-2021-3750","CVE-2022-0358","CVE-2022-26354","CVE-2022-3165","CVE-2022-2962","CVE-2022-41722","CVE-2022-29526","CVE-2007-4559","CVE-2019-9674","CVE-2017-18207","CVE-2019-20907","CVE-2021-23336","CVE-2017-17522","CVE-2024-6655","CVE-2024-2466","CVE-2024-39331","CVE-2021-43565","CVE-2024-39277","CVE-2024-38780","CVE-2024-39292","CVE-2024-39482","CVE-2024-39484","CVE-2024-39495","CVE-2024-40902","CVE-2024-41110","CVE-2024-37298","CVE-2024-0397","CVE-2024-38571","CVE-2024-42077","CVE-2024-39473","CVE-2024-26900","CVE-2024-39474","CVE-2024-42073","CVE-2024-42074","CVE-2024-42075","CVE-2024-42078","CVE-2024-0853","CVE-2024-2004","CVE-2024-2398","CVE-2024-38662","CVE-2024-36288","CVE-2024-39480","CVE-2024-39476","CVE-2024-39475","CVE-2024-37371","CVE-2024-26461","CVE-2024-37370","CVE-2024-6104","CVE-2024-6257","CVE-2024-23722","CVE-2024-40898","CVE-2024-38583","CVE-2024-39493","CVE-2024-42068","CVE-2024-39489","CVE-2024-42070","CVE-2024-42076","CVE-2024-42080","CVE-2024-38428","CVE-2024-42082","CVE-2022-48788","CVE-2023-52340","CVE-2022-48841","CVE-2024-39485","CVE-2024-39483","CVE-2024-42071","CVE-2024-42072","CVE-2024-42237","CVE-2024-42083"]},{"id":"msrc_CVE-2024-37298","title":"Potential memory exhaustion attack due to sparse slice deserialization","vulnerabilityIds":["CVE-2024-37298"]},{"id":"RHSA-2024:4702","title":"Red Hat Security Advisory: OpenShift Container Platform 4.15.23 packages and security update","vulnerabilityIds":["CVE-2024-37298"]},{"id":"RHSA-2024:4858","title":"Red Hat Security Advisory: OpenShift Container Platform 4.16.5 packages and security update","vulnerabilityIds":["CVE-2024-6104","CVE-2024-37298"]},{"id":"WID-SEC-W-2024-1709","title":"Podman: Schwachstelle ermöglicht Denial of Service","vulnerabilityIds":["CVE-2024-37298"]},{"id":"RHSA-2024:5202","title":"Red Hat Security Advisory: OpenShift Container Platform 4.12.63 packages and security update","vulnerabilityIds":["CVE-2023-45290","CVE-2024-24790","CVE-2024-37298"]},{"id":"RHSA-2024:5194","title":"Red Hat Security Advisory: container-tools:rhel8 security update","vulnerabilityIds":["CVE-2024-6104","CVE-2024-37298"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2024-2233","identifiers":["EUVD-2024-2233","CVE-2024-37298","GHSA-3669-72x9-r9p3"]},"retained":false,"historicalAffected":[]},{"revision":"ca9188e245db4d03b73d3faaf84226d7","observedAt":"2026-10-25T00:17:15.977+00:00","statement":{"source":"nvd","id":"CVE-2024-37298","aliases":[],"title":"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 adv…","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.","state":0,"publishedAt":"2024-07-01T19:15:04.283+00:00","modifiedAt":"2026-06-17T07:38:05.733+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/gorilla/schema/blob/main/decoder.go#L223","https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff","https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-37298","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-770"],"productCriteria":[],"sourceDates":{"published":"2024-07-01T19:15:04.283","lastModified":"2026-06-17T07:38:05.733"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2024-37298","identifiers":["CVE-2024-37298"]},"retained":false,"historicalAffected":[]},{"revision":"a11a858f6d46472f9ae07bf92f532933","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-3669-72x9-r9p3","aliases":["CVE-2024-37298","GO-2024-2958"],"title":"Potential memory exhaustion attack due to sparse slice deserialization","description":"### Details\n\nRunning `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. For instance, in the Proof of Concept written below, someone can specify to set a field of the billionth element and it will allocate all other elements before it in the slice. \n\nIn the local environment environment for my project, I was able to call an endpoint like `/innocent_endpoint?arr.10000000.X=1` and freeze my system from the memory allocation while parsing `r.Form`. I think [this line](https://github.com/gorilla/schema/blob/main/decoder.go#L223) is responsible for allocating the slice, although I haven't tested to make sure, so it's just an educated guess.\n\n### Proof of Concept\n\nThe following proof of concept works on both v1.2.0 and v1.2.1. I have not tested earlier versions.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/gorilla/schema\"\n)\n\nfunc main() {\n\tdec := schema.NewDecoder()\n\tvar result struct {\n\t\tArr []struct{ Val int }\n\t}\n\tif err := dec.Decode(&result, map[string][]string{\"arr.1000000000.Val\": {\"1\"}}); err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"%#+v\\n\", result)\n}\n\n```\n\n### Impact\n\nAny use of `schema.Decoder.Decode()` on a struct with arrays of other structs could be vulnerable to this memory exhaustion vulnerability. There seems to be no possible solution that a developer using this library can do to disable this behaviour without fixing it in this project, so all uses of Decode that fall under this umbrella are affected. A fix that doesn't require a major change may also be harder to find, since it could break compatibility with some other intended use-cases.\n","state":0,"publishedAt":"2024-07-01T20:35:12+00:00","modifiedAt":"2026-09-10T03:50:16.1915993+00:00","affected":[{"ecosystem":"Go","name":"github.com/gorilla/schema","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.4.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3","https://nvd.nist.gov/vuln/detail/CVE-2024-37298","https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff","https://github.com/gorilla/schema","https://github.com/gorilla/schema/blob/main/decoder.go#L223"],"sourceUrl":"https://github.com/advisories/GHSA-3669-72x9-r9p3","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-3669-72x9-r9p3","identifiers":["GHSA-3669-72x9-r9p3","CVE-2024-37298","GO-2024-2958"]},"retained":false,"historicalAffected":[]},{"revision":"6b43c0f4ff8a4fb5adc6c8a37c3895c5","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2024-2958","aliases":["CVE-2024-37298","GHSA-3669-72x9-r9p3"],"title":"Potential memory exhaustion attack due to sparse slice deserialization in github.com/gorilla/schema","description":"Potential memory exhaustion attack due to sparse slice deserialization in github.com/gorilla/schema","state":0,"publishedAt":"2024-07-02T19:19:24+00:00","modifiedAt":"2026-02-04T02:53:15.821632+00:00","affected":[{"ecosystem":"Go","name":"github.com/gorilla/schema","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.4.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"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"],"sourceUrl":"https://osv.dev/vulnerability/GO-2024-2958","license":"OSV · upstream source license applies","key":"osv:GO-2024-2958","identifiers":["GO-2024-2958","CVE-2024-37298","GHSA-3669-72x9-r9p3"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T15:46:28.5867679+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T15:46:28.5867679+00:00","lastSuccessAt":"2026-11-16T15:46:28.7336518+00:00","error":null,"lastVerifiedAt":"2026-11-16T15:46:28.7336528+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-12f82bfd2f0251f244474ead94aa147d6e6e5a295312f7bfcd9f3990dddcf44d","complete":true,"records":426048,"lastAttemptAt":"2026-11-16T15:44:51.0968416+00:00","lastSuccessAt":"2026-11-16T15:44:51.0015391+00:00","error":null,"lastVerifiedAt":"2026-11-16T15:44:51.0968416+00:00","snapshotPublishedAt":"2026-11-16T15:30:52+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b53a453bd21948638a37a0c1d9db90a8","complete":true,"records":13830,"lastAttemptAt":"2026-11-16T15:47:10.0420289+00:00","lastSuccessAt":"2026-11-16T15:47:10.038+00:00","error":null,"lastVerifiedAt":"2026-11-16T15:47:10.038+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13883,"expectedIdentifiers":13883,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T15:46:28.5867679+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T15:46:28.5867679+00:00","lastSuccessAt":"2026-11-16T15:46:28.7348718+00:00","error":null,"lastVerifiedAt":"2026-11-16T15:46:28.7348721+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-9aad64c357a84d2b95eb370a9099d8a7","complete":false,"records":13842,"lastAttemptAt":"2026-11-16T15:46:54.2697305+00:00","lastSuccessAt":"2026-11-16T15:46:54.266+00:00","error":"209 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T15:46:54.266+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13674,"expectedIdentifiers":13883,"failedIdentifiers":209},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T15:46:28.4519077+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T15:46:28.4519077+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T15:44:51.2546448+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T15:44:51.2546448+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T15:46:28.5571571+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T15:46:28.5571571+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-58b43c63da2e2d496e2f653c5bea97bd9deda68f62d1c3a4dc0212d13b04b5b2","complete":true,"records":232492,"lastAttemptAt":"2026-11-16T15:46:28.326888+00:00","lastSuccessAt":"2026-11-16T15:46:27.3875263+00:00","error":null,"lastVerifiedAt":"2026-11-16T15:46:28.326888+00:00","snapshotPublishedAt":"2026-11-16T15:33:39+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}