CVE-2022-41715
golang: regexp/syntax: limit memory used by parsing regexps
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected packages · 2
Operating systems · 467 fixes
Oracle Linux 2 releases · 29 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | udica | 0.2.6-21.module+el8.10.0+90337+0d7b6e74 |
| 8 | fuse-overlayfs | 1.13-1.module+el8.10.0+90298+77a9814d |
| 8 | crun | 1.14.3-2.module+el8.10.0+90298+77a9814d |
| 8 | go-toolset | 1.19.4-1.module+el8.7.0+20922+47ac84ba |
| 8 | golang +6 | 1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba |
| 8 | oci-seccomp-bpf-hook | 1.2.10-1.module+el8.10.0+90298+77a9814d |
30 more rows
Photon OS 2 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | go | 1.19.2-1.ph4 |
| 4.0 | kubernetes-dashboard | 2.7.0-1.ph4 |
| 5.0 | falco | 0.32.2-6.0601037001.ph5 |
| 5.0 | go | 1.26.3-1.ph5 |
Red Hat 8 releases · 105 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| go-toolset-7-golang +8 | eol | — | |
| 7 | buildah +6 | affected | — |
| 7 | golang +2 | eol | — |
| 7 | go-toolset-1-18 +10 | 0:1.18.9-1.el7_9 | RHSA-2023:0445 |
| 8 | toolbox | 0:0.1.0-1.rhaos4.12.el8 | RHSA-2022:7398 |
| 8 | toolbox | 0:0.1.1-3.rhaos4.12.el8 | RHSA-2023:0727 |
230 more rows
SUSE Linux Enterprise 4 releases · 5 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | golang-github-prometheus-node-exporter | 1.5.0-1.24.4 | SUSE-SU-2023:2183-1 |
| 15.4 | go1-18-openssl +2 | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| 15.4 | go1-18 +2 | 1.18.7-150000.1.34.1 | SUSE-SU-2022:3668-1 |
| 15.4 | go1-19 +2 | 1.19.2-150000.1.12.1 | SUSE-SU-2022:3669-1 |
| 15.5 | golang-github-prometheus-prometheus | 2.37.6-150100.4.17.1 | SUSE-SU-2023:2598-1 |
| 15.6 | golang-github-prometheus-prometheus | 2.45.6-150100.4.20.1 | SUSE-SU-2024:3288-1 |
alma 5 releases · 27 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | git-lfs | 3.2.0-2.el8 |
| 8 | weldr-client | 35.9-2.el8 |
| 8 | grafana | 7.5.15-4.el8 |
| 8 | osbuild-composer +3 | 75-1.el8.alma |
| 8 (container-tools:4.0) | toolbox +1 | 0.0.99.4-5.module_el8.9.0+3627+db8ec155 |
| 8 (container-tools:4.0) | udica | 0.2.6-4.module_el8.9.0+3627+db8ec155 |
45 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.19.2-r0 |
| 3.23 | go | 1.19.2-r0 |
| 3.24 | go | 1.19.2-r0 |
| edge | go | 1.19.2-r0 |
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golist +2 | 0.10.1-11.amzn2023.0.3 |
| 2023 | golang +7 | 1.19.3-2.amzn2023.0.2 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 |
debian 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-1-11 | affected |
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | 1.19.2-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 | 1.19.2-1 |
openSUSE 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | go1-18 +2 | 1.18.7-1.1 | openSUSE-SU-2024:12391-1 |
| Tumbleweed | go1-19 +2 | 1.19.2-1.1 | openSUSE-SU-2024:12392-1 |
| Tumbleweed | golang-github-prometheus-prometheus | 2.48.1-2.1 | openSUSE-SU-2024:13604-1 |
rocky 4 releases · 22 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (container-tools:4.0) | udica | 0.2.6-4.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | slirp4netns | 1.1.8-3.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | oci-seccomp-bpf-hook | 1.2.5-2.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | fuse-overlayfs | 1.9-2.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | runc | 1:1.1.5-2.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | buildah +1 | 1:1.24.6-7.module+el8.9.0+1445+07728297 |
103 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | 1.19.2-1 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-jinja2 +1 | 2.7.2-4.el7+sp999 |
ubuntu 5 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | golang-1-18 | 1.18.1-1ubuntu1~18.04.4 |
| 18.04-ESM | golang-1-13 +3 | affected |
| 18.04-ESM | golang-1-18 | 1.18.1-1ubuntu1~18.04.4 |
| 20.04 | golang-1-18 | 1.18.1-1ubuntu1~20.04.2 |
| 20.04-ESM | golang-1-13 +2 | affected |
| 20.04-ESM | golang-1-18 | 1.18.1-1ubuntu1~20.04.2 |
2 more rows
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:2592
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-41715
- bugzilla.redhat.com https://bugzilla.redhat.com/2132872
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2132867
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2132868
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2132872
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2139718
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2149313
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2879
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2880
Show all 27 references
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41715
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2023-2592.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2023:0446
- github.com https://github.com/golang/go/commit/645abfe529dc325e16daa17210640c2907d1c17a (go1.19.2)
- github.com https://github.com/golang/go/commit/e9017c2416ad0ef642f5e0c2eab2dbf3cba4d997 (go1.18.7)
- github.com https://github.com/golang/go/issues/55949
- go.dev https://go.dev/cl/439356
- go.dev https://go.dev/issue/55949
- groups.google.com https://groups.google.com/g/golang-announce/c/xtuG5faxtaU
- groups.google.com https://groups.google.com/g/golang-announce/c/xtuG5faxtaU?pli=1
- linux.oracle.com https://linux.oracle.com/cve/CVE-2022-41715.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2024-3254.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-41715
- pkg.go.dev https://pkg.go.dev/vuln/GO-2022-1039
- security.gentoo.org https://security.gentoo.org/glsa/202311-09
- ubuntu.com https://ubuntu.com/security/notices/USN-6038-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-41715
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.