5.3

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

Modified
AliasesGHSA-3q5p-3558-364fGO-2023-2052
Published 08-09-2023Last modified 26-09-2024

Vulnerability summary

CVE-2023-41338 is a medium (CVSS 5.3) vulnerability in gofiber fiber. EPSS estimates a 0.66% chance of exploitation in the next 30 days, higher than 50.7% of scored vulnerabilities.

Overall risk
21/100
0100
Low · default modelHow is this calculated?
CVSS score
5.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.66%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 08-09-2023
    PublishedVulnerability first disclosed.
  2. 26-09-2024
    Last modifiedVulnerability information updated.

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 metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.66%

Chance of exploitation in the next 30 days

Percentile

51%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.66% on 22-09-2026

22-09-202622-10-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Github.com/gofiber1 product
  • fiber≤ 1.14.6
Github.com/gofiber/fiber1 product
  • v2< 2.49.2 | < 2.49.2-0.20230906112033-b8c9ede6efa2
Gofiber1 product

3 vendors · 3 products

References

6 links