Live threats

All CVEs / Gofiber

CVE-2023-41338Gofiber Fiber

Medium 5.3 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Fiber.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gofiberfiber< 2.49.2

Official sources

References

Links published by the sources. Open them with care.