CVE-2023-41338
MEDIUM EPSS 40.8%
Published Sep 8, 20232y ago · Modified Jun 17, 20262w ago
5.3 CVSS 3.1
Published Sep 8, 2023 2y ago
Last Modified Jun 17, 2026 2w ago
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.
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality Low
Integrity None
Availability None
Threat Intelligence
EPSS Exploit Probability
40.8% percentile
Exploit & Patch Status
No Known Exploit
Patch Available
Weaknesses 1
CWE-670
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| gofiber | fiber | * | <2.49.2 |
References 4
- developer.mozilla.org https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For
- docs.gofiber.io https://docs.gofiber.io/api/ctx#isfromlocal
- github.com https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc
- github.com https://github.com/gofiber/fiber/security/advisories/GHSA-3q5p-3558-364f
Remediation
- github.com https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc