CVE-2019-9514 — x/net
HIGHCVE-2019-9514 is a high-severity (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in golang.org/x/net. EPSS puts its 30-day exploitation probability at 82.8% (100th percentile). A fix is available for golang.org/x/net — see the affected versions and patch details below.
golang.org/x/net/http vulnerable to a reset flood
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/netReal-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
Some HTTP/2 implementations are vulnerable to a reset flood, potentially leading to a denial of service. Servers that accept direct connections from untrusted clients could be remotely made to allocate an unlimited amount of memory, until the program crashes. The attacker opens a number of streams and sends an invalid request over each stream that should solicit a stream of RST_STREAM frames from the peer. Depending on how the peer queues the RST_STREAM frames, this can consume excess memory, CPU, or both.
Specific Go Packages Affected
golang.org/x/net/http2
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | golang.org/x/net | all versions | 0.0.0-20190813141303-74dc4d7220e7go get golang.org/x/net@v0.0.0-20190813141303-74dc4d7220e7 |
Affected Products
traffic serverapacheswiftnioappleubuntu linuxcanonicaldebian linuxdebianbig-ip local traffic managerf5fedorafedoraprojectDetection & 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-20190813141303-74dc4d7220e7 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2019-9514 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 golang package in Red Hat OpenStack Platform 9 Operational Tools will not be updated for this flaw because it is in technical preview and is retiring as of 24.Aug.2019. This issue did not affect the versions of grafana(embeds golang) as shipped with Red Hat Ceph Storage 2 and Red Hat Gluster Storage 3 as they did…
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat AMQ | see advisory | RHSA-2020:0922 |
| Red Hat AMQ 7.4.3 | see advisory | RHSA-2020:1445 |
| Red Hat Data Grid 7.3.3 | netty | RHSA-2020:0727 |
| Red Hat Decision Manager 7 | netty | RHSA-2020:3196 |
| Red Hat Developer Tools | go-toolset-1.11-0:1.11.13-1.el7 | RHSA-2019:2682 |
| Red Hat Enterprise Linux 7 Extras | containernetworking-plugins-0:0.8.1-4.el7_7 | RHSA-2020:0406 |
| Red Hat Enterprise Linux 8 | go-toolset:rhel8-8000120190828225436.14bc675c | RHSA-2019:2726 |
| Red Hat Enterprise Linux 8 | nodejs:10-8000020190911085529.f8e95b4e | RHSA-2019:2925 |
Frequently Asked Questions
Is CVE-2019-9514 in your dependencies?
Find it across Go, including transitive dependencies.