Security mailing lists by PureSourceCode

CVE-2024-37298

HIGH 7.5CVSS 3.1

Potential memory exhaustion attack due to sparse slice deserialization

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.

Published
1 Jul 2024
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-770
Also known as
GHSA-3669-72x9-r9p3GO-2024-2958
Sources
NVDJSONOSV GHSA-3669-72x9-r9p3JSONOSV GO-2024-2958JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/gorilla/schema < 1.4.1 1.4.1

References

History

  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 1 Jul 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 2 Jul 2024)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Jul 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.