CVE-2022-24921
HIGH 7.5CVSS 3.1Stack exhaustion when compiling deeply nested expressions in regexp
regexp.Compile in Go before 1.16.15 and 1.17.x before 1.17.8 allows stack exhaustion via a deeply nested expression.
- Published
- 5 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-674
- Also known as
- BIT-golang-2022-24921GO-2021-0347
- Sources
- NVDJSONOSV GO-2021-0347JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
< 1.16.15 | 1.16.15 |
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
>= 1.17, < 1.17.8 | 1.17.8 |
| NVD | netapp | astra_tridentcpe:2.3:a:netapp:astra_trident:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | Go | stdlib | < 1.16.15; >= 1.17.0-0, < 1.17.8 | 1.16.15, 1.17.8 |
References
- https://cert-portal.siemens.com/productcert/pdf/ssa-744259.pdf
- https://groups.google.com/g/golang-announce/c/RP1hfrBYVuk · Issue Tracking, Mailing List, Release Notes, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/04/msg00017.html · Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/04/msg00018.html · Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html
- https://security.gentoo.org/glsa/202208-02 · Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220325-0010/ · Third Party Advisory
- https://go.dev/cl/384616 · FIX
- https://go.googlesource.com/go/+/452f24ae94f38afa3704d4361d91d51218405c0a · FIX
- https://go.dev/issue/51112 · REPORT
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 5 Mar 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 May 2022)