[GO-2022-1039] Memory exhaustion when compiling regular expressions in regexp/syntax
Severity
High
Affected Packages
2
Fixed Packages
2
CVEs
1
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.
Package | Affected Version |
---|---|
pkg:golang/regexp/syntax | >= 1.19.1, < 1.18.7 |
pkg:golang/regexp/syntax | >= 1.19.1, < 1.19.2 |
Package | Fixed Version |
---|---|
pkg:golang/regexp/syntax | = 1.18.7 |
pkg:golang/regexp/syntax | = 1.19.2 |
- ID
- GO-2022-1039
- Severity
- high
- Severity from
- CVE-2022-41715
- URL
- https://pkg.go.dev/vuln/GO-2022-1039
- Published
-
2022-10-05T22:03:05
(23 months ago) - Modified
-
2024-07-17T19:54:18
(2 months ago) - Other Advisories
-
- ALAS2-2022-1887
- ALAS2-2023-1913
- ALPINE:CVE-2022-41715
- ALSA-2023:0328
- ALSA-2023:0446
- ALSA-2023:2167
- ALSA-2023:2204
- ALSA-2023:2357
- ALSA-2023:2780
- ALSA-2023:2784
- ALSA-2023:2866
- ALSA-2024:0121
- ALSA-2024:3254
- ELSA-2022-24267
- ELSA-2023-0328
- ELSA-2023-0446
- ELSA-2023-18908
- ELSA-2023-2167
- ELSA-2023-2204
- ELSA-2023-2357
- ELSA-2023-2592
- ELSA-2023-2780
- ELSA-2023-2784
- ELSA-2023-2866
- ELSA-2024-0121
- ELSA-2024-2988
- ELSA-2024-3254
- FEDORA-2022-0e313cc582
- FEDORA-2022-59a20edab2
- FREEBSD:854C2AFB-4424-11ED-AF97-ADCABF310F9B
- GLSA-202311-09
- RHSA-2023:0328
- RHSA-2023:0446
- RHSA-2023:2167
- RHSA-2023:2204
- RHSA-2023:2357
- RHSA-2023:2592
- RHSA-2023:2780
- RHSA-2023:2784
- RHSA-2023:2866
- RHSA-2024:0121
- RHSA-2024:2988
- RHSA-2024:3254
- RLSA-2023:0328
- RLSA-2023:0446
- SUSE-SU-2022:3668-1
- SUSE-SU-2022:3669-1
- SUSE-SU-2023:2182-1
- SUSE-SU-2023:2183-1
- SUSE-SU-2023:2312-1
- SUSE-SU-2023:2578-1
- SUSE-SU-2023:2579-1
- SUSE-SU-2023:2598-1
- SUSE-SU-2024:0191-1
- SUSE-SU-2024:0196-1
- SUSE-SU-2024:0486-1
- SUSE-SU-2024:0487-1
- USN-6038-1
Type | Package URL | Namespace | Name / Product | Version | Distribution / Platform | Arch | Patch / Fix |
---|---|---|---|---|---|---|---|
Fixed | pkg:golang/regexp/syntax | regexp | syntax | = 1.18.7 | |||
Affected | pkg:golang/regexp/syntax | regexp | syntax | >= 1.19.1 < 1.18.7 | |||
Fixed | pkg:golang/regexp/syntax | regexp | syntax | = 1.19.2 | |||
Affected | pkg:golang/regexp/syntax | regexp | syntax | >= 1.19.1 < 1.19.2 |
# CVE | Description | CVSS | EPSS | EPSS Trend (30 days) | Affected Products | Weaknesses | Security Advisories | Exploits | PoC | Pubblication Date | Modification Date |
---|---|---|---|---|---|---|---|---|---|---|---|
# CVE | Description | CVSS | EPSS | EPSS Trend (30 days) | Affected Products | Weaknesses | Security Advisories | PoC | Pubblication Date | Modification Date |