Bug 2295010 (CVE-2024-37298) - CVE-2024-37298 gorilla/schema: Potential memory exhaustion attack due to sparse slice deserialization [NEEDINFO]
Summary: CVE-2024-37298 gorilla/schema: Potential memory exhaustion attack due to spar...
Keywords:
Status: NEW
Alias: CVE-2024-37298
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2295193 2295194
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-01 19:21 UTC by OSIDB Bzimport
Modified: 2024-09-03 19:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the gorilla/schema package. 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 trigger memory exhaustion and lead to a denial of service.
Clone Of:
Environment:
Last Closed:
Embargoed:
tsweeney: needinfo? (rgatica)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:5335 0 None None None 2024-08-13 17:32:58 UTC
Red Hat Product Errata RHSA-2024:4702 0 None None None 2024-07-25 14:28:22 UTC
Red Hat Product Errata RHSA-2024:4825 0 None None None 2024-07-24 12:56:03 UTC
Red Hat Product Errata RHSA-2024:4848 0 None None None 2024-07-31 14:45:58 UTC
Red Hat Product Errata RHSA-2024:4858 0 None None None 2024-07-31 13:17:26 UTC
Red Hat Product Errata RHSA-2024:4963 0 None None None 2024-08-07 13:31:50 UTC
Red Hat Product Errata RHSA-2024:5194 0 None None None 2024-08-12 01:26:30 UTC
Red Hat Product Errata RHSA-2024:5202 0 None None None 2024-08-19 05:12:22 UTC
Red Hat Product Errata RHSA-2024:5258 0 None None None 2024-08-13 00:38:50 UTC
Red Hat Product Errata RHSA-2024:5634 0 None None None 2024-08-20 16:07:40 UTC
Red Hat Product Errata RHSA-2024:6054 0 None None None 2024-08-29 18:30:54 UTC
Red Hat Product Errata RHSA-2024:6194 0 None None None 2024-09-03 19:54:58 UTC

Description OSIDB Bzimport 2024-07-01 19:21:17 UTC
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.

Comment 7 errata-xmlrpc 2024-07-24 12:56:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2024:4825 https://access.redhat.com/errata/RHSA-2024:4825

Comment 8 errata-xmlrpc 2024-07-25 14:28:21 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.15

Via RHSA-2024:4702 https://access.redhat.com/errata/RHSA-2024:4702

Comment 9 errata-xmlrpc 2024-07-31 13:17:25 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.16

Via RHSA-2024:4858 https://access.redhat.com/errata/RHSA-2024:4858

Comment 10 errata-xmlrpc 2024-07-31 14:45:57 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13

Via RHSA-2024:4848 https://access.redhat.com/errata/RHSA-2024:4848

Comment 11 errata-xmlrpc 2024-08-07 13:31:50 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.14

Via RHSA-2024:4963 https://access.redhat.com/errata/RHSA-2024:4963

Comment 12 errata-xmlrpc 2024-08-12 01:26:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2024:5194 https://access.redhat.com/errata/RHSA-2024:5194

Comment 14 errata-xmlrpc 2024-08-13 00:38:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:5258 https://access.redhat.com/errata/RHSA-2024:5258

Comment 15 errata-xmlrpc 2024-08-19 05:12:22 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.12

Via RHSA-2024:5202 https://access.redhat.com/errata/RHSA-2024:5202

Comment 16 errata-xmlrpc 2024-08-20 16:07:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:5634 https://access.redhat.com/errata/RHSA-2024:5634

Comment 17 errata-xmlrpc 2024-08-29 18:30:53 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Security 4.4

Via RHSA-2024:6054 https://access.redhat.com/errata/RHSA-2024:6054

Comment 18 errata-xmlrpc 2024-09-03 19:54:57 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:6194 https://access.redhat.com/errata/RHSA-2024:6194


Note You need to log in before you can comment on or make changes to this bug.