Intel

AIKIDO-2026-872542

google-protobuf is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 18, 2026

55

Medium Risk

This Affects:

RUBYgoogle-protobuf
3.25.1 - 4.34.2
Fixed in 4.35.0
Are you affected? Scan for Free

TL;DR

The Ruby C extension's Message_decode_bytes function takes the encoded payload size as a signed 32-bit int, so decoding an untrusted serialized message of 2 GB or larger truncates the size value before it reaches the parser. This lets an oversized payload passed to Message.decode crash the Ruby process instead of failing with a normal parse error. The fix widens the size parameter to size_t and raises a Google::Protobuf::ParseError for oversized input instead of crashing.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you decode protobuf messages larger than 2 GB from untrusted sources.

Background info

google-protobuf is vulnerable to Denial of Service (DoS) in versions 3.25.1 - 4.34.2.

How to fix this

Upgrade the google-protobuf library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform