CVE-2024-37298

See a problem?
Source
https://nvd.nist.gov/vuln/detail/CVE-2024-37298
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-37298.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-37298
Aliases
Related
Published
2024-07-01T19:15:04Z
Modified
2024-09-11T04:59:15.580938Z
Summary
[none]
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.

References

Affected packages

Debian:12 / golang-github-gorilla-schema

Package

Name
golang-github-gorilla-schema
Purl
pkg:deb/debian/golang-github-gorilla-schema?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.2.0-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / golang-github-gorilla-schema

Package

Name
golang-github-gorilla-schema
Purl
pkg:deb/debian/golang-github-gorilla-schema?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.2.0-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/gorilla/schema

Affected ranges

Type
GIT
Repo
https://github.com/gorilla/schema
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v1.*

v1.0.1
v1.0.2
v1.1.0
v1.2.0
v1.2.1
v1.3.0
v1.4.0