CVE-2026-45045 Fiber: X-Real-IP Spoofing via Header.Add() in BalancerForward
MediumCVSS 5.3
EPSS 0.46%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- Ubuntu
Description
Fiber is an Express inspired web framework written in Go. Prior to 3.3.0 and 2.52.14, the BalancerForward proxy helper in middleware/proxy/proxy.go uses Header.Add() instead of Header.Set() when injecting X-Real-IP, allowing an attacker-supplied first X-Real-IP value to be forwarded to upstream servers for logging, rate limiting, and access control. This issue is fixed in version 3.3.0 and 2.52.14.
Upgrade path
4 packages: 2 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/golang-github-gofiber-fiber(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-gofiber-fiber-v2(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| gofiber github.com/gofiber/fiber | < 2.52.14; = < 2.52.14; = >= 3.0.0-beta.2, < 3.3.0; >= 3.0.0, < 3.3.0 | 2.52.14, 3.3.0 | Fixed |
| gofiber github.com/gofiber/fiber(Go) | < 2.52.14; < 3.3.0; <= 2.52.13; <= 3.2.0 | 2.52.14, 3.3.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gofiber github.com/gofiber/fiber | = >= 3.0.0-beta.2, < 3.3.0 | No fix listed |
| gofiber github.com/gofiber/fiber | = < 2.52.14 | No fix listed |
| gofiber github.com/gofiber/fiber(Go) | < 3.3.0 | 3.3.0 |
| gofiber github.com/gofiber/fiber(Go) | < 2.52.14 | 2.52.14 |
| gofiber github.com/gofiber/fiber(Go) | <= 3.2.0 | No fix listed |
| gofiber github.com/gofiber/fiber(Go) | <= 2.52.13 | No fix listed |
| ubuntu/golang-github-gofiber-fiber(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/golang-github-gofiber-fiber-v2(Ubuntu:26.10) | All versions | No fix listed |
| gofiber github.com/gofiber/fiber | < 2.52.14 | 2.52.14 |
| gofiber github.com/gofiber/fiber | >= 3.0.0, < 3.3.0 | 3.3.0 |
References
- https://github.com/gofiber/fiber/security/advisories/GHSA-gcfq-8gqf-4876 exploit vendor-advisory
- https://github.com/gofiber/fiber/pull/4260 issue-tracking patch
- https://github.com/gofiber/fiber/pull/4495 issue-tracking patch
- https://github.com/gofiber/fiber/commit/1403cc8292da3220e9316960b4030cc722a0f396 patch
- https://github.com/gofiber/fiber/commit/33c9501288ab47a429c8b5e701493f0c3c0af37d patch
- https://github.com/gofiber/fiber/releases/tag/v2.52.14 release-notes
- https://github.com/gofiber/fiber/releases/tag/v3.3.0 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org