8.7high
Stack overflow in Protocol Buffers Java Lite
- Severity
- 8.7high CVSS:4.0 by Google
- Exploit likelihood
- 2.77% (higher than 86% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Also known as
- GHSA-735f-pc8j-v9w8
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
| Product or package | Versions | Reported by |
|---|---|---|
| Google Protocol Buffers | before 28.2 | CVE List |
| Google protobuf-java | before 3.25.5, before 4.27.5, before 4.28.2, from 4.0.0 before 4.27.5, from 4.28.0 before 4.28.2 | CVE List, NVD |
| Google protobuf-javalite | before 3.25.5, before 4.27.5, before 4.28.2, from 4.0.0 before 4.27.5, from 4.28.0 before 4.28.2 | CVE List, NVD |
| Google protobuf-kotlin | before 3.25.5, before 4.27.5, before 4.28.2, from 4.0.0 before 4.27.5, from 4.28.0 before 4.28.2 | CVE List, NVD |
| Google protobuf-kotllin-lite | before 3.25.5, before 4.27.5, before 4.28.2 | CVE List |
| Google google-protobuf [JRuby Gem] | before 3.25.5, before 4.27.5, before 4.28.2 | CVE List |
| google protobuf | before 28.2, before 3.25.5, from 4.0.0 before 4.27.5, from 4.28.0 before 4.28.2 | CVE List, NVD |
| google protobuf-kotlin-lite | before 3.25.5, from 4.27 before 4.27.5, from 4.28 before 4.28.2, from 4.0.0 before 4.27.5, from 4.28.0 up to 4.28.2 | CVE List, NVD |
| com.google.protobuf:protobuf-java (Maven) | before 3.25.5, from 4.0.0-RC1 before 4.27.5, from 4.28.0-RC1 before 4.28.2 | GitHub Advisory Database |
| com.google.protobuf:protobuf-javalite (Maven) | before 3.25.5, from 4.0.0-RC1 before 4.27.5, from 4.28.0-RC1 before 4.28.2 | GitHub Advisory Database |
| com.google.protobuf:protobuf-kotlin (Maven) | before 3.25.5, from 4.0.0-RC1 before 4.27.5, from 4.28.0-RC1 before 4.28.2 | GitHub Advisory Database |
| com.google.protobuf:protobuf-kotlin-lite (Maven) | before 3.25.5, from 4.0.0-RC1 before 4.27.5, from 4.28.0-RC1 before 4.28.2 | GitHub Advisory Database |
| google-protobuf (RubyGems) | before 3.25.5, from 4.0.0.rc.1 before 4.27.5, from 4.28.0.rc.1 before 4.28.2 | GitHub Advisory Database |
| netapp active_iq_unified_manager | Not specified | NVD |
| netapp bluexp | Not specified | NVD |
| netapp ontap_tools | 10 | NVD |
All scores
| 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Summary
When parsing unknown fields in the Protobuf Java Lite and Full library, a maliciously crafted message can cause a StackOverflow error and lead to a program crash.
Reporter: Alexis Challande, Trail of Bits Ecosystem Security Team ecosystem@trailofbits.com
Affected versions: This issue affects all versions of both the Java full and lite Protobuf runtimes, as well as Protobuf for Kotlin and JRuby, which themselves use the Java Protobuf runtime.
Severity
CVE-2024-7254 High CVSS4.0 Score 8.7 (NOTE: there may be a delay in publication) This is a potential Denial of Service. 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.
Proof of Concept
For reproduction details, please refer to the unit tests (Protobuf Java LiteTest and CodedInputStreamTest) that identify the specific inputs that exercise this parsing weakness.
Remediation and Mitigation
We have been working diligently to address this issue and have released a mitigation that is available now. Please update to the latest available versions of the following packages:
- protobuf-java (3.25.5, 4.27.5, 4.28.2)
- protobuf-javalite (3.25.5, 4.27.5, 4.28.2)
- protobuf-kotlin (3.25.5, 4.27.5, 4.28.2)
- protobuf-kotlin-lite (3.25.5, 4.27.5, 4.28.2)
- com-protobuf [JRuby gem only] (3.25.5, 4.27.5, 4.28.2)
NVD (es)
Cualquier proyecto que analice datos de Protocol Buffers no confiables que contengan una cantidad arbitraria de grupos anidados o series de etiquetas SGROUP puede corromperse si se excede el límite de la pila, es decir, StackOverflow. Analizar grupos anidados como campos desconocidos con DiscardUnknownFieldsParser o el analizador Java Protobuf Lite, o contra campos de mapa Protobuf, crea recursiones ilimitadas que pueden ser utilizadas de forma abusiva por un atacante.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-7254 changed 2025-09-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-735f-pc8j-v9w8 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-7254 changed 2026-06-17 | Public domain |