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.
Vulnerable Library - github.com/gorilla/schema-v1.2.0
Package gorilla/schema fills a struct with form values.
Library home page: https://proxy.golang.org/github.com/gorilla/schema/@v/v1.2.0.zip
Path to dependency file: /go.mod
Path to vulnerable library: /go.mod
Vulnerabilities
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2024-37298
### Vulnerable Library - github.com/gorilla/schema-v1.2.0Package gorilla/schema fills a struct with form values.
Library home page: https://proxy.golang.org/github.com/gorilla/schema/@v/v1.2.0.zip
Path to dependency file: /go.mod
Path to vulnerable library: /go.mod
Dependency Hierarchy: - :x: **github.com/gorilla/schema-v1.2.0** (Vulnerable Library)
Found in base branch: master
### Vulnerability Detailsgorilla/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.
Publish Date: 2024-07-01
URL: CVE-2024-37298
### CVSS 3 Score Details (7.5)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3
Release Date: 2024-07-01
Fix Resolution: github.com/gorilla/schema-v1.4.1
:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.