Skip to content
OpenAdvisories
High · 8.7 CVE-2024-7254 EUVD-2024-2741GHSA-735f-pc8j-v9w8

Stack overflow in Protocol Buffers Java Lite

Published Sep 19, 2024 · Updated Sep 8, 2025 · Assigned by Google

Vendor: Google Product: google-protobuf [JRuby Gem] Product: protobuf-java Product: protobuf-javalite Product: protobuf-kotlin Product: protobuf-kotllin-lite Product: Protocol Buffers Package: apache-nifi Package: apache-nifi-compat Package: apache-nifi-toolkit Package: celeborn-0.6 Package: com.google.protobuf:protobuf-java Package: com.google.protobuf:protobuf-javalite Package: com.google.protobuf:protobuf-kotlin Package: com.google.protobuf:protobuf-kotlin-lite Package: confluent-kafka Package: druid Package: google-protobuf Package: kserve-modelmesh Package: kserve-modelmesh-compat Package: kube-fluentd-operator Package: kube-fluentd-operator-compat Package: kube-fluentd-operator-default-config Package: kube-fluentd-operator-oci-entrypoint Package: opensearch-2 Package: protobuf Package: protobuf Package: sonarqube-10 Package: tez Package: thingsboard Package: thingsboard-tb-js-executor Package: thingsboard-tb-mqtt-transport Package: thingsboard-tb-node Package: thingsboard-tb-web-ui Package: trino Package: trino-config Package: trino-oci-entrypoint Package: trino-plugin-ai-functions Package: trino-plugin-bigquery Package: trino-plugin-blackhole Package: trino-plugin-cassandra Package: trino-plugin-clickhouse Package: trino-plugin-delta-lake Package: trino-plugin-druid Package: trino-plugin-duckdb Package: trino-plugin-elasticsearch Package: trino-plugin-exasol Package: trino-plugin-exchange-filesystem Package: trino-plugin-exchange-hdfs Package: trino-plugin-faker Package: trino-plugin-functions-python Package: trino-plugin-geospatial Package: trino-plugin-google-sheets Package: trino-plugin-hive Package: trino-plugin-http-event-listener Package: trino-plugin-http-server-event-listener Package: trino-plugin-hudi Package: trino-plugin-iceberg Package: trino-plugin-ignite Package: trino-plugin-jmx Package: trino-plugin-kafka Package: trino-plugin-kafka-event-listener Package: trino-plugin-lakehouse Package: trino-plugin-ldap-group-provider Package: trino-plugin-loki Package: trino-plugin-mariadb Package: trino-plugin-memory Package: trino-plugin-ml Package: trino-plugin-mongodb Package: trino-plugin-mysql Package: trino-plugin-mysql-event-listener Package: trino-plugin-opa Package: trino-plugin-openlineage Package: trino-plugin-opensearch Package: trino-plugin-oracle Package: trino-plugin-password-authenticators Package: trino-plugin-pinot Package: trino-plugin-postgresql Package: trino-plugin-prometheus Package: trino-plugin-ranger Package: trino-plugin-redis Package: trino-plugin-redshift Package: trino-plugin-resource-group-managers Package: trino-plugin-session-property-managers Package: trino-plugin-singlestore Package: trino-plugin-snowflake Package: trino-plugin-spooling-filesystem Package: trino-plugin-sqlserver Package: trino-plugin-teradata-functions Package: trino-plugin-thrift Package: trino-plugin-tpcds Package: trino-plugin-tpch Package: trino-plugin-vertica Package: wavefront-proxy Package: wavefront-proxy-compat Package: wavefront-proxy-config Package: wavefront-proxy-licenses Ecosystem: Debian Ecosystem: Maven Ecosystem: RubyGems Ecosystem: Ubuntu Ecosystem: Wolfi

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

