Protobufjs protobuf.js
protobufjs: Denial of Service via infinite loop in .proto option parsing
protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.6.5 and 8.6.6, protobufjs parsed option names by advancing through schema tokens until reaching an = token without checking for end of input, so a crafted .proto schema that opens an option declaration and ends prematurely can cause parse, Root.load, or Root.loadSync to loop indefinitely. This issue is fixed in versions 7.6.5 and 8.6.6.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by NVD · CWE-835
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
protobufjs protobuf.js
- >= 7.5.0, < 7.6.5
- >= 8.0.0, < 8.6.6
Fixed in 7.6.5, 8.6.6
Mitigation
Upgrade protobuf.js to 7.6.5 or 8.6.6 or later.
References
- Vendor advisory github.com/protobufjs/protobuf.js/security/adv…
- Patch github.com/protobufjs/protobuf.js/pull/2352
- Patch github.com/protobufjs/protobuf.js/commit/10fba…
3 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.