CVE-2024-37298: Potential memory exhaustion attack due to sparse slice deserialization
Vulnerability summary
CVE-2024-37298 is a high (CVSS 7.5) vulnerability in gorilla schema. EPSS estimates a 1.10% chance of exploitation in the next 30 days, higher than 65.2% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 8 · Related 5Timeline
- 01-07-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 8 sources · 1 version- OSV · Red hatEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · GoEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.10%
Chance of exploitation in the next 30 days
Percentile
65%
Versus all other CVEs
30-day change
Decrease -0.01 pp
From 1.10% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Redhat13 products
- podman< 3:4.4.1-25.2.rhaos4.15.el8 | < 3:4.4.1-25.2.rhaos4.15.el9 | < 2:4.2.0-5.el9_0 | < 3:4.4.1-9.3.rhaos4.13.el8 | < 3:4.4.1-10.3.rhaos4.13.el9
- podman-catatonit< 3:4.4.1-25.2.rhaos4.15.el8 | < 2:4.2.0-5.el9_0 | < 3:4.4.1-9.3.rhaos4.13.el8
- podman-catatonit-debuginfo< 3:4.4.1-25.2.rhaos4.15.el8 | < 2:4.2.0-5.el9_0 | < 3:4.4.1-9.3.rhaos4.13.el8
- podman-debuginfo< 3:4.4.1-25.2.rhaos4.15.el8 | < 3:4.4.1-25.2.rhaos4.15.el9 | < 2:4.2.0-5.el9_0 | < 3:4.4.1-9.3.rhaos4.13.el8 | < 3:4.4.1-10.3.rhaos4.13.el9
- podman-debugsource< 3:4.4.1-25.2.rhaos4.15.el8 | < 3:4.4.1-25.2.rhaos4.15.el9 | < 2:4.2.0-5.el9_0 | < 3:4.4.1-9.3.rhaos4.13.el8 | < 3:4.4.1-10.3.rhaos4.13.el9
Chainguard3 products
- harbor-scanner-trivy< 0.31.3-r1
- harbor-scanner-trivy-fips< 0.31.3-r1
- zot< 2.0.4-r9
Wolfi2 products
- harbor-scanner-trivy< 0.31.3-r1
- zot< 2.0.4-r9
Debian1 product
- golang-github-gorilla-schemaAll versions (No fix recorded) | < 1.4.1-1
Github.com/gorilla1 product
- schema< 1.4.1
Gorilla1 product
- schema< 1.4.1
Ubuntu1 product
- golang-github-gorilla-schemaAll versions (No fix recorded)
7 vendors · 22 products
References
19 links- github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3X Refsource CONFIRMARTICLEREPORTAdvisoryWEB
- github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ffX Refsource MISCARTICLEREPORTFIXWEB
Show all 19 references
- github.com/gorilla/schemaPACKAGE