Infinite loop in JSON unmarshaling in google.golang.org/protobuf

Summary

CVECVE-2024-24786
StatePUBLISHED
AssignerGo
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-03-05 23:15:07 UTC
Updated2026-09-23 14:17:06 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v3.1 7.5 HIGH from ADP

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS: 0.012620000 probability, percentile 0.683790000 (date 2026-09-23)

Problem Types: CWE-1286: Improper Validation of Syntactic Correctness of Input


VersionSourceTypeScoreSeverityVector
3.1ADPDECLARED7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Google.golang.orgprotobuf Google.golang.org/protobuf/encoding/protojson affected 1.33.0 semver Not specified
CNA Google.golang.orgprotobuf Google.golang.org/protobuf/internal/encoding/json affected 1.33.0 semver Not specified

References

ReferenceSourceLinkTags
go.dev/cl/569356 af854a3a-2127-422b-91ae-364da2661108 go.dev
www.openwall.com/lists/oss-security/2024/03/08/4 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
pkg.go.dev/vuln/GO-2024-2611 af854a3a-2127-422b-91ae-364da2661108 pkg.go.dev
security.netapp.com/advisory/ntap-20240517-0002 af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
lists.fedoraproject.org/archives/list/[email protected]/messag... af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 243139 Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2024:1456)
  • 243141 Red Hat OpenShift Container Platform 4.14 Security Update (RHSA-2024:1461)
  • 243158 Red Hat OpenShift Container Platform 4.15 Security Update (RHSA-2024:1563)
  • 243169 Red Hat OpenShift Container Platform 4.12 Security Update (RHSA-2024:1574)
  • 285390 Fedora Security Update for kubernetes (FEDORA-2024-5bae6c0ea7)
  • 770237 Red Hat OpenShift Container Platform 4.14 Security Update (RHSA-2024:1461)
  • 770238 Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2024:1456)
  • 770239 Red Hat OpenShift Container Platform 4.15 Security Update (RHSA-2024:1563)
  • 770240 Red Hat OpenShift Container Platform 4.12 Security Update (RHSA-2024:1574)
  • 997706 GO (Go) Security Update for google.golang.org/protobuf (GHSA-8r3f-844c-mc37)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report