Apache Software Foundation Apache Thrift
Apache Thrift, Apache Thrift: WebSocket frame decoders allocate the payload buffer from the declared length, not the bytes received (Node.js, D)
Memory allocation with excessive size value, Improper handling of length parameter inconsistency vulnerability in Apache Thrift nodejs and D lang bindings. Both bindings' WebSocket server transports read the payload length out of the frame header and allocate that many bytes immediately, without checking that the bytes have arrived. A single ~14-byte frame therefore commits as much memory as it cares to declare -- measured at 513 MiB against the Node.js server and 2 GiB against the D transport -- and in the Node.js case the connection is left open afterwards, so the frame can simply be sent again. This issue affects Apache Thrift before 0.25.0. Users are recommended to upgrade to version 0.25.0, which fixes the issue.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.25.0
Fixed in 0.25.0
- < 0.25.0
Fixed in 0.25.0
Mitigation
Upgrade Apache Thrift to 0.25.0 or later.
Upgrade Apache Thrift to 0.25.0 or later.
References
- Vendor advisory lists.apache.org/thread/33otcgbqd27wf6qq810q56znzbom…
- Vendor advisory lists.apache.org/thread/64y7f0b89mnq4xoqcn4h26to8ksk…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.