Go Vulnerability Database
GO-2021-0082
Denial of service via malicious message size declaration in github.com/facebook/fbthrift
Details
Thrift Servers preallocate memory for the declared size of messages before checking the actual size of the message. This allows a malicious user to send messages that declare that they are significantly larger than they actually are, allowing them to force the server to allocate significant amounts of memory. This can be used as a denial of service vector.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/facebook/fbthrift | All versions before 0.31.1-0.20200311080807-483ed864d69f (fixed in 0.31.1-0.20200311080807-483ed864d69f) |