CVE-2022-41715

    Dashboard / Vulnerabilities / CVE-2022-41715

    CVE-2022-41715

    Published: 14 Oct 2022Last Modified: 12 Aug 2026

    Summary: Memory exhaustion when compiling regular expressions in regexp/syntax

    Details: Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service. The parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory. After fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Affected versions

    go1.18.6
    go1.18.5
    go1.18.4
    go1.18.3
    go1.18.2
    go1.18.1
    go1.18

    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
    CVE-2022-41715 | CVE-DB