VendorProductAffectedFixed
Google Protocol Buffers < 28.2 28.2
Google protobuf-java < 3.25.5, < 4.27.5, < 4.28.2 3.25.5
Google protobuf-javalite < 3.25.5, < 4.27.5, < 4.28.2 3.25.5
Google protobuf-kotlin < 3.25.5, < 4.27.5, < 4.28.2 3.25.5
Google protobuf-kotllin-lite < 3.25.5, < 4.27.5, < 4.28.2 3.25.5
Google google-protobuf [JRuby Gem] < 3.25.5, < 4.27.5, < 4.28.2 3.25.5

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 protobuf 3.21.12-12 —
Debian 13 protobuf 3.21.12-11+deb13u1 —
Debian 12 protobuf 3.21.12-3+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS protobuf 3.21.12-8.2ubuntu0.1 USN-7629-1, USN-7435-1
Ubuntu 22.04 LTS protobuf 3.12.4-1ubuntu7.22.04.2 USN-7629-1, USN-7435-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS protobuf 3.6.1.3-2ubuntu5.2+esm2 USN-7629-2
Ubuntu Pro 18.04 LTS protobuf 3.0.0-9.1ubuntu1.1+esm3 USN-7629-2
Ubuntu Pro 16.04 LTS protobuf 2.6.1-1.3ubuntu0.1~esm4 USN-7629-2
Ubuntu Pro 14.04 LTS protobuf No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Jboss Enterprise Application Platform Els 7 eap7-apache-cxf +3 3.5.11-1.SP1_redhat_00001.1.el7eap RHSA-2026:4917, RHSA-2026:4916, RHSA-2026:4915
Red Hat Jboss Enterprise Application Platform Els 7 eap7-eclipse-jgit 5.13.5.202508271544-2.r_redhat_00001.1.el7eap RHSA-2026:4917, RHSA-2026:4916, RHSA-2026:4915
Red Hat Jboss Enterprise Application Platform Els 7 eap7-hibernate +4 5.3.38-1.Final_redhat_00001.1.el7eap RHSA-2026:4917, RHSA-2026:4916, RHSA-2026:4915
Red Hat Jboss Enterprise Application Platform Els 7 eap7-jboss-marshalling +1 2.0.16-1.Final_redhat_00001.1.el7eap RHSA-2026:4917, RHSA-2026:4916, RHSA-2026:4915
Red Hat Jboss Enterprise Application Platform Els 7 eap7-netty +26 4.1.124-1.Final_redhat_00001.1.el7eap RHSA-2026:4917, RHSA-2026:4916, RHSA-2026:4915
Red Hat Jboss Enterprise Application Platform Els 7 eap7-protostream 4.3.7-1.Final_redhat_00001.1.el7eap RHSA-2025:20052
Red Hat Jboss Enterprise Application Platform Els 7 eap7-undertow 2.2.39-1.Final_redhat_00001.1.el7eap RHSA-2026:4917, RHSA-2026:4916, RHSA-2026:4915
Red Hat Jboss Enterprise Application Platform Els 7 eap7-wildfly +4 7.4.23-5.GA_redhat_00004.1.el7eap RHSA-2026:4917, RHSA-2026:4916, RHSA-2026:4915
Red Hat Jboss Enterprise Application Platform Els 7 eap7-wildfly-java-jdk17 7.4.23-5.GA_redhat_00004.1.el8eap RHSA-2026:4917, RHSA-2026:4916, RHSA-2025:20052
ReleasePackageFixed inAdvisory
SLES 15 SP6 protobuf 25.1-150600.16.7.1 SUSE-SU-2024:3745-1
SLES 15 SP5 protobuf 25.1-150500.12.5.1 SUSE-SU-2024:3747-1
SLES 15 SP4 protobuf 25.1-150400.9.10.1 SUSE-SU-2024:3746-1
SLES 3 protobuf 25.1-150500.12.5.1 SUSE-SU-2024:3747-1, SUSE-SU-2024:3745-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP4 protobuf 25.1-150400.9.10.1 SUSE-SU-2024:3746-1
SLE Micro 6.1 protobuf 23.4-slfo.1.1_2.1 SUSE-SU-2025:20672-1
SLE Micro 6.0 protobuf 23.4-8.1 SUSE-SU-2025:20074-1
SLE Micro 5.5 protobuf 25.1-150500.12.5.1 SUSE-SU-2024:3747-1
SLE Micro 5.4 protobuf 25.1-150400.9.10.1 SUSE-SU-2024:3746-1
SLE Micro 5.3 protobuf 25.1-150400.9.10.1 SUSE-SU-2024:3746-1
SLE HPC 15 SP4 protobuf 25.1-150400.9.10.1 SUSE-SU-2024:3746-1
SUSE Manager Server 4.3 protobuf 25.1-150400.9.10.1 SUSE-SU-2024:3746-1
SUSE Linux Enterprise Installer Updates 15 SP5 protobuf 25.1-150500.12.5.1 SUSE-SU-2024:3747-1
SUSE Linux Enterprise Installer Updates 15 SP4 protobuf 25.1-150400.9.10.1 SUSE-SU-2024:3746-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed protobuf 28.3-15.1 openSUSE-SU-2025:14832-1
openSUSE Leap 15.6 protobuf 25.1-150600.16.7.1 SUSE-SU-2024:3745-1
openSUSE Leap 15.5 protobuf 25.1-150500.12.5.1 SUSE-SU-2024:3747-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.5 protobuf 25.1-150500.12.5.1 SUSE-SU-2024:3747-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 protobuf +12 2.5.0-8.amzn2.0.5 ALAS2-2024-2693

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling apache-nifi +2 2.0.0-r0 —
Wolfi rolling celeborn-0.6 0.6.3-r7 —
Wolfi rolling confluent-kafka 8.0.0.6-r0 —
Wolfi rolling druid 37.0.0-r8 —
Wolfi rolling kserve-modelmesh +1 0.12.0-r13 —
Wolfi rolling kube-fluentd-operator +3 1.18.2-r33 —
Wolfi rolling opensearch-2 2.18.0-r0 —
Wolfi rolling sonarqube-10 25.1.0.102122-r0 —
Wolfi rolling tez 0.10.4-r6 —
Wolfi rolling thingsboard +4 3.9.1-r2 —
Wolfi rolling trino +58 464-r0 —
Wolfi rolling wavefront-proxy +3 13.7-r5 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.google.protobuf:protobuf-java < 3.25.5 3.25.5 GHSA-735f-pc8j-v9w8
Maven com.google.protobuf:protobuf-java >= 4.0.0-RC1, < 4.27.5 4.27.5 GHSA-735f-pc8j-v9w8
Maven com.google.protobuf:protobuf-java >= 4.28.0-RC1, < 4.28.2 4.28.2 GHSA-735f-pc8j-v9w8
Maven com.google.protobuf:protobuf-javalite < 3.25.5 3.25.5 GHSA-735f-pc8j-v9w8
Maven com.google.protobuf:protobuf-javalite >= 4.0.0-RC1, < 4.27.5 4.27.5 GHSA-735f-pc8j-v9w8
Maven com.google.protobuf:protobuf-javalite >= 4.28.0-RC1, < 4.28.2 4.28.2 GHSA-735f-pc8j-v9w8
Maven com.google.protobuf:protobuf-kotlin < 3.25.5 3.25.5 GHSA-735f-pc8j-v9w8
Maven com.google.protobuf:protobuf-kotlin >= 4.0.0-RC1, < 4.27.5 4.27.5 GHSA-735f-pc8j-v9w8
Maven com.google.protobuf:protobuf-kotlin >= 4.28.0-RC1, < 4.28.2 4.28.2 GHSA-735f-pc8j-v9w8
Maven com.google.protobuf:protobuf-kotlin-lite < 3.25.5 3.25.5 GHSA-735f-pc8j-v9w8
Maven com.google.protobuf:protobuf-kotlin-lite >= 4.0.0-RC1, < 4.27.5 4.27.5 GHSA-735f-pc8j-v9w8
Maven com.google.protobuf:protobuf-kotlin-lite >= 4.28.0-RC1, < 4.28.2 4.28.2 GHSA-735f-pc8j-v9w8
RubyGems google-protobuf < 3.25.5 3.25.5 GHSA-735f-pc8j-v9w8
RubyGems google-protobuf >= 4.0.0.rc.1, < 4.27.5 4.27.5 GHSA-735f-pc8j-v9w8
RubyGems google-protobuf >= 4.28.0.rc.1, < 4.28.2 4.28.2 GHSA-735f-pc8j-v9w8

Advisories 41

References