High severity7.5OSV Advisory· Published Jul 1, 2024· Updated Apr 15, 2026
CVE-2024-37298
CVE-2024-37298
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/gorilla/schemaGo | < 1.4.1 | 1.4.1 |
Affected products
42- osv-coords41 versionspkg:apk/chainguard/harbor-scanner-trivypkg:apk/chainguard/harbor-scanner-trivy-fipspkg:apk/chainguard/zotpkg:apk/wolfi/harbor-scanner-trivypkg:apk/wolfi/zotpkg:golang/github.com/gorilla/schemapkg:rpm/almalinux/aardvark-dnspkg:rpm/almalinux/buildahpkg:rpm/almalinux/buildah-testspkg:rpm/almalinux/cockpit-podmanpkg:rpm/almalinux/conmonpkg:rpm/almalinux/containernetworking-pluginspkg:rpm/almalinux/containers-commonpkg:rpm/almalinux/container-selinuxpkg:rpm/almalinux/critpkg:rpm/almalinux/criupkg:rpm/almalinux/criu-develpkg:rpm/almalinux/criu-libspkg:rpm/almalinux/crunpkg:rpm/almalinux/fuse-overlayfspkg:rpm/almalinux/libslirppkg:rpm/almalinux/libslirp-develpkg:rpm/almalinux/netavarkpkg:rpm/almalinux/oci-seccomp-bpf-hookpkg:rpm/almalinux/podmanpkg:rpm/almalinux/podman-catatonitpkg:rpm/almalinux/podman-dockerpkg:rpm/almalinux/podman-gvproxypkg:rpm/almalinux/podman-pluginspkg:rpm/almalinux/podman-remotepkg:rpm/almalinux/podman-testspkg:rpm/almalinux/python3-criupkg:rpm/almalinux/python3-podmanpkg:rpm/almalinux/runcpkg:rpm/almalinux/skopeopkg:rpm/almalinux/skopeo-testspkg:rpm/almalinux/slirp4netnspkg:rpm/almalinux/toolboxpkg:rpm/almalinux/toolbox-testspkg:rpm/almalinux/udicapkg:rpm/opensuse/velociraptor&distro=openSUSE%20Tumbleweed
< 0.31.3-r1+ 40 more
- (no CPE)range: < 0.31.3-r1
- (no CPE)range: < 0.31.3-r1
- (no CPE)range: < 2.0.4-r9
- (no CPE)range: < 0.31.3-r1
- (no CPE)range: < 2.0.4-r9
- (no CPE)range: < 1.4.1
- (no CPE)range: < 2:1.10.0-1.module_el8.10.0+3792+03eaed9c
- (no CPE)range: < 2:1.33.8-4.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 2:1.33.8-4.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 84.1-1.module_el8.10.0+3858+6ad51f9f
- (no CPE)range: < 3:2.1.10-1.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 1:1.4.0-5.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 2:1-82.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 2:2.229.0-2.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 3.18-5.module_el8.10.0+3845+87b84552
- (no CPE)range: < 3.18-5.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 3.18-5.module_el8.10.0+3858+6ad51f9f
- (no CPE)range: < 3.18-5.module_el8.10.0+3845+87b84552
- (no CPE)range: < 1.14.3-2.module_el8.10.0+3858+6ad51f9f
- (no CPE)range: < 1.13-1.module_el8.10.0+3859+6ae70a0e
- (no CPE)range: < 4.4.0-2.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4.4.0-2.module_el8.10.0+3858+6ad51f9f
- (no CPE)range: < 2:1.10.3-1.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 1.2.10-1.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4:4.9.4-12.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4:4.9.4-12.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4:4.9.4-12.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4:4.9.4-12.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4:4.9.4-12.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4:4.9.4-12.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4:4.9.4-12.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 3.18-5.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4.9.0-2.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 1:1.1.12-4.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 2:1.14.5-3.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 2:1.14.5-3.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 1.2.3-1.module_el8.10.0+3845+87b84552
- (no CPE)range: < 0.0.99.5-2.module_el8.10.0+3845+87b84552
- (no CPE)range: < 0.0.99.5-2.module_el8.10.0+3858+6ad51f9f
- (no CPE)range: < 0.2.6-21.module_el8.10.0+3858+6ad51f9f
- (no CPE)range: < 0.7.0.4.git142.862ef23-1.1
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-3669-72x9-r9p3ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-37298ghsaADVISORY
- github.com/gorilla/schema/blob/main/decoder.gonvdWEB
- github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ffnvdWEB
- github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3nvdWEB
News mentions
0No linked articles in our index yet.