Bug 2268046 (CVE-2024-24786) - CVE-2024-24786 golang-protobuf: encoding/protojson, internal/encoding/json: infinite loop in protojson.Unmarshal when unmarshaling certain forms of invalid JSON
Summary: CVE-2024-24786 golang-protobuf: encoding/protojson, internal/encoding/json: i...
Keywords:
Status: NEW
Alias: CVE-2024-24786
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2268125 2268126 2268127 2268128 2268134 2268135 2268146 2268147 2268148 2268157 2268160 2268161 2268163 2268165 2268166 2268167 2275340 2275341 2268129 2268130 2268141 2268142 2268143 2268158 2268159 2268162 2268164
Blocks: 2268169
TreeView+ depends on / blocked
 
Reported: 2024-03-06 06:49 UTC by TEJ RATHI
Modified: 2024-05-01 02:44 UTC (History)
85 users (show)

Fixed In Version: google.golang.org/protobuf 1.33.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Golang's protobuf module, where the unmarshal function can enter an infinite loop when processing certain invalid inputs. This issue occurs during unmarshaling into a message that includes a google.protobuf.Any or when the UnmarshalOptions.DiscardUnknown option is enabled. This flaw allows an attacker to craft malicious input tailored to trigger the identified flaw in the unmarshal function. By providing carefully constructed invalid inputs, they could potentially cause the function to enter an infinite loop, resulting in a denial of service condition or other unintended behaviors in the affected system.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:1661 0 None None None 2024-04-03 10:23:33 UTC
Red Hat Product Errata RHBA-2024:1793 0 None None None 2024-04-11 21:05:36 UTC
Red Hat Product Errata RHSA-2024:1362 0 None None None 2024-03-20 11:40:40 UTC
Red Hat Product Errata RHSA-2024:1363 0 None None None 2024-03-19 22:12:08 UTC
Red Hat Product Errata RHSA-2024:1456 0 None None None 2024-03-27 00:41:41 UTC
Red Hat Product Errata RHSA-2024:1461 0 None None None 2024-03-27 00:41:56 UTC
Red Hat Product Errata RHSA-2024:1474 0 None None None 2024-03-27 15:01:08 UTC
Red Hat Product Errata RHSA-2024:1507 0 None None None 2024-03-27 14:21:37 UTC
Red Hat Product Errata RHSA-2024:1508 0 None None None 2024-03-27 14:39:50 UTC
Red Hat Product Errata RHSA-2024:1537 0 None None None 2024-03-27 15:03:48 UTC
Red Hat Product Errata RHSA-2024:1538 0 None None None 2024-03-27 15:07:38 UTC
Red Hat Product Errata RHSA-2024:1559 0 None None None 2024-04-02 19:33:40 UTC
Red Hat Product Errata RHSA-2024:1563 0 None None None 2024-04-02 21:38:07 UTC
Red Hat Product Errata RHSA-2024:1574 0 None None None 2024-04-03 07:36:37 UTC
Red Hat Product Errata RHSA-2024:1665 0 None None None 2024-04-03 18:44:21 UTC
Red Hat Product Errata RHSA-2024:1795 0 None None None 2024-04-11 21:31:04 UTC
Red Hat Product Errata RHSA-2024:1859 0 None None None 2024-04-16 17:27:11 UTC
Red Hat Product Errata RHSA-2024:1874 0 None None None 2024-04-18 01:55:35 UTC
Red Hat Product Errata RHSA-2024:1925 0 None None None 2024-04-18 12:41:25 UTC
Red Hat Product Errata RHSA-2024:2549 0 None None None 2024-04-30 14:37:31 UTC
Red Hat Product Errata RHSA-2024:2639 0 None None None 2024-05-01 02:44:57 UTC

Description TEJ RATHI 2024-03-06 06:49:40 UTC
The protojson.Unmarshal function can enter an infinite loop when unmarshaling certain forms of invalid JSON. This condition can occur when unmarshaling into a message which contains a google.protobuf.Any value, or when the UnmarshalOptions.DiscardUnknown option is set.

https://go.dev/cl/569356
https://pkg.go.dev/vuln/GO-2024-2611

Comment 19 TEJ RATHI 2024-03-13 03:51:44 UTC
Update:

A small correction: This vulnerability applies when the UnmarshalOptions.DiscardUnknown option is set (as well as when unmarshaling into any message which contains a google.protobuf.Any). There is no UnmarshalUnknown option.

In addition, version 1.33.0 of google.golang.org/protobuf inadvertently introduced an incompatibility with the older github.com/golang/protobuf module. (https://github.com/golang/protobuf/issues/1596) Users of the older module should update to github.com/golang/prot....4.

- Damien, apologetically on behalf of the Go team. 

comment 0 and doctext updated for the same.

Comment 22 errata-xmlrpc 2024-03-19 22:12:02 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.15

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

Comment 23 errata-xmlrpc 2024-03-20 11:40:34 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.14

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

Comment 25 errata-xmlrpc 2024-03-27 00:41:35 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13

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

Comment 26 errata-xmlrpc 2024-03-27 00:41:50 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.14

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

Comment 30 errata-xmlrpc 2024-03-27 14:21:31 UTC
This issue has been addressed in the following products:

  RHOL-5.6-RHEL-8

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

Comment 31 errata-xmlrpc 2024-03-27 14:39:45 UTC
This issue has been addressed in the following products:

  RHOL-5.7-RHEL-8

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

Comment 32 errata-xmlrpc 2024-03-27 15:01:02 UTC
This issue has been addressed in the following products:

  RHOL-5.8-RHEL-9

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

Comment 33 errata-xmlrpc 2024-03-27 15:03:44 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13

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

Comment 34 errata-xmlrpc 2024-03-27 15:07:32 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.12

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

Comment 35 errata-xmlrpc 2024-04-02 19:33:34 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.15

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

Comment 36 errata-xmlrpc 2024-04-02 21:38:03 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.15

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

Comment 37 errata-xmlrpc 2024-04-03 07:36:31 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.12

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

Comment 39 errata-xmlrpc 2024-04-03 18:44:15 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Management for Kubernetes 2.8 for RHEL 8

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

Comment 41 errata-xmlrpc 2024-04-11 21:30:59 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Management for Kubernetes 2.10 for RHEL 9

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

Comment 42 errata-xmlrpc 2024-04-16 17:27:07 UTC
This issue has been addressed in the following products:

  OADP-1.3-RHEL-9

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

Comment 44 errata-xmlrpc 2024-04-18 01:55:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 45 errata-xmlrpc 2024-04-18 12:41:20 UTC
This issue has been addressed in the following products:

  Red Hat Migration Toolkit for Containers 1.8

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

Comment 46 errata-xmlrpc 2024-04-30 14:37:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 47 errata-xmlrpc 2024-05-01 02:44:52 UTC
This issue has been addressed in the following products:

  Red Hat Migration Toolkit for Containers 1.7

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


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