Advisory

GO-2021-0082

Also known as: CVE-2019-11939, GHSA-w3r9-r9w7-8h48

Summary

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.

Severity

Not rated by the source.

Dates

Published
2021-04-14 20:04 UTC
Modified
2026-02-04 02:54 UTC

Affected packages and fixes

github.com/facebook/fbthrift

Go · All systems

Affected

  • introduced 0, fixed 0.31.1-0.20200311080807-483ed864d69f (semver)

Fixed versions

0.31.1-0.20200311080807-483ed864d69f

Fix

  • Fixed version 0.31.1-0.20200311080807-483ed864d69f
    go get github.com/facebook/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences