GO-2020-0015

    Dashboard / Vulnerabilities / GO-2020-0015

    GO-2020-0015

    Published: 14 Apr 2021Last Modified: 4 Feb 2026

    Summary: Infinite loop when decoding some inputs in golang.org/x/text

    Details: An attacker could provide a single byte to a UTF16 decoder instantiated with UseBOM or ExpectBOM to trigger an infinite loop if the String function on the Decoder is called, or the Decoder is passed to transform.String. If used to parse user supplied input, this may be used as a denial of service vector.

    Affected packages

    Package

    Name: golang.org/x/text

    Purl: pkg:golang/golang.org/x/text

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.3.3

    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-2020-0015 | CVE-DB