CVE-2024-7254

Stack overflow in Protocol Buffers Java Lite

At a glance

Severity
HIGH 8.7
EPSS
EPSS 2.77 % · percentile 86 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
Google
NVD status
Analyzed

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.

Scores

VersionScoreVectorScored by
CVSS 4.0HIGH 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NGoogle
CVSS 4.0HIGH 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNVD · cve-coordination@google.com (Secondary)
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Weaknesses (CWE)

Advisories

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Google · Protocol Buffersaffected 0 < 28.2
Google · protobuf-javaaffected 0 < 3.25.5 ; affected 0 < 4.27.5 ; affected 0 < 4.28.2
Google · protobuf-javaliteaffected 0 < 3.25.5 ; affected 0 < 4.27.5 ; affected 0 < 4.28.2
Google · protobuf-kotlinaffected 0 < 3.25.5 ; affected 0 < 4.27.5 ; affected 0 < 4.28.2
Google · protobuf-kotllin-liteaffected 0 < 3.25.5 ; affected 0 < 4.27.5 ; affected 0 < 4.28.2
Google · google-protobuf [JRuby Gem]affected 0 < 3.25.5 ; affected 0 < 4.27.5 ; affected 0 < 4.28.2

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD