Advisory

GO-2024-2611

Also known as: CVE-2024-24786, GHSA-8r3f-844c-mc37

Summary

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

Details

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.

Severity

Not rated by the source.

Dates

Published
2024-03-05 20:24 UTC
Modified
2026-11-14 13:12 UTC

Affected packages and fixes

google.golang.org/protobuf

Go · All systems

Affected

  • introduced 0, fixed 1.33.0 (semver)

Fixed versions

1.33.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences