# CVE-2023-41338: Vulnerability in Ctx.IsFromLocal() in gofiber

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-02)
- Published: 2023-09-08T13:27:21.000Z
- Modified: 2026-09-10T03:50:03.184Z
- Also known as: GHSA-3q5p-3558-364f, GO-2023-2052
- Weaknesses: CWE-670
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- gofiber fiber: < 2.49.2; before 2.49.2
- github.com/gofiber/fiber (Go): up to 1.14.6
- github.com/gofiber/fiber/v2 (Go): before 2.49.2; before 2.49.2-0.20230906112033-b8c9ede6efa2

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/gofiber/fiber/security/advisories/GHSA-3q5p-3558-364f> (advisory, vendor-advisory, web)
- <https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc> (fix, patch, web)
- <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For> (technical-description, web)
- <https://docs.gofiber.io/api/ctx#isfromlocal> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-41338> (advisory)
- <https://github.com/gofiber/fiber> (package)

## Sources

- CVE List: [CVE-2023-41338](https://www.cve.org/CVERecord?id=CVE-2023-41338), CVE Terms of Use, modified 2024-09-26
- GitHub Advisory Database: [GHSA-3q5p-3558-364f](https://github.com/advisories/GHSA-3q5p-3558-364f), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-2052](https://pkg.go.dev/vuln/GO-2023-2052), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2023-41338](https://nvd.nist.gov/vuln/detail/CVE-2023-41338), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-41338 · Whole record: https://cve.day/CVE-2023-41338.json · Rebuilt by cve.day 2026-11-25T22:58:27.769Z
