CVE-2022-41715: Memory exhaustion in Go regular-expression parsing
- Vendor
- Golang
CVE-2022-41715 is an excessive-memory-consumption vulnerability in Go's regular-expression syntax parser. Applications that compile regular expressions from untrusted sources can allocate disproportionately large amounts of memory while constructing the parsed representation. Although representation size grows linearly with input size, the constant factor can reach approximately 40,000, allowing relatively small expressions to cause memory exhaustion and denial of service. The fix limits each expression being parsed to a 256 MB memory footprint and rejects expressions exceeding that limit.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can exhaust memory and disrupt the affected Go application or service. No confidentiality or integrity impact is identified. In OpenShift deployments, the impact is constrained to the affected container, with garbage collection and container and cluster resource controls limiting sustained effects.
Mitigation
If you can’t patch tonight, do this now.
Prevent untrusted users from supplying regular expressions for compilation, or restrict access to that functionality until updates are deployed. Enforce container memory limits and cluster resource controls to constrain the impact of memory exhaustion. These controls limit exposure or contain disruption but do not correct the parser vulnerability.
Remediation
Patch, then assume compromise.
Update to a fixed Go release, including Go 1.18.7 or 1.19.2, or a subsequent supported release containing the fix, and rebuild and redeploy affected applications. For vendor-distributed applications and container images, install the corresponding vendor security updates. The corrected parser rejects expressions whose parsed representation would exceed 256 MB. Account for vendor backports when assessing package versions.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-41715 exploited in the wild?
- As of Nov 23, 2026, Mallory has no reports of CVE-2022-41715 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2022-41715?
- As of Nov 23, 2026, Mallory has found no public exploit for CVE-2022-41715.
- Is there a patch for CVE-2022-41715?
- Update to a fixed Go release, including Go 1.18.7 or 1.19.2, or a subsequent supported release containing the fix, and rebuild and redeploy affected applications. For vendor-distributed applications and container images, install the corresponding vendor security updates.
- What products are affected by CVE-2022-41715?
- Golang Go.
- How severe is CVE-2022-41715?
- CVE-2022-41715 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 1.6% (76th percentile) as of Nov 23, 2026.
Recent activity
43 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.