CVE-2024-24786

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

State
Published
Severity
7.5 High
Published
Mar 5, 2024
Updated
Sep 23, 2026
Reserved
Jan 30, 2024

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
google.golang.org/protobuf/encoding/protojsongoogle.golang.org/protobuf
  • before 1.33.0Affected
google.golang.org/protobuf/internal/encoding/jsongoogle.golang.org/protobuf
  • before 1.33.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.