Critical Vulnerability in Protobuf Package: Potential Denial of Service Attack

protobuf Updated 02 Oct 2025

Summary

10/01/2022
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2021-22569: An issue in protobuf-java allowed the interleaving of com.google.protobuf.UnknownFieldSet fields in such a way that would be processed out of order. Affects protobuf versions < 3.12.4-1+deb11u1. Fixed in 3.12.4-1+deb11u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Protobuf, short for Protocol Buffers, is a language-neutral, platform-neutral extensible mechanism for serializing structured data, developed by Google. It is widely used for data interchange in various applications due to its efficiency and ease of use. However, a vulnerability has been identified in the protobuf-java library that can lead to severe performance issues when processing malicious payloads.

Vulnerability Detail

An issue in protobuf-java allows the interleaving of com.google.protobuf.UnknownFieldSet fields in a manner that can be processed out of order. This vulnerability can be exploited by sending a small malicious payload that occupies the parser for several minutes, creating large numbers of short-lived objects that lead to frequent and repeated pauses. This can result in a Denial of Service (DoS) condition, severely impacting application performance and availability.

How To Fix

Minimum fixed version

3.12.4-1+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade protobuf

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to upgrade to the patched versions as soon as possible.

Conclusion

The vulnerability in the protobuf package poses a significant risk of Denial of Service attacks due to its ability to process fields out of order. It is crucial for users to upgrade to the patched versions to mitigate this risk. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in real-time.

See every vulnerability recorded for protobuf →

Share this vulnerability

FAQ

The vulnerability allows for the processing of fields in an out-of-order manner, which can lead to performance degradation and potential Denial of Service.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json, you can check for vulnerabilities in real-time.

Failure to address this vulnerability may result in application downtime due to Denial of Service attacks, impacting user experience and operational efficiency.

Yes, for Debian 11, upgrade to version 3.12.4-1+deb11u1 or later. For Debian 12, 13, and 14, upgrade to version 3.21.9-3 or later.

Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Related vulnerabilities

Recent vulnerabilities recorded for protobuf.

How To Fix

Minimum fixed version

3.12.4-1+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade protobuf

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.