Protobuf: Denial of Service issue through malicious messages containing negative varints or deep recursion
Published 25 Mar 2026 · Updated 16 Apr 2026
Is your project on an affected google/protobuf?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <4.33.6
- Fixed in
- 4.33.6
composer require google/protobuf:^4.33.6Details
Impact
A Denial of Service (DoS) vulnerability exists in the Protobuf PHP library during the parsing of untrusted input. Maliciously structured messages—specifically those containing negative varints or deep recursion—can be used to crash the application, impacting service availability.
Patches
Patches have been released to 5.34.0-RC1 and 4.33.6.
Is GHSA-p2gh-cfq4-4wjc in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected google/protobuf, and gives you the command that fixes it.
More advisories for google/protobuf
- HighCVE-2015-5237protobuf susceptible to buffer overflow · 13 May 2022
References
- Linkgithub.com/protocolbuffers/protobuf/security/advisories/GHSA-p2gh-cfq4-4wjc
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-6409
- Linkgithub.com/protocolbuffers/protobuf/issues/24159
- Linkgithub.com/protocolbuffers/protobuf/issues/25067
- Linkgithub.com/protocolbuffers/protobuf/commit/60e93d2d104f2af9cd345b1c6f3891d91430244a
- Linkgithub.com/protocolbuffers/protobuf/commit/c8e9b27d95c6ab2d0668b5889e7dac2c477b7038
- Packagegithub.com/protocolbuffers/protobuf
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.