Vulnerability in Golang Go
CVE-2022-41715
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.
EPSS: 0.014 (70.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Golang Go
- Go Standard Library Regexp/syntax — versions 0, 1.19.0-0
Public proof-of-concept exploits
References
- security@golang.org (Third Party Advisory, Issue Tracking)
- security@golang.org (Patch)
- security@golang.org (Mailing List, Release Notes)
- security@golang.org (Vendor Advisory)
- security@golang.org
Frequently asked questions
- What is CVE-2022-41715?
- CVE-2022-41715 is a high-severity vulnerability in Golang Go. CVSS score: 7.5/10. Published 2022-10-14.
- How severe is CVE-2022-41715?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2022-41715 known to be exploited?
- 10 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.