{"id":"CVE-2022-24921","aliases":["CVE-2022-24921","GO-2021-0347","BIT-GOLANG-2022-24921"],"related":[],"kind":"vulnerability","state":"published","title":"Stack exhaustion when compiling deeply nested expressions in regexp","summary":"regexp.Compile in Go before 1.16.15 and 1.17.x before 1.17.8 allows stack exhaustion via a deeply nested expression.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"regexp.Compile in Go before 1.16.15 and 1.17.x before 1.17.8 allows stack exhaustion via a deeply nested expression.","source":"cvelist"},{"lang":"en","text":"On 64-bit platforms, an extremely deeply nested expression can cause regexp.Compile to cause goroutine stack exhaustion, forcing the program to exit. Note this applies to very large expressions, on the order of 2MB.","format":"markdown","source":"go"},{"lang":"es","text":"El archivo regexp.Compile en Go versiones anteriores a 1.16.15 y versiones 1.17.x anteriores a 1.17.8, permite un agotamiento de la pila por medio de una expresión profundamente anidada","source":"nvd"}],"published":"2022-03-05T00:00:00.000Z","modified":"2026-10-16T09:45:09.534Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.16.15"},{"type":"semver","introduced":"1.17.0-0","status":"affected","fixed":"1.17.8"}],"ecosystem":"Go","package":"stdlib","purl":"pkg:golang/stdlib","source":"go"},{"ranges":[{"status":"affected","fixed":"1.16.15"},{"status":"affected","introduced":"1.17","fixed":"1.17.8"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"astra_trident","cpe":"cpe:2.3:a:netapp:astra_trident:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.16.15"},{"type":"semver","introduced":"1.17.0","status":"affected","fixed":"1.17.8"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://groups.google.com/g/golang-announce/c/RP1hfrBYVuk","tags":["advisory","issue-tracking","mailing-list","release-notes","third-party-advisory","web","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20220325-0010/","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/04/msg00017.html","tags":["advisory","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/04/msg00018.html","tags":["advisory","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202208-02","tags":["advisory","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-744259.pdf","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://go.dev/cl/384616","tags":["fix"],"sources":["go"]},{"url":"https://go.googlesource.com/go/+/452f24ae94f38afa3704d4361d91d51218405c0a","tags":["fix"],"sources":["go"]},{"url":"https://go.dev/issue/51112","tags":["report"],"sources":["go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24921","tags":["web"],"sources":["bitnami"]}],"credits":["Juho Nurminen"],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24921","url":"https://www.cve.org/CVERecord?id=CVE-2022-24921","licence":"CVE Terms of Use","modified":"2024-08-03T04:29:01.519Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2021-0347","url":"https://pkg.go.dev/vuln/GO-2021-0347","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24921","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24921","licence":"Public domain","modified":"2026-06-17T04:32:47.957Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2022-24921","url":"https://osv.dev/vulnerability/BIT-GOLANG-2022-24921","licence":"Apache-2.0","modified":"2026-10-16T09:45:09.534Z"}],"updatedAt":"2026-11-25T22:58:09.920Z","epss":{"score":0.03255,"percentile":0.88685,"date":"2026-12-01T12:00:22.000Z"}}