Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/fabiolb/fabio
  4. ›
  5. CVE-2025-48865

CVE-2025-48865: Fabio allows HTTP clients to manipulate custom headers it adds

May 29, 2025 (updated May 30, 2025)

Fabio allows clients to remove X-Forwarded headers (except X-Forwarded-For) due to a vulnerability in how it processes hop-by-hop headers.

Fabio adds HTTP headers like X-Forwarded-Host and X-Forwarded-Port when routing requests to backend applications. Since the receiving application should trust these headers, allowing HTTP clients to remove or modify them creates potential security vulnerabilities.

However, it was found that some of these custom headers can indeed be removed and, in certain cases, manipulated. The attack relies on the behavior that headers can be defined as hop-by-hop via the HTTP Connection header. By setting the following connection header, the X-Forwarded-Host header can, for example, be removed:

Connection: close, X-Forwarded-Host

Similar critical vulnerabilities have been identified in other web servers and proxies, including CVE-2022-31813 in Apache HTTP Server and CVE-2024-45410 in Traefik.

References

  • github.com/advisories/GHSA-q7p4-7xjv-j3wf
  • github.com/fabiolb/fabio
  • github.com/fabiolb/fabio/commit/fdaf1e966162e9dd3b347ffdd0647b39dc71a1a3
  • github.com/fabiolb/fabio/releases/tag/v1.6.6
  • github.com/fabiolb/fabio/security/advisories/GHSA-q7p4-7xjv-j3wf
  • nvd.nist.gov/vuln/detail/CVE-2025-48865

Code Behaviors & Features

Detect and mitigate CVE-2025-48865 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 before 1.6.6

Fixed versions

  • 1.6.6

Solution

Upgrade to version 1.6.6 or above.

Impact 9.1 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity
  • CWE-348: Use of Less Trusted Source

Source file

go/github.com/fabiolb/fabio/CVE-2025-48865.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 19 Aug 2025 12:18:27 +0000.