CVE-2024-7254

published 19 Sep 2024 · updated 12 Aug 2026

Stack overflow in Protocol Buffers Java Lite

8.7HighCVSS 8.7EPSS 3%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 3%. Fixed in Protobuf 4.28.2, Protobuf 4.27.5, Protobuf 3.25.5 and 10 more.

Any project that parses untrusted Protocol Buffers data containing an arbitrary number of nested groups / series of SGROUP tags can corrupted by exceeding the stack limit i.e. StackOverflow. Parsing nested groups as unknown fields with DiscardUnknownFieldsParser or Java Protobuf Lite parser, or against Protobuf map fields, creates unbounded recursions that can be abused by an attacker.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GoogleProtobuf<4.28.2, <4.27.5, <3.25.54.28.2, 4.27.5, 3.25.5
GoogleProtocol Buffers<28.228.2
Googlegoogle-protobuf [JRuby Gem]<3.25.5, <4.27.5, <4.28.23.25.5, 4.27.5, 4.28.2
Googleprotobuf-java<4.28.2, <4.27.5, <3.25.54.28.2, 4.27.5, 3.25.5
Googleprotobuf-kotlin<4.27.5, <4.28.2, <3.25.54.27.5, 4.28.2, 3.25.5

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Google, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-7254 severity on Zeptric[![CVE-2024-7254](https://zeptric.io/badge/cve/CVE-2024-7254.svg)](https://zeptric.io/cve/CVE-2024-7254)