Skip to main content
No exploitation reportedFix available

CVE-2022-30631

No exploitation reported by the sources we read.

  • Published2022-08-10
  • Fixed in1.18.4 · 1.17.12
  • WeaknessCWE-674

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-08-1020:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-10-23 18:48 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2022-30631?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2022-30631?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD
Go
BranchAffectedFixed in
1.18≥ 1.18.0, < 1.18.41.18.4
1.17< 1.17.121.17.12

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Vendor advisories

  • CVE-2022-30631 Red Hat Product Security4,245 products fixed · 91 known affected

    golang: compress/gzip: stack exhaustion in Reader.Read

    migration-toolkit-virtualization/mtv-controller-rhel9 as a component of Migration Toolkit for Virtualization · migration-toolkit-virtualization/mtv-must-gather-api-rhel8 as a component of Migration Toolkit for Virtualization · workload-availability/node-healthcheck-rhel8-operator as a component of Node HealthCheck Operator · +88 more

  • RHSA-2024:2180 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: runc security update

  • RHSA-2023:3642 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Ceph Storage 6.1 Container security and bug fix update

  • RHSA-2023:2802 Red Hat Product Security267 products fixed

    Red Hat Security Advisory: container-tools:4.0 security and bug fix update

  • RHSA-2023:2758 Red Hat Product Security261 products fixed

    Red Hat Security Advisory: container-tools:rhel8 security, bug fix, and enhancement update

  • RHSA-2023:1529 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Service Telemetry Framework 1.5 security update

48 more advisories

Full record on NVD

Fix

  1. Update Go to 1.18.4 · 1.17.12
  2. Vendor fix Red Hat Product Security RHSA-2024:2180 · 13 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2023:3642 · 3 productsFor details on how to apply this update, see Upgrade a Red Hat Ceph Storage cluster using cephadm in the Red Hat Storage Ceph Upgrade Guide.(https://access.redhat.com/documentation/en-us/red_hat_ceph_storage)
  4. Vendor fix Red Hat Product Security RHSA-2023:1529 · 1 productThe Service Telemetry Framework container image provided by this update can be downloaded from the Red Hat Container Registry at registry.access.redhat.com. Installation instructions for your platform are available at Red Hat Container Catalog (see References). Dockerfiles and scripts should be am…
  5. Vendor fix Red Hat Product Security RHSA-2023:1042 · 2 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  6. Vendor fix Red Hat Product Security RHSA-2023:0727 · 296 productsFor OpenShift Container Platform 4.12 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.12/release_notes/ocp-4-1…
  7. Vendor fix Red Hat Product Security RHSA-2023:0408 · 1 productBefore applying this update, you must apply all previously released errata relevant to your system. To apply this update, refer to: https://access.redhat.com/articles/11258

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub

Sources

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2022-08-10
Last Modified
2026-06-17
NVD status
Modified

Frequently asked questions

What is CVE-2022-30631?

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.

Is CVE-2022-30631 actively exploited?

Active exploitation of CVE-2022-30631 has not been confirmed. Its EPSS score was 2.1% on 2026-10-22, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-30631?

CVE-2022-30631 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running Go? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month