PoC Published for Critical protobuf.js Flaw Enabling Remote Code Execution

Summary
A flaw in protobuf.js versions 8.0.0/7.5.4 and earlier lets malicious schemas trigger code execution. A PoC is available; upgrade to 8.0.1 or 7.5.5. No active exploitation has been observed.
Key points
- The flaw, tracked as GHSA-xq3m-2v4x-88gg, stems from generating JavaScript functions from schema data without validating schema-derived identifiers.
- An attacker could supply a malicious schema that injects code executed when an application processes a message using that schema.
- Affected versions are protobuf.js 8.0.0, 7.5.4, and earlier; fixes are available in 8.0.1 and 7.5.5.
- Endor Labs says exploitation is straightforward, and a proof of concept has been published; no active exploitation in the wild has been observed.
- The patch sanitizes type names. Endor Labs recommends upgrading, auditing transitive dependencies, treating schemas as untrusted input, and preferring precompiled or static schemas in production.
Article Details
- Vulnerability Types
- Remote code execution (RCE) through unsafe dynamic function generation
- Code injection via unvalidated schema-derived identifiers
- Severity
- Critical
- Affected Versions
- protobuf.js 8.0.0 and lower
- protobuf.js 7.5.4 and lower
- Exploitation Status
- not_reported
- Exploit Availability
- public_poc
- Patch Status
- available
- Workarounds
- Audit schema sources and transitive dependencies.
- Treat schema loading as untrusted input and avoid loading untrusted schemas.
- Use precompiled or static schemas in production.
