CVE-2022-24921
HIGH7.5EPSS 0.02%Stack exhaustion when compiling deeply nested expressions in regexp
Published: 5/23/2022Modified: 4/28/2026
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.
Affected packages (3)
- Bitnami/golangfrom 0, < 1.16.15, >= 1.17.0, < 1.17.8
- Debian/golang-1.15from 0, < 1.15.15-1~deb11u4
- Go/stdlibfrom 0, < 1.16.15, >= 1.17.0-0, < 1.17.8
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (12)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-24921
- PATCHhttps://go.dev/cl/384616
- PATCHhttps://go.googlesource.com/go/+/452f24ae94f38afa3704d4361d91d51218405c0a
- REPORThttps://go.dev/issue/51112
- WEBhttps://cert-portal.siemens.com/productcert/pdf/ssa-744259.pdf
- WEBhttps://groups.google.com/g/golang-announce/c/RP1hfrBYVuk
- WEBhttps://lists.debian.org/debian-lts-announce/2022/04/msg00017.html
- WEBhttps://lists.debian.org/debian-lts-announce/2022/04/msg00018.html
- WEBhttps://lists.debian.org/debian-lts-announce/2023/04/msg00021.html
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2022-24921
- WEBhttps://security.gentoo.org/glsa/202208-02
- WEBhttps://security.netapp.com/advisory/ntap-20220325-0010/