# CVE-2024-37298: Potential memory exhaustion attack due to sparse slice deserialization

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.10%, higher than 66% of CVEs (2026-12-01)
- Published: 2024-07-01T18:27:33.952Z
- Modified: 2026-09-10T03:50:16.191Z
- Also known as: GHSA-3669-72x9-r9p3, GO-2024-2958
- Related: CGA-c6pm-6625-xr6w
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gorilla schema: < 1.4.1
- gorillatoolkit schema: before 1.4.1
- github.com/gorilla/schema (Go): before 1.4.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3> (advisory, web)
- <https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff> (fix, web)
- <https://github.com/gorilla/schema/blob/main/decoder.go#L223> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-37298> (advisory)
- <https://github.com/gorilla/schema> (package)

## Sources

- CVE List: [CVE-2024-37298](https://www.cve.org/CVERecord?id=CVE-2024-37298), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-3669-72x9-r9p3](https://github.com/advisories/GHSA-3669-72x9-r9p3), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2958](https://pkg.go.dev/vuln/GO-2024-2958), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-37298](https://nvd.nist.gov/vuln/detail/CVE-2024-37298), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-37298 · Whole record: https://cve.day/CVE-2024-37298.json · Rebuilt by cve.day 2026-11-25T22:58:42.415Z
