CVE-2022-41715

HIGHCVSS 7.5/10EPSS 1.34%

Last modified

CVE-2022-41715 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 1.34% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.5/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS Probability
1.34%

67.7th percentile

Probability of exploitation in the next 30 days. Learn more

Affected Software

VendorProductVersions
GolangGo< 1.18.7
GolangGo>= 1.19.0, < 1.19.2

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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.
How severe is CVE-2022-41715?
CVE-2022-41715 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 1.34% probability of exploitation in the next 30 days.
How do I fix CVE-2022-41715?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-41715?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST