CVE-2024-24786: Infinite loop in JSON unmarshaling in google.golang.org/protobuf
Last updated 18 September 2024
Other sources
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.
— Debian
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/golang-google-protobufto a version that resolves this vulnerability.Fixed in 1.33.0-1 - Upgrade
Upgrade
go/google.golang.org/protobuf/internal/encoding/jsonto a version that resolves this vulnerability.Fixed in 1.33.0 - Upgrade
Upgrade
go/google.golang.org/protobuf/encoding/protojsonto a version that resolves this vulnerability.Fixed in 1.33.0 - Upgrade
Upgrade
go/google.golang.org/protobufto a version that resolves this vulnerability.Fixed in 1.33.0 - Upgrade
Upgrade
F5 F5OSto a version that resolves this vulnerability.Fixed in 1.5.3 - Upgrade
Upgrade
redhat/google.golang.org/protobufto a version that resolves this vulnerability.Fixed in 1.33.0
Event History
Frequently Asked Questions
What is the severity of CVE-2024-24786?
CVE-2024-24786 is categorized as a denial of service vulnerability due to an infinite loop flaw in the rotojson.Unmarshal function.
How do I fix CVE-2024-24786?
To fix CVE-2024-24786, update the affected software packages to version 1.33.0 or later.
What software is affected by CVE-2024-24786?
CVE-2024-24786 affects the golang-google-protobuf package and certain versions of F5 and IBM products.
Can CVE-2024-24786 be exploited remotely?
Yes, CVE-2024-24786 can be exploited remotely by sending specially crafted requests that trigger the infinite loop.
What impact does CVE-2024-24786 have on systems?
The impact of CVE-2024-24786 is that it can cause a denial of service, potentially rendering the affected service unresponsive.