Moleculer
Moleculer: Unauthenticated Denial of Service via negative length field in the TCP transporter packet parser
Moleculer is a progressive microservices framework for Node.js. Prior to 0.14.36 and 0.15.2, Parser._write in src/transporters/tcp/parser.js used Buffer.prototype.readInt32BE to read a signed packet length, so a remote unauthenticated peer could supply a negative value that caused packet.slice(length) to return the unchanged buffer while the while (packet.length > 0) loop continued indefinitely. The synchronous loop blocked the Node.js event loop and made every service in the process unresponsive until restart. The TCP transporter must be enabled and reachable, and neither CRC validation nor maxPacketSize prevents the malformed length value. This issue is fixed in versions 0.14.36 and 0.15.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.15.0, < 0.15.2
- < 0.14.36
Fixed in 0.15.2, 0.14.36
Mitigation
Upgrade moleculer to 0.15.2 or 0.14.36 or later.
References
- Vendor advisory github.com/moleculerjs/moleculer/security/advi…
- Patch github.com/moleculerjs/moleculer/commit/168ecb…
- Patch github.com/moleculerjs/moleculer/commit/914074…
2 more
- Release notes github.com/moleculerjs/moleculer/releases/tag/…
- Release notes github.com/moleculerjs/moleculer/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.