CVE-2023-41338Gofiber Fiber
Medium 5.3 No auth needed
Follow: this CVE · Gofiber · Gofiber Fiber We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 51
- Auth required
- No
- Published
- Sep 8, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-670
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
Fiber is an Express inspired web framework built in the go language. Versions of gofiber prior to 2.49.2 did not properly restrict access to localhost. This issue impacts users of our project who rely on the `ctx.IsFromLocal` method to restrict access to localhost requests. If exploited, it could allow unauthorized access to resources intended only for localhost. Setting `X-Forwarded-For: 127.0.0.1` in a request from a foreign host, will result in true for `ctx.IsFromLocal`. Access is limited to the scope of the affected process. This issue has been patched in version `2.49.2` with commit `b8c9ede6`. Users are advised to upgrade. There are no known workarounds to remediate this vulnerability without upgrading to the patched version.
What to do
- Apply the vendor's security update for Fiber.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/gofiber/fiber |
≤ 1.14.6 |
no fixed version | — |
| Go | github.com/gofiber/fiber/v2 |
< 2.49.2 |
2.49.2 |
go get github.com/gofiber/fiber/v2@v2.49.2 |
| Go | github.com/gofiber/fiber/v2 |
< 2.49.2-0.20230906112033-b8c9ede6efa2 |
2.49.2-0.20230906112033-b8c9ede6efa2 |
go get github.com/gofiber/fiber/v2@v2.49.2-0.20230906112033-b8c9ede6efa2 |
Per OSV / GitHub Advisories (GHSA-3q5p-3558-364f, GO-2023-2052). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gofiber | fiber | < 2.49.2 |
Official sources
References
Links published by the sources. Open them with care.
- developer.mozilla.org Technical Description
- docs.gofiber.io Product
- github.com Patch
- github.com Vendor Advisory