Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/spectolabs/hoverfly
  4. ›
  5. CVE-2025-54123

CVE-2025-54123: Hoverfly is vulnerable to Remote Code Execution through an insecure middleware implementation

September 10, 2025 (updated September 13, 2025)

It has been discovered that the middleware functionality in Hoverfly is vulnerable to command injection through its /api/v2/hoverfly/middleware endpoint due to insufficient validation and sanitization in user input.

References

  • github.com/SpectoLabs/hoverfly
  • github.com/SpectoLabs/hoverfly/blob/master/core/hoverfly_service.go
  • github.com/SpectoLabs/hoverfly/blob/master/core/middleware/local_middleware.go
  • github.com/SpectoLabs/hoverfly/blob/master/core/middleware/middleware.go
  • github.com/SpectoLabs/hoverfly/commit/17e60a9bc78826deb4b782dca1c1abd3dbe60d40
  • github.com/SpectoLabs/hoverfly/commit/a9d4da7bd7269651f54542ab790d0c613d568d3e
  • github.com/SpectoLabs/hoverfly/pull/1203
  • github.com/SpectoLabs/hoverfly/security/advisories/GHSA-r4h8-hfp2-ggmf
  • github.com/advisories/GHSA-r4h8-hfp2-ggmf
  • nvd.nist.gov/vuln/detail/CVE-2025-54123

Code Behaviors & Features

Detect and mitigate CVE-2025-54123 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.11.3

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

go/github.com/spectolabs/hoverfly/CVE-2025-54123.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 20 Sep 2025 00:20:55 +0000.