cve.bz

CVE-2024-37298 gorilla schema

7.5 highEPSS 1.1%Fix available

High (7.5) in gorilla schema. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/gorilla/schema 1.4.1.

On this page
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.

Severity

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
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 66th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-07-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-37298 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-37298?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-37298?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-37298 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
gorilla schema< 1.4.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3669-72x9-r9p3Gogithub.com/gorilla/schema<1.4.11.4.1
GO-2024-2958Gogithub.com/gorilla/schema<1.4.11.4.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-github-gorilla-schemano fix listedDEBIAN-CVE-2024-37298
Debian13, 14golang-github-gorilla-schema1.4.1-1DEBIAN-CVE-2024-37298
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 moregolang-github-gorilla-schemano fix listedUBUNTU-CVE-2024-37298
Red Hatenterprise_linux:8::appstreamaardvark-dns2:1.10.0-1.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more2:1.33.8-4.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreamcockpit-podman0:84.1-1.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource3:2.1.10-1.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.229.0-2.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.4.0-5.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreamcontainers-common2:1-82.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreamcrit, criu, criu-libs and 5 more0:3.18-5.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreamcrun, crun-debuginfo, crun-debugsource0:1.14.3-2.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreamfuse-overlayfs, fuse-overlayfs-debuginfo, fuse-overlayfs-debugsource0:1.13-1.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreamlibslirp, libslirp-devel, libslirp-debuginfo and 1 more0:4.4.0-2.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreamnetavark2:1.10.3-1.module+el8.10.0+22202+761b9a65RHSA-2024:5258
43 more for Red Hat in the JSON and on Red Hat's page.
openSUSETumbleweedvelociraptor0.7.0.4.git142.862ef23-1.1openSUSE-SU-2025:14663-1
AlmaLinux8aardvark-dns2:1.10.0-1.module_el8.10.0+3792+03eaed9cALSA-2024:5258
AlmaLinux8aardvark-dns2:1.10.0-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux8aardvark-dns2:1.10.0-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux8buildah, buildah-tests2:1.33.8-4.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux8cockpit-podman84.1-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux8container-selinux2:2.229.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux8containers-common2:1-82.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux8crit, criu, criu-libs3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:5258
24 more for AlmaLinux in the JSON.
Rocky Linux8aardvark-dns2:1.10.0-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8buildah2:1.33.8-4.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8conmon3:2.1.10-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8container-selinux2:2.229.0-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8containernetworking-plugins1:1.4.0-5.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux8containers-common2:1-82.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux8criu0:3.18-5.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8crun0:1.14.3-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8fuse-overlayfs0:1.13-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8libslirp0:4.4.0-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8netavark2:1.10.3-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
8 more for Rocky Linux in the JSON.
Azure Linux2libcontainers-common20210626-4AZL-43071
Azure Linux2podmanno fix listedAZL-43474
Azure Linux2telegraf1.29.4-7AZL-43146
Azure Linux3libcontainers-common20240213-2AZL-43103
Azure Linux3podman5.6.1-2AZL-44949
Azure Linux3telegraf1.31.0-2AZL-43083

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability in the gorilla/schema package is a high-severity issue due to its potential to cause a Denial of Service (DoS) attack through memory exhaustion. The schema.Decoder.Decode() function, when processing a struct with fields of type []struct{...}, is susceptible to malicious input that exploits sparse slice functionality. This can result in excessive memory allocations, overwhelming the system's resources and rendering the application unresponsive.

The majority of RHEL utilities are not long-running applications; instead, they are command-line tools. These tools utilize Golang package as build-time dependency, which is why they are classified as having a "Moderate" level of impact.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-central-db-rhel8:4.4.5-2Fixed 2024-08-29RHSA-2024:6054
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-collector-rhel8:4.4.5-2Fixed 2024-08-29RHSA-2024:6054
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-collector-slim-rhel8:4.4.5-2Fixed 2024-08-29RHSA-2024:6054
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-main-rhel8:4.4.5-4Fixed 2024-08-29RHSA-2024:6054
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-operator-bundle:4.4.5-3Fixed 2024-08-29RHSA-2024:6054
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-rhel8-operator:4.4.5-2Fixed 2024-08-29RHSA-2024:6054
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-roxctl-rhel8:4.4.5-2Fixed 2024-08-29RHSA-2024:6054
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-scanner-db-rhel8:4.4.5-2Fixed 2024-08-29RHSA-2024:6054
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-scanner-db-slim-rhel8:4.4.5-3Fixed 2024-08-29RHSA-2024:6054
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-scanner-rhel8:4.4.5-2Fixed 2024-08-29RHSA-2024:6054
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-scanner-slim-rhel8:4.4.5-2Fixed 2024-08-29RHSA-2024:6054
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-scanner-v4-db-rhel8:4.4.5-3Fixed 2024-08-29RHSA-2024:6054
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-scanner-v4-rhel8:4.4.5-3Fixed 2024-08-29RHSA-2024:6054
Red Hat Enterprise Linux 8container-tools:rhel8-8100020240808093819.afee755dFixed 2024-08-13RHSA-2024:5258
Red Hat Enterprise Linux 8.8 Extended Update Supportcontainer-tools:rhel8-8080020240724065004.0f77c1b7Fixed 2024-08-12RHSA-2024:5194
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-central-db-rhel8Will not fix
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-main-rhel8Will not fix
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-rhel8-operatorWill not fix
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-roxctl-rhel8Will not fix
Red Hat Enterprise Linux 10podmanNot affected
8 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-37298.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON