PoC Monitor
← All CVEs
CVE-2025-54123published 10 Sep 2025 18:41 UTCData: JSON · API

SpectoLabs Hoverfly

Hoverfly vulnerable to remote code execution at `/api/v2/hoverfly/middleware` endpoint due to insecure middleware implementation

Hoverfly is an open source API simulation tool. In versions 1.11.3 and prior, the middleware functionality in Hoverfly is vulnerable to command injection vulnerability at `/api/v2/hoverfly/middleware` endpoint due to insufficient validation and sanitization in user input. The vulnerability exists in the middleware management API endpoint `/api/v2/hoverfly/middleware`. This issue is born due to combination of three code level flaws: Insufficient Input Validation in middleware.go line 94-96; Unsafe Command Execution in local_middleware.go line 14-19; and Immediate Execution During Testing in hoverfly_service.go line 173. This allows an attacker to gain remote code execution (RCE) on any system running the vulnerable Hoverfly service. Since the input is directly passed to system commands without proper checks, an attacker can upload a malicious payload or directly execute arbitrary commands (including reverse shells) on the host server with the privileges of the Hoverfly process. Commit 17e60a9bc78826deb4b782dca1c1abd3dbe60d40 in version 1.12.0 disables the set middleware API by default, and subsequent changes to documentation make users aware of the security changes of exposing the set middleware API.

First public PoC 2.5 daysafter publication · 13 Sep 2025 · nuclei template
Public PoCs65 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CNA · CWE-20
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

SpectoLabs hoverfly
  • <= 1.11.3
github.com/SpectoLabs/hoverfly (Go)
  • <= 1.11.3

from GitHub Security Advisory GHSA-r4h8-hfp2-ggmf

Mitigation

The record names no fix. Check the vendor advisory below.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published10 Sep 2025 · t = 0First public PoC13 Sep 2025 · t+2.5d

First public PoC 2.5 days after publication; not in CISA KEV. First PoC: nuclei template: Hoverfly <= 1.11.3 - Remote Code Execution (nuclei template, 13 Sep 2025).

PoC repositories

Found on GitHub.

5 PoCs · 1 suspicious or fake

PoCs 5
RepositoryCreatedStarsAssessment
tristanqtn/CVE-2025-54123 29 Mar 2026 +200 d 0 PoC
f4dee-backup/CVE-2025-54123 30 Mar 2026 +201 d 0 PoC
davidzzo23/CVE-2025-54123 31 Mar 2026 +202 d 0 PoC
0x00phantom-hat/Hoverfly-1.11.3-RCE-CVE-2025-54123-Exploit 27 May 2026 +259 d 1 PoC
0xk4rth1/CVE-2025-54123 18 Jun 2026 +280 d 2 PoC
Suspicious or fake 1
RepositoryCreatedStarsAssessment
kasem545/CVE-2025-54123-Poc 28 Mar 2026 +199 d 7 Fake

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Hoverfly <= 1.11.3 - Remote Code Execution13 Sep 202514 Nov 2026

PoC characteristics

What to hunt for in your logs · from 5 PoC repos

POST /api/token-auth

Body markers
"username" "password" "username":"$username" "password":"$password" in application/json
Ports
8888
Seen in
2 repos: 0xk4rth1/CVE-2025-54123, f4dee-backup/CVE-2025-54123
Evidence
0xk4rth1/CVE-2025-54123/CVE-2025-54123.py:16 f4dee-backup/CVE-2025-54123/CVE-2025-54123.sh:82

GET /api/v2/hoverfly/version

Key headers
Authorization: Bearer $token_auth
Ports
8888
Seen in
1 repo: f4dee-backup/CVE-2025-54123
Evidence
f4dee-backup/CVE-2025-54123/CVE-2025-54123.sh:95

PUT /api/v2/hoverfly/middleware

Key headers
Authorization: Bearer {var}
Body markers
"binary":"/bin/bash" "script" in application/json
Ports
8888
Seen in
1 repo: 0xk4rth1/CVE-2025-54123
Evidence
0xk4rth1/CVE-2025-54123/CVE-2025-54123.py:41

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

POST /api/token-auth
(?i)^/api/token-auth(?:[?#].*)?$
GET /api/v2/hoverfly
(?i)^/api/v2/hoverfly(?:[?#].*)?$
GET /api/v2/hoverfly/version
(?i)^/api/v2/hoverfly/version(?:[?#].*)?$
PUT /api/v2/hoverfly/middleware
(?i)^/api/v2/hoverfly/middleware(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /api/token-auth
alert http any any -> $HOME_NET [8888] (msg:"GG PoC-Monitor CVE-2025-54123 SpectoLabs hoverfly exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/token-auth"; http.request_body; content:"|22|username|22|"; http.request_body; content:"|22|password|22|"; http.request_body; content:"|22|username|22|:|22|$username|22|"; http.request_body; content:"|22|password|22|:|22|$password|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-54123; classtype:web-application-attack; sid:9032465; rev:1;)
GET /api/v2/hoverfly
alert http any any -> $HOME_NET [8080,8888] (msg:"GG PoC-Monitor CVE-2025-54123 SpectoLabs hoverfly exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v2/hoverfly"; reference:url,poc.griffinguard.io/cve/CVE-2025-54123; classtype:web-application-attack; sid:9257907; rev:1;)
GET /api/v2/hoverfly/version
alert http any any -> $HOME_NET [8888] (msg:"GG PoC-Monitor CVE-2025-54123 SpectoLabs hoverfly exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v2/hoverfly/version"; http.header; content:"Authorization: Bearer $token_auth"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2025-54123; classtype:web-application-attack; sid:9366024; rev:1;)
PUT /api/v2/hoverfly/middleware
alert http any any -> $HOME_NET [8888] (msg:"GG PoC-Monitor CVE-2025-54123 SpectoLabs hoverfly exploit attempt"; flow:established,to_server; http.method; content:"PUT"; http.uri; content:"/api/v2/hoverfly/middleware"; http.header; content:"Authorization: Bearer "; nocase; http.request_body; content:"|22|binary|22|:|22|/bin/bash|22|"; http.request_body; content:"|22|script|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-54123; classtype:web-application-attack; sid:9654305; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

POST /api/token-auth
title: SpectoLabs hoverfly exploit attempt (CVE-2025-54123)
id: gg-pocmon-cve-2025-54123-9032465
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-54123. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2025-54123
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/api/token-auth'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2025.54123
GET /api/v2/hoverfly
title: SpectoLabs hoverfly exploit attempt (CVE-2025-54123)
id: gg-pocmon-cve-2025-54123-9257907
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-54123. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2025-54123
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/api/v2/hoverfly'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2025.54123
GET /api/v2/hoverfly/version
title: SpectoLabs hoverfly exploit attempt (CVE-2025-54123)
id: gg-pocmon-cve-2025-54123-9366024
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-54123. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2025-54123
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/api/v2/hoverfly/version'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2025.54123
PUT /api/v2/hoverfly/middleware
title: SpectoLabs hoverfly exploit attempt (CVE-2025-54123)
id: gg-pocmon-cve-2025-54123-9654305
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-54123. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2025-54123
logsource:
  category: webserver
detection:
  selection:
    cs-method: PUT
    cs-uri-stem|contains|all:
      - '/api/v2/hoverfly/middleware'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2025.54123