CVE-2024-37298
Podman vulnerability analysis and mitigation

Overview

CVE-2024-37298 affects the gorilla/schema package, which converts structs to and from form values. Prior to version 1.4.1, the vulnerability was discovered in the schema.Decoder.Decode() functionality when handling structs with fields of type []struct{...}. The vulnerability was disclosed on June 29, 2024, and affects all versions prior to 1.4.1 (GitHub Advisory).

Technical details

The vulnerability exists in the schema.Decoder.Decode() function when processing structs containing array fields of other structs. The issue stems from the sparse slice functionality, where an attacker can specify a large index value, causing the system to allocate memory for all preceding elements. For example, a request like '/innocent_endpoint?arr.10000000.X=1' could trigger excessive memory allocation during form parsing. The vulnerability has been assigned a CVSS v3.1 score of 7.5 (High) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (GitHub Advisory).

Impact

The vulnerability can lead to memory exhaustion attacks when processing specially crafted requests. Any application using schema.Decoder.Decode() on structs with arrays of other structs is potentially vulnerable. The impact is particularly severe as there was no workaround available for developers using the library without fixing the core issue (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 1.4.1 of the gorilla/schema package. The fix implements a maxSize limit on slice creation to prevent excessive memory allocation. Users should upgrade to version 1.4.1 or later to address this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Podman vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66506HIGH7.5
  • PodmanPodman
  • golang-github-sigstore-fulcio
NoYesDec 04, 2025
CVE-2025-61729HIGH7.5
  • cAdvisorcAdvisor
  • nrdot-collector-k8s
NoYesDec 02, 2025
CVE-2025-47913HIGH7.5
  • PackerPacker
  • podmansh
NoYesNov 13, 2025
CVE-2025-58181MEDIUM5.3
  • cAdvisorcAdvisor
  • secrets-store-csi-driver-fips
NoYesNov 19, 2025
CVE-2025-47914MEDIUM5.3
  • cAdvisorcAdvisor
  • kube-state-metrics-fips
NoYesNov 19, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management