Uncontrolled Recursion Vulnerability in rust-protobuf Package

rust-protobuf Updated 02 Oct 2025

Summary

05/07/2025
N/A
No i
Unrated
Not published

DEBIAN-CVE-2025-53605: The protobuf crate before 3.7.2 for Rust allows uncontrolled recursion in the protobuf::coded_input_stream::CodedInputStream::skip_group parsing of unknown fields in untrusted input. Affects rust-protobuf versions 2.27.1-1 – 3.7.2-1. No fix is published. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The rust-protobuf package is a Rust implementation of Protocol Buffers, a language-agnostic binary serialization format developed by Google. It is widely used for data interchange in applications due to its efficiency and ease of use. However, the package has been found to have a vulnerability that allows for uncontrolled recursion when parsing unknown fields in untrusted input, which can lead to denial of service or application crashes.

Vulnerability Detail

The vulnerability identified as CVE-2025-53605 affects the protobuf crate before version 3.7.2. It allows for uncontrolled recursion in the parsing of unknown fields within the protobuf::coded_input_stream::CodedInputStream::skip_group method. This can be exploited by an attacker who sends specially crafted input to the application, potentially leading to stack overflow, excessive resource consumption, or application crashes. The issue arises from the lack of proper input validation and handling of recursive structures in the parsing logic.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If updating the package is not immediately possible, consider implementing input validation to restrict the size and complexity of the input being processed. This can help mitigate the risk of exploitation until a proper update can be applied.

Conclusion

The rust-protobuf package has a significant vulnerability (CVE-2025-53605) that allows for uncontrolled recursion during input parsing. It is crucial to update to the patched version 3.7.2-1 to mitigate the risks associated with this vulnerability. Until an update can be applied, implementing input validation can serve as a temporary workaround.

See every vulnerability recorded for rust-protobuf →

Share this vulnerability

FAQ

CVE-2025-53605 is a vulnerability in the rust-protobuf package that allows for uncontrolled recursion during the parsing of unknown fields, potentially leading to application crashes.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The risks include denial of service, application crashes, and excessive resource consumption due to uncontrolled recursion.

Yes, a patch is available in version 3.7.2-1 of the rust-protobuf package.

Implement input validation to limit the size and complexity of input until you can apply the update.

Related vulnerabilities

Recent vulnerabilities recorded for rust-protobuf.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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