Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gorilla/schema
  4. ›
  5. CVE-2024-37298

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

July 1, 2024

Any use of schema.Decoder.Decode() on a struct with arrays of other structs could be vulnerable to this memory exhaustion vulnerability. There seems to be no possible solution that a developer using this library can do to disable this behaviour without fixing it in this project, so all uses of Decode that fall under this umbrella are affected. A fix that doesn’t require a major change may also be harder to find, since it could break compatibility with some other intended use-cases.

References

  • github.com/advisories/GHSA-3669-72x9-r9p3
  • github.com/gorilla/schema
  • github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff
  • github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3
  • nvd.nist.gov/vuln/detail/CVE-2024-37298

Code Behaviors & Features

Detect and mitigate CVE-2024-37298 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.4.1

Fixed versions

  • 1.4.1

Solution

Upgrade to version 1.4.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

go/github.com/gorilla/schema/CVE-2024-37298.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:55 +0000.