Skip to main content
← All vulnerabilities
CVE-2024-37298GO-2024-2958GHSA-3669-72X9-R9P3

Potential memory exhaustion attack due to sparse slice deserialization

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.4.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • gorilla schema

    fixed in 1.4.1

  • github.com/gorilla/schemaGo

    fixed in 1.4.1

References 3

GitHub · gorilla/schema