{"id":"UBUNTU-CVE-2024-37298","details":"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.","modified":"2026-05-20T16:08:48.396612491Z","published":"2024-07-01T19:15:00Z","upstream":["CVE-2024-37298"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-37298"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-37298"},{"type":"REPORT","url":"https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3"},{"type":"REPORT","url":"https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff"},{"type":"REPORT","url":"https://github.com/gorilla/schema/blob/main/decoder.go#L223"}],"affected":[{"package":{"name":"golang-github-gorilla-schema","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/golang-github-gorilla-schema?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.0-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.2.0-2","binary_name":"golang-github-gorilla-schema-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-37298.json"}},{"package":{"name":"golang-github-gorilla-schema","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/golang-github-gorilla-schema?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.0-2","1.4.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-gorilla-schema-dev","binary_version":"1.4.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-37298.json"}},{"package":{"name":"golang-github-gorilla-schema","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/golang-github-gorilla-schema?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.4.1-1","binary_name":"golang-github-gorilla-schema-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-37298.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}