7.5

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

Deferred
AliasesRHSA-2024:4702RHSA-2024:4825RHSA-2024:4848
Published 01-07-2024Last modified 02-08-2024

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.

Overall risk
30/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
1.10%
0%100%
Low · -0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 8 · Related 5

Timeline

  1. 01-07-2024
    PublishedVulnerability first disclosed.
  2. 02-08-2024
    Last 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

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

22-09-202622-10-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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
Ubuntu1 product
  • golang-github-gorilla-schemaAll versions (No fix recorded)

7 vendors · 22 products

References

19 links
Show all 19 references