HIGH 7.5 Go

Golang protojson.Unmarshal function infinite loop when unmarshaling certain forms of invalid JSON

GHSA-8r3f-844c-mc37 · CVE-2024-24786 · GO-2024-2611

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes