HighFix available
golang — security advisory
regexp.Compile in Go before 1.16.15 and 1.17.x before 1.17.8 allows stack exhaustion via a deeply nested expression.
- Products
- golang
- Affected versions
- Not specified
- Fixed versions
- 1.16.15, 1.17.8
- CVEs
- CVE-2022-24921
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 19:49 UTC · Revision 1
Source evidence
regexp.Compile in Go before 1.16.15 and 1.17.x before 1.17.8 allows stack exhaustion via a deeply nested expression.
osv:BIT-golang-2022-24921
golang
Fixed versions: 1.16.15, 1.17.8
Complete source record
{
"id": "372554e7106e23ce2399fa1fb25f96182b5948db0c0fee8226f2e6bc88acc332",
"url": "https://osv.dev/vulnerability/BIT-golang-2022-24921",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "BIT-golang-2022-24921",
"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.",
"evidence": "osv:BIT-golang-2022-24921",
"products": [
{
"name": {
"value": "golang",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.16.15",
"evidence": "/affected/0/ranges"
},
{
"value": "1.17.8",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "BIT-golang-2022-24921",
"aliases": [
"BIT-golang-2022-24921",
"CVE-2022-24921",
"GO-2021-0347"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.16.15"
},
{
"introduced": "1.17.0"
},
{
"fixed": "1.17.8"
}
]
}
],
"package": {
"name": "golang",
"purl": "pkg:bitnami/golang",
"ecosystem": "Bitnami"
},
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"database_specific": {
"source": "https://github.com/bitnami/vulndb/tree/main/data/golang/BIT-golang-2022-24921.json"
}
}
],
"modified": "2026-10-16T09:45:09.534223340Z",
"provider": "osv",
"references": [
"https://groups.google.com/g/golang-announce/c/RP1hfrBYVuk",
"https://lists.debian.org/debian-lts-announce/2022/04/msg00017.html",
"https://lists.debian.org/debian-lts-announce/2022/04/msg00018.html",
"https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html",
"https://security.gentoo.org/glsa/202208-02",
"https://security.netapp.com/advisory/ntap-20220325-0010/",
"https://nvd.nist.gov/vuln/detail/CVE-2022-24921"
],
"provider_metadata": {
"cpes": [
"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"
],
"severity": "High"
}
},
"related_cves": [
{
"value": "CVE-2022-24921",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 338182,
"published_at": "2024-03-06T11:02:09.607+00:00"
}