Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. protobuf
  4. ›
  5. GHSA-2gh3-rmm4-6rq5

GHSA-2gh3-rmm4-6rq5: Crash due to uncontrolled recursion in protobuf crate

March 7, 2025 (updated March 11, 2025)

Affected version of this crate did not properly parse unknown fields when parsing a user-supplied input.

This allows an attacker to cause a stack overflow when parsing the message on untrusted data.

References

  • github.com/advisories/GHSA-2gh3-rmm4-6rq5
  • github.com/stepancheg/rust-protobuf
  • github.com/stepancheg/rust-protobuf/commit/f06992f46771c0a092593b9ebf7afd48740b3ed6
  • github.com/stepancheg/rust-protobuf/issues/749
  • rustsec.org/advisories/RUSTSEC-2024-0437.html

Code Behaviors & Features

Detect and mitigate GHSA-2gh3-rmm4-6rq5 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.7.2

Fixed versions

  • 3.7.2

Solution

Upgrade to version 3.7.2 or above.

Weakness

  • CWE-20: Improper Input Validation
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

cargo/protobuf/GHSA-2gh3-rmm4-6rq5.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:27 +0000.