CVE-2022-27664 — x/net
HIGHCVE-2022-27664 is a high-severity (CVSS 7.5) vulnerability in golang.org/x/net. A fix is available for golang.org/x/net — see the affected versions and patch details below.
golang.org/x/net/http2 Denial of Service vulnerability
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
golang.org/x/net🐹golang.org/x/net/http2Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
In net/http in Go before 1.18.6 and 1.19.x before 1.19.1, attackers can cause a denial of service because an HTTP/2 connection can hang during closing if shutdown were preempted by a fatal error.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | golang.org/x/net | all versions | 0.0.0-20220906165146-f3363e06e74cgo get golang.org/x/net@v0.0.0-20220906165146-f3363e06e74c |
| 🐹Go | golang.org/x/net/http2 | all versions | 0.0.0-20220906165146-f3363e06e74cgo get golang.org/x/net/http2@v0.0.0-20220906165146-f3363e06e74c |
Affected Products
fedorafedoraprojectgogolangDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for golang.org/x/net, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update golang.org/x/net to 0.0.0-20220906165146-f3363e06e74c or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-27664 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
The opportunity for a Denial of Service is limited to the golang runtime. In the case of OpenShift Container Platform, this would be restricted within each individual container. There are multiple layers of guide rails (Golang’s Garbage Collector; OpenShift’s resource constraints imposed at the container and cluster…
| Product | Fixed in | Advisory |
|---|---|---|
| OADP-1.1-RHEL-8 | oadp/oadp-velero-rhel8:1.1.1-20 | RHSA-2022:8634 |
| OpenShift Custom Metrics Autoscaler 2 | custom-metrics-autoscaler-tech-preview/custom-metrics-autoscaler-rhel8:2.8.2-143 | RHSA-2023:1042 |
| Openshift Serverless 1 on RHEL 8 | openshift-serverless-clients-0:1.6.1-1.el8 | RHSA-2023:0708 |
| OSSO-1.1-RHEL-8 | openshift-secondary-scheduler-operator/secondary-scheduler-operator-rhel8:v1.1-26 | RHSA-2023:0584 |
| Red Hat Ceph Storage 6.1 | rhceph/rhceph-6-dashboard-rhel9:6-75 | RHSA-2023:3642 |
| Red Hat Enterprise Linux 8 | git-lfs-0:2.13.3-3.el8_6 | RHSA-2022:7129 |
| Red Hat Enterprise Linux 8 | go-toolset:rhel8-8070020230116141618.ded9a3e2 | RHSA-2023:0446 |
| Red Hat Enterprise Linux 8 | container-tools:rhel8-8080020230321153727.0f77c1b7 | RHSA-2023:2758 |
Frequently Asked Questions
Is CVE-2022-27664 in your dependencies?
Find it across Go, including transitive dependencies.