# CVE-2022-24921: Stack exhaustion when compiling deeply nested expressions in regexp

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.26%, higher than 88% of CVEs (2026-12-01)
- Published: 2022-03-05T00:00:00.000Z
- Modified: 2026-10-16T09:45:09.534Z
- Also known as: GO-2021-0347, BIT-GOLANG-2022-24921
- Weaknesses: CWE-674
- Assigned by: mitre

## Description

regexp.Compile in Go before 1.16.15 and 1.17.x before 1.17.8 allows stack exhaustion via a deeply nested expression.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- stdlib (Go): before 1.16.15; from 1.17.0-0 before 1.17.8
- golang go: before 1.16.15; from 1.17 before 1.17.8
- netapp astra_trident: no versions given
- debian debian_linux: 9.0
- golang (Bitnami): before 1.16.15; from 1.17.0 before 1.17.8

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://groups.google.com/g/golang-announce/c/RP1hfrBYVuk> (advisory, issue-tracking, mailing-list, release-notes, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20220325-0010/> (advisory, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/04/msg00017.html> (advisory, mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/04/msg00018.html> (advisory, mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202208-02> (advisory, third-party-advisory, vendor-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-744259.pdf>
- <https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html> (mailing-list, web)
- <https://go.dev/cl/384616> (fix)
- <https://go.googlesource.com/go/+/452f24ae94f38afa3704d4361d91d51218405c0a> (fix)
- <https://go.dev/issue/51112> (report)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24921> (web)

## Sources

- CVE List: [CVE-2022-24921](https://www.cve.org/CVERecord?id=CVE-2022-24921), CVE Terms of Use, modified 2024-08-03
- Go Vulnerability Database: [GO-2021-0347](https://pkg.go.dev/vuln/GO-2021-0347), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-24921](https://nvd.nist.gov/vuln/detail/CVE-2022-24921), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2022-24921](https://osv.dev/vulnerability/BIT-GOLANG-2022-24921), Apache-2.0, modified 2026-10-16

---

Page: https://cve.day/CVE-2022-24921 · Whole record: https://cve.day/CVE-2022-24921.json · Rebuilt by cve.day 2026-11-25T22:58:09.920Z
