GO-2021-0082

    Dashboard / Vulnerabilities / GO-2021-0082

    GO-2021-0082

    Published: 14 Apr 2021Last Modified: 4 Feb 2026

    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.

    Affected packages

    Package

    Name: github.com/facebook/fbthrift

    Purl: pkg:golang/github.com/facebook/fbthrift

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.31.1-0.20200311080807-483ed864d69f

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GO-2021-0082 | CVE-DB