What’s Vulnerable › Vulnerabilities

CVE-2024-7254: Stack overflow in Protocol Buffers Java Lite

Description

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 products

How to fix

Upgrade to a fixed version: Python Protobuf 3.25.5, 4.27.5, 4.28.2; Google protobuf-java 3.25.5, 4.27.5, 4.28.2; Google protobuf-javalite 3.25.5, 4.27.5, 4.28.2; Google protobuf-kotlin 3.25.5, 4.27.5, 4.28.2; Google Protobuf-Kotlin-Lite 3.25.5, 4.27.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-7254 or the next vulnerability affects your stack