ZeroHour

CVE-2026-50013

niche

Unauthenticated Remote DoS in Hoverfly Diff Mode via Concurrent Map Write Race

CVSS 3.1
7.5 high
EPSS
Published
()
Modified
AI analysis

Hoverfly, an open source API simulation tool, contains a data race in its Diff mode: the AddDiff() function writes to the shared responsesDiff map without any mutex or other synchronization. Because proxies normally handle many requests concurrently, multiple simultaneous proxy requests trigger concurrent map writes, which causes Go's runtime to raise a fatal 'concurrent map read and map write' error that immediately kills the entire Hoverfly process. An unauthenticated attacker who can reach the proxy can trivially crash it by sending several simultaneous requests, and can repeat this at will, gaining a remote denial of service (no confidentiality or integrity impact). Any deployment of Hoverfly prior to version 1.12.8 that runs in Diff mode and accepts requests from untrusted or semi-trusted clients is affected, though the tool is typically used in development and CI/test environments rather than internet-facing production. No public proof-of-concept, KEV listing, or confirmed in-the-wild exploitation is known; version 1.12.8 contains the fix.

What to do: Upgrade to Hoverfly 1.12.8 or later, which fixes the race. If upgrading is not immediately possible, avoid running Diff mode on any Hoverfly instance reachable by untrusted clients, restrict network access to the proxy (e.g., bind it to localhost or trusted CI networks), and consider automatic process restarts to limit outage duration. Audit your environments for Hoverfly processes running in Diff mode and confirm which versions are deployed.

Affected
Hoverfly (SpectoLabs) HoverflyAll versions prior to 1.12.8 (when running in Diff mode)
Estimated exposure
nicheLikely tens of thousands of installations at most, with only a small fraction running Diff mode and reachable by untrusted clients — Hoverfly is a niche developer/testing tool typically deployed inside development or CI environments rather than exposed to the internet, and the flaw only manifests in the less commonly used Diff mode; no public install counts were…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Hoverfly is an open source API simulation tool. Prior to version 1.12.8, when Hoverfly is running in Diff mode, the `AddDiff()` function writes to the shared `responsesDiff` map without any synchronization (no mutex). When multiple proxy requests are processed concurrently (the normal case for any proxy), the concurrent map writes trigger Go's built-in race detector which causes a `fatal error: concurrent map read and map write`, immediately killing the entire Hoverfly process. This is trivially exploitable by sending multiple simultaneous requests. Version 1.12.8 patches the issue.

Weakness
CWE-362, CWE-820
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

In the news

No ingested article mentions this CVE yet.