Vulnerability · Published Sep 19, 2024 · Assigned by Google

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

High 8.7

In plain English

A high-severity uncontrolled resource consumption in google-protobuf [JRuby Gem] from Google. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.8% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)2.8%top 13.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12protobuf3.21.12-3+deb12u1DEBIAN-CVE-2024-7254
Debian:13protobuf3.21.12-11+deb13u1DEBIAN-CVE-2024-7254
Debian:14protobuf3.21.12-12DEBIAN-CVE-2024-7254
Mavencom.google.protobuf:protobuf-java4.28.2GHSA-735f-pc8j-v9w8
Mavencom.google.protobuf:protobuf-java3.25.5GHSA-735f-pc8j-v9w8
Mavencom.google.protobuf:protobuf-java4.27.5GHSA-735f-pc8j-v9w8
Mavencom.google.protobuf:protobuf-javalite4.27.5GHSA-735f-pc8j-v9w8
Mavencom.google.protobuf:protobuf-javalite3.25.5GHSA-735f-pc8j-v9w8
Mavencom.google.protobuf:protobuf-javalite4.28.2GHSA-735f-pc8j-v9w8
Mavencom.google.protobuf:protobuf-kotlin3.25.5GHSA-735f-pc8j-v9w8
Mavencom.google.protobuf:protobuf-kotlin4.27.5GHSA-735f-pc8j-v9w8
Mavencom.google.protobuf:protobuf-kotlin4.28.2GHSA-735f-pc8j-v9w8
Mavencom.google.protobuf:protobuf-kotlin-lite4.28.2GHSA-735f-pc8j-v9w8
Mavencom.google.protobuf:protobuf-kotlin-lite3.25.5GHSA-735f-pc8j-v9w8
Mavencom.google.protobuf:protobuf-kotlin-lite4.27.5GHSA-735f-pc8j-v9w8
RubyGemsgoogle-protobuf3.25.5GHSA-735f-pc8j-v9w8
RubyGemsgoogle-protobuf4.27.5GHSA-735f-pc8j-v9w8
RubyGemsgoogle-protobuf4.28.2GHSA-735f-pc8j-v9w8
Ubuntu:22.04:LTSprotobuf3.12.4-1ubuntu7.22.04.2USN-7435-1
Ubuntu:22.04:LTSprotobuf3.12.4-1ubuntu7.22.04.4USN-7629-1
Ubuntu:22.04:LTSprotobuf3.12.4-1ubuntu7.22.04.2UBUNTU-CVE-2024-7254
Ubuntu:24.04:LTSprotobuf3.21.12-8.2ubuntu0.1USN-7435-1
Ubuntu:24.04:LTSprotobuf3.21.12-8.2ubuntu0.1UBUNTU-CVE-2024-7254
Ubuntu:24.04:LTSprotobuf3.21.12-8.2ubuntu0.2USN-7629-1

Affected products (as reported)

VendorProductVersions
Google Protocol Buffers 0 – before 28.2
Google protobuf-java 0 – before 3.25.50 – before 4.27.50 – before 4.28.2
Google protobuf-javalite 0 – before 3.25.50 – before 4.27.50 – before 4.28.2
Google protobuf-kotlin 0 – before 3.25.50 – before 4.27.50 – before 4.28.2
Google protobuf-kotllin-lite 0 – before 3.25.50 – before 4.27.50 – before 4.28.2
Google google-protobuf [JRuby Gem] 0 – before 3.25.50 – before 4.27.50 – before 4.28.2

Weakness: CWE-400, CWE-674 · Vector: 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

References