7.5
HIGH CVSS 3.1
CVE-2024-37298
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.

INFO

Published Date :

July 1, 2024, 7:15 p.m.

Last Modified :

June 17, 2026, 7:38 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2024-37298 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Gorilla schema
1 Gorillatoolkit schema
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH [email protected]
Solution
This addresses a memory exhaustion vulnerability in gorilla/schema packages, requiring updates.
  • Update the affected packages to the latest version.
  • If applicable, update related container packages.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-37298 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-37298 vulnerability anywhere in the article.

  • tripwire.com
VERT Threat Alert: August 2024 Patch Tuesday Analysis

Today’s VERT Alert addresses Microsoft’s August 2024 Security Updates. VERT is actively working on coverage for these vulnerabilities and expects to ship ASPL-1119 as soon as coverage is completed.CVE ... Read more

Published Date: Aug 13, 2024 (2 years, 3 months ago)

The following table lists the changes that have been made to the CVE-2024-37298 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'gorilla', 'product': 'schema', 'versions': [{'status': 'affected', 'version': '< 1.4.1'}]}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'cpes': ['cpe:2.3:a:gorillatoolkit:schema:*:*:*:*:*:*:*:*'], 'vendor': 'gorillatoolkit', 'product': 'schema', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '1.4.1', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}]
    Added SSVC {'id': 'CVE-2024-37298', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'yes'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2024-07-02T14:16:14.834696Z'}
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/gorilla/schema/blob/main/decoder.go#L223
    Added Reference https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff
    Added Reference https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3
  • CVE Received by [email protected]

    Jul. 01, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference GitHub, Inc. https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff [No types assigned]
    Added Reference GitHub, Inc. https://github.com/gorilla/schema/blob/main/decoder.go#L223 [No types assigned]
    Added CWE GitHub, Inc. CWE-770
    Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.