{"id":"CVE-2022-30631","state":"PUBLISHED","title":"Stack exhaustion when reading certain archives in compress/gzip","description":"Uncontrolled recursion in Reader.Read in compress/gzip before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via an archive containing a large number of concatenated 0-length compressed files.","publishedAt":"2022-08-09T20:16:32.000Z","updatedAt":"2025-10-20T17:51:28.366Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Go","products":["Go standard library compress/gzip"],"affected":[{"vendor":"Go standard library","product":"compress/gzip","packageName":"compress/gzip","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.17.12","versionType":"semver"},{"version":"1.18.0-0","status":"affected","lessThan":"1.18.4","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"Reader.Read"}]}],"references":["https://go.dev/cl/417067","https://go.googlesource.com/go/+/b2b8872c876201eac2d0707276c6999ff3eb185e","https://go.dev/issue/53168","https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE","https://pkg.go.dev/vuln/GO-2022-0524"],"weaknesses":[],"ingestedAt":"2026-10-29T19:50:04.052Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/30xxx/CVE-2022-30631.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-30631","state":"PUBLISHED","datePublished":"2022-08-09T20:16:32.000Z","dateUpdated":"2025-10-20T17:51:28.366Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2022-05-12T00:00:00.000Z"},"containers":{"cna":{"title":"Stack exhaustion when reading certain archives in compress/gzip","descriptions":[{"lang":"en","value":"Uncontrolled recursion in Reader.Read in compress/gzip before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via an archive containing a large number of concatenated 0-length compressed files."}],"affected":[{"vendor":"Go standard library","product":"compress/gzip","packageName":"compress/gzip","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.17.12","versionType":"semver"},{"version":"1.18.0-0","status":"affected","lessThan":"1.18.4","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"Reader.Read"}]}],"references":[{"url":"https://go.dev/cl/417067"},{"url":"https://go.googlesource.com/go/+/b2b8872c876201eac2d0707276c6999ff3eb185e"},{"url":"https://go.dev/issue/53168"},{"url":"https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE"},{"url":"https://pkg.go.dev/vuln/GO-2022-0524"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-674: Uncontrolled Recursion"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2023-06-12T19:04:40.977Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://go.dev/cl/417067","tags":["x_transferred"]},{"url":"https://go.googlesource.com/go/+/b2b8872c876201eac2d0707276c6999ff3eb185e","tags":["x_transferred"]},{"url":"https://go.dev/issue/53168","tags":["x_transferred"]},{"url":"https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE","tags":["x_transferred"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0524","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T06:56:13.231Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-10-20T17:51:07.776953Z","id":"CVE-2022-30631","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-20T17:51:28.366Z"}}]}}}