cve.bz

CVE-2024-7254 Out-of-bounds Write

8.7 highEPSS 2.8%Fix available

High (8.7). EPSS 2.8% estimated probability of exploitation activity in the next 30 days. Fixed in com.google.protobuf:protobuf-java 3.25.5, 4.27.5, 4.28.2.

On this page
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.

Severity

CVSS 4.0

8.7 high
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.8% (unchanged from 2.8% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-09-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-400 Uncontrolled Resource Consumption
CWE-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-7254 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-7254?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-7254?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-7254 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Google Protocol Buffersbefore 28.2
Google protobuf-javabefore 3.25.5
Google protobuf-javabefore 4.27.5
Google protobuf-javabefore 4.28.2
Google protobuf-javalitebefore 3.25.5
Google protobuf-javalitebefore 4.27.5
Google protobuf-javalitebefore 4.28.2
Google protobuf-kotlinbefore 3.25.5
Google protobuf-kotlinbefore 4.27.5
Google protobuf-kotlinbefore 4.28.2
Google protobuf-kotllin-litebefore 3.25.5
Google protobuf-kotllin-litebefore 4.27.5
Google protobuf-kotllin-litebefore 4.28.2
google-protobuf [JRuby Gem]before 3.25.5
google-protobuf [JRuby Gem]before 4.27.5
google-protobuf [JRuby Gem]before 4.28.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-735f-pc8j-v9w8Mavencom.google.protobuf:protobuf-java<3.25.53.25.5
GHSA-735f-pc8j-v9w8Mavencom.google.protobuf:protobuf-javalite<3.25.53.25.5
GHSA-735f-pc8j-v9w8Mavencom.google.protobuf:protobuf-kotlin<3.25.53.25.5
GHSA-735f-pc8j-v9w8Mavencom.google.protobuf:protobuf-kotlin-lite<3.25.53.25.5
GHSA-735f-pc8j-v9w8RubyGemsgoogle-protobuf<3.25.53.25.5
GHSA-735f-pc8j-v9w8RubyGemsgoogle-protobuf>=4.0.0.rc.1 <4.27.54.27.5
GHSA-735f-pc8j-v9w8RubyGemsgoogle-protobuf>=4.28.0.rc.1 <4.28.24.28.2
GHSA-735f-pc8j-v9w8Mavencom.google.protobuf:protobuf-kotlin-lite>=4.0.0-RC1 <4.27.54.27.5
GHSA-735f-pc8j-v9w8Mavencom.google.protobuf:protobuf-kotlin-lite>=4.28.0-RC1 <4.28.24.28.2
GHSA-735f-pc8j-v9w8Mavencom.google.protobuf:protobuf-kotlin>=4.0.0-RC1 <4.27.54.27.5
GHSA-735f-pc8j-v9w8Mavencom.google.protobuf:protobuf-kotlin>=4.28.0-RC1 <4.28.24.28.2
GHSA-735f-pc8j-v9w8Mavencom.google.protobuf:protobuf-javalite>=4.0.0-RC1 <4.27.54.27.5
GHSA-735f-pc8j-v9w8Mavencom.google.protobuf:protobuf-javalite>=4.28.0-RC1 <4.28.24.28.2
GHSA-735f-pc8j-v9w8Mavencom.google.protobuf:protobuf-java>=4.0.0-RC1 <4.27.54.27.5
GHSA-735f-pc8j-v9w8Mavencom.google.protobuf:protobuf-java>=4.28.0-RC1 <4.28.24.28.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12protobuf3.21.12-3+deb12u1DEBIAN-CVE-2024-7254
Debian13protobuf3.21.12-11+deb13u1DEBIAN-CVE-2024-7254
Debian14protobuf3.21.12-12DEBIAN-CVE-2024-7254
Ubuntu22.04:LTSprotobuf3.12.4-1ubuntu7.22.04.2UBUNTU-CVE-2024-7254 USN-7435-1 USN-7629-1
Ubuntu24.04:LTSprotobuf3.21.12-8.2ubuntu0.1UBUNTU-CVE-2024-7254 USN-7435-1 USN-7629-1
UbuntuPro:14.04:LTSprotobufno fix listedUBUNTU-CVE-2024-7254
UbuntuPro:16.04:LTSprotobuf2.6.1-1.3ubuntu0.1~esm4UBUNTU-CVE-2024-7254 USN-7629-2
UbuntuPro:18.04:LTSprotobuf3.0.0-9.1ubuntu1.1+esm3UBUNTU-CVE-2024-7254 USN-7629-2
UbuntuPro:20.04:LTSprotobuf3.6.1.3-2ubuntu5.2+esm2UBUNTU-CVE-2024-7254 USN-7629-2
Red Hatjboss_enterprise_application_platform_els:7.4::el7eap7-apache-cxf, eap7-apache-cxf-rt, eap7-apache-cxf-tools and 1 more0:3.5.11-1.SP1_redhat_00001.1.el7eapRHSA-2026:4915
Red Hatjboss_enterprise_application_platform_els:7.4::el7eap7-eclipse-jgit0:5.13.5.202508271544-2.r_redhat_00001.1.el7eapRHSA-2026:4915
Red Hatjboss_enterprise_application_platform_els:7.4::el7eap7-hibernate, eap7-hibernate-core, eap7-hibernate-java8 and 2 more0:5.3.38-1.Final_redhat_00001.1.el7eapRHSA-2026:4915
Red Hatjboss_enterprise_application_platform_els:7.4::el7eap7-jboss-marshalling, eap7-jboss-marshalling-river0:2.0.16-1.Final_redhat_00001.1.el7eapRHSA-2026:4915
Red Hatjboss_enterprise_application_platform_els:7.4::el7eap7-netty, eap7-netty-all, eap7-netty-codec and 25 more0:4.1.124-1.Final_redhat_00001.1.el7eapRHSA-2026:4915
Red Hatjboss_enterprise_application_platform_els:7.4::el7eap7-protostream0:4.3.7-1.Final_redhat_00001.1.el7eapRHSA-2025:20052
Red Hatjboss_enterprise_application_platform_els:7.4::el7eap7-undertow0:2.2.39-1.Final_redhat_00001.1.el7eapRHSA-2026:4915
Red Hatjboss_enterprise_application_platform_els:7.4::el7eap7-wildfly, eap7-wildfly-modules, eap7-wildfly-javadocs and 2 more0:7.4.23-5.GA_redhat_00004.1.el7eapRHSA-2025:20052
Red Hatjboss_enterprise_application_platform_els:7.4::el7eap7-wildfly, eap7-wildfly-modules, eap7-wildfly-javadocs and 2 more0:7.4.24-4.GA_redhat_00002.1.el7eapRHSA-2026:4915
Red Hatjboss_enterprise_application_platform_els:7.4::el8eap7-apache-cxf, eap7-apache-cxf-rt, eap7-apache-cxf-tools and 1 more0:3.5.11-1.SP1_redhat_00001.1.el8eapRHSA-2026:4916
Red Hatjboss_enterprise_application_platform_els:7.4::el8eap7-eclipse-jgit0:5.13.5.202508271544-2.r_redhat_00001.1.el8eapRHSA-2026:4916
Red Hatjboss_enterprise_application_platform_els:7.4::el8eap7-hibernate, eap7-hibernate-core, eap7-hibernate-java8 and 2 more0:5.3.38-1.Final_redhat_00001.1.el8eapRHSA-2026:4916
15 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Installer Updates 15 SP4 and 6 moreprotobuf25.1-150400.9.10.1SUSE-SU-2024:3746-1
SUSELinux Enterprise Installer Updates 15 SP5, Linux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5 and 4 moreprotobuf25.1-150500.12.5.1SUSE-SU-2024:3747-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Development Tools 15 SP6, Linux Enterprise Module for Package Hub 15 SP6 and 1 moreprotobuf25.1-150600.16.7.1SUSE-SU-2024:3745-1
SUSELinux Micro 6.0protobuf23.4-8.1SUSE-SU-2025:20074-1
SUSELinux Micro 6.1protobuf23.4-slfo.1.1_2.1SUSE-SU-2025:20672-1
openSUSELeap 15.5, Leap Micro 5.5protobuf25.1-150500.12.5.1SUSE-SU-2024:3747-1
openSUSELeap 15.6protobuf25.1-150600.16.7.1SUSE-SU-2024:3745-1
openSUSETumbleweedprotobuf28.3-15.1openSUSE-SU-2025:14832-1
Alpaquita23, streamprotobufno fix listedBELL-CVE-2024-7254
BellSoft Hardened Containersstreamprotobufno fix listedBELL-CVE-2024-7254

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue represents a significant severity risk because unbounded recursion in Protocol Buffers parsing can be exploited to trigger stack overflows, leading to Denial of Service (DoS). When parsers, such as `DiscardUnknownFieldsParser` or the Java Protobuf Lite parser, encounter arbitrarily nested groups or deeply recursive map fields, the lack of recursion depth limits can result in uncontrolled stack growth. Attackers can craft malicious protobuf messages that deliberately exceed the stack's capacity, causing the application to crash or become unresponsive.

The protobuf package as shipped in RHEL does not include the affected java or kotlin bindings, therefore RHEL is Not Affected.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat build of Apache Camel 4.4.3 for Spring BootFixed 2024-10-14RHSA-2024:8064
Red Hat build of Apache Camel 4.8 for Spring BootFixed 2024-12-02RHSA-2024:10700
Red Hat build of Apache Camel 4 for Quarkus 3protobuf-javaFixed 2024-10-10RHSA-2024:7972
Red Hat build of Quarkus Native buildercom.google.protobuf/protobufFixed 2024-10-10RHSA-2024:7676
Red Hat build of Quarkus Native buildercom.google.protobuf/protobufFixed 2024-10-10RHSA-2024:7670
Red Hat JBoss EAP XP 5.0 Update 2.0Fixed 2025-05-14RHSA-2025:7620
Red Hat JBoss Enterprise Application Platform 7.4.24org.infinispan.protostream/protostream:4.3.7.Final-redhat-00001Fixed 2025-11-10RHSA-2025:20057
Red Hat JBoss Enterprise Application Platform 7.4 ELS on RHEL 7eap7-protostream-0:4.3.7-1.Final_redhat_00001.1.el7eapFixed 2025-11-10RHSA-2025:20052
Red Hat JBoss Enterprise Application Platform 7.4 ELS on RHEL 7eap7-wildfly-0:7.4.23-5.GA_redhat_00004.1.el7eapFixed 2025-11-10RHSA-2025:20052
Red Hat JBoss Enterprise Application Platform 7.4 ELS on RHEL 7eap7-jboss-marshalling-0:2.0.16-1.Final_redhat_00001.1.el7eapFixed 2026-03-18RHSA-2026:4915
Red Hat AMQ Broker 7protobuf-javaWill not fix
Red Hat build of Apicurio Registry 2protobuf-javaAffected
Red Hat build of Debezium 2protobuf-javaWill not fix
Red Hat build of OptaPlanner 8protobuf-javaNot affected
Red Hat Data Grid 8protobuf-javaWill not fix
Red Hat Enterprise Linux 10mysql8.4Not affected
Red Hat Enterprise Linux 10protobufNot affected
Red Hat Enterprise Linux 6mysqlOut of support scope
Red Hat Enterprise Linux 7protobufNot affected
Red Hat Enterprise Linux 8mysql:8.0/mysqlNot affected
27 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-7254.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High
  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON