SecurityContext

CVE-2022-41715: Regex Compilation - Denial of Service

  • Cve: CVE-2022-41715
  • Name: Regex Compilation - Denial of Service
  • Description: 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.
  • Impact: Attackers can cause memory exhaustion or denial of service by crafting regex inputs that consume excessive memory.
  • Remediation: Limit regex parsing to a 256 MB memory footprint and reject regexps exceeding this size.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.01726
  • Epss percentile: 0.78144
  • Assignee: [email protected]
  • Published at: 2022-10-14T15:16:20Z
  • Age in days: 1502
  • Modified at: 2026-06-17T05:03:41Z
  • Patch available: yes
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-41715
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
NVD-CWE-Other—

References

Same in every row:

  • Source: nvd
UrlTags
https://go.dev/cl/439356Patch
https://pkg.go.dev/vuln/GO-2022-1039Vendor Advisory
https://go.dev/issue/55949Issue Tracking, Third Party Advisory
https://groups.google.com/g/golang-announce/c/xtuG5faxtaUMailing List, Release Notes
https://security.gentoo.org/glsa/202311-09

Products

ProductAffectedPlatform boundSourcesUrl
golang:go>= 1.19.0, < 1.19.2; < 1.18.7nonvd/v1/products/golang/go

Projects

RepositoryLink kindsIndexedUrl
golang/gofixyes/v1/repositories/golang/go

Index

  • Packages: 1
  • Checked, none or zero: repositories, repositories high signal

Exploitation

  • Remote: yes
  • Exposed hosts: 1852470
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports