CVE-2023-41338
published medium CVSS 3.1 · 5.3Vulnerability in Ctx.IsFromLocal() in gofiber
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gofiber | fiber | < 2.49.2 (affected) | GitHub_M · cna |
| gofiber | fiber | 0 to < 2.49.2 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-670 CWE-670: Always-Incorrect Control Flow Implementation
References
4Provider assertions
3GitHub_M · cna
Vulnerability in Ctx.IsFromLocal() in gofiber
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 25701ff0270a673d75ce4ff89485fa09a5771b25e93744dbf6d8e99b1ffb52fe
- Ingested
- 23 Sep 2026, 08:11:36 UTC
- Source record
- Official CVE record