CVE-2025-53605: Protobuf Crash Due To Uncontrolled Recursion Vulnerability
MODERATECVE-2025-53605 is a MODERATE crash due to uncontrolled recursion vulnerability (CWE-20: Improper Input Validation) affecting Protobuf libraries in the crates.io ecosystem. The issue involves crash due to uncontrolled recursion in protobuf crate. Remediation is available by upgrading affected packages to version 3.7.2.
CVE-2025-53605 at a Glance
How to Fix CVE-2025-53605
To remediate this vulnerability, upgrade all affected Protobuf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade protobuf to 3.7.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for protobuf
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-53605, inspect your project dependencies for Protobuf:
inspect dependencies for protobuf
Analyze the terminal output to locate any version of Protobuf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.7.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Protobuf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-53605 Affected Protobuf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
protobuf
|
crates.io |
< 3.7.2
|
3.7.2
|
References
Frequently Asked Questions
What is CVE-2025-53605?
Which Protobuf versions are affected?
What version fixes CVE-2025-53605?
Is protobuf affected?
What CWE is associated with CVE-2025-53605?
How can I check crates.io dependencies for CVE-2025-53605?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2gh3-rmm4-6rq5",
"modified" : "2025-08-01T19:20:19Z",
"published" : "2025-03-07T20:02:37Z",
"aliases" : [ "CVE-2025-53605" ],
"summary" : "Crash due to uncontrolled recursion in protobuf crate",
"details" : "Affected version of this crate did not properly parse unknown fields when parsing a user-supplied input.\n\nThis allows an attacker to cause a stack overflow when parsing the message on untrusted data.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "protobuf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.7.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-53605"
}, {
"type" : "WEB",
"url" : "https://github.com/stepancheg/rust-protobuf/issues/749"
}, {
"type" : "WEB",
"url" : "https://github.com/stepancheg/rust-protobuf/commit/f06992f46771c0a092593b9ebf7afd48740b3ed6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/stepancheg/rust-protobuf"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2024-0437.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-07T20:02:37Z",
"nvd_published_at" : null
}
}