FlawAtlas
Search the atlas
CVE-2024-24786 Moderate

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

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.

Exploit probability 1.3%
Published March 5, 2024
Required by Not available
Last source change April 4, 2026

02 / AFFECTED SOFTWARE

Affected packages

Go google.golang.org/protobuf
Go google.golang.org/protobuf
Go google.golang.org/protobuf/encoding/protojson
Go google.golang.org/protobuf/internal/encoding/json

03 / CONNECTIONS

Connected vulnerabilities

04 / EVIDENCE

Source records

Open Source Vulnerabilities CVE-2024-24786

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.

View original source
Open Source Vulnerabilities GO-2024-2611

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.

View original source
Open Source Vulnerabilities GHSA-8r3f-844c-mc37

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.

View original source

05 / REFERENCES

Further evidence