tabacws-sandbox / mattermost-golang

https://github.com/mattermost/mattermost-server
Other
0 stars 0 forks source link

github.com/gorilla/schema-v1.2.0: 1 vulnerabilities (highest severity is: 7.5) #300

Open mend-for-github-com[bot] opened 3 months ago

mend-for-github-com[bot] commented 3 months ago
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

CVE Severity CVSS Dependency Type Fixed in (github.com/gorilla/schema-v1.2.0 version) Remediation Possible**
CVE-2024-37298 High 7.5 github.com/gorilla/schema-v1.2.0 Direct github.com/gorilla/schema-v1.4.1

**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.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

Dependency Hierarchy: - :x: **github.com/gorilla/schema-v1.2.0** (Vulnerable Library)

Found in base branch: master

### Vulnerability 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.

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 Fix

Type: 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.