{"id":"GO-2023-2052","revision":null,"records":[{"revision":"f33616c34f8643788d02c4e285860f3d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2023-41338","aliases":[],"title":"Vulnerability in Ctx.IsFromLocal() in gofiber","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. ","state":0,"publishedAt":"2023-09-08T18:17:18.044+00:00","modifiedAt":"2024-09-26T14:05:03.642+00:00","affected":[{"ecosystem":"Vendor product","name":"fiber","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"gofiber\",\n                    \"product\": \"fiber\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.49.2\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-3q5p-3558-364f","https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc","https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For","https://docs.gofiber.io/api/ctx#isfromlocal"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2023-41338","license":"CVE Program Terms of Use","key":"cve-program:CVE-2023-41338","identifiers":["CVE-2023-41338"]},"retained":false,"historicalAffected":[]},{"revision":"d91f24a8679f4ed6aa508f05527e4731","observedAt":"2026-11-15T00:32:38.536+00:00","statement":{"source":"euvd","id":"EUVD-2023-2407","aliases":["CVE-2023-41338","GHSA-3q5p-3558-364f"],"title":"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 rest…","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. ","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"severity":null}],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-3q5p-3558-364f","https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc","https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For","https://docs.gofiber.io/api/ctx#isfromlocal"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-2407","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Sep 8, 2023, 6:17:18 PM","dateUpdated":"Sep 26, 2024, 2:05:03 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2023-2407","identifiers":["EUVD-2023-2407","CVE-2023-41338","GHSA-3q5p-3558-364f"]},"retained":false,"historicalAffected":[]},{"revision":"415713fc0dc9446799927747aaef81d9","observedAt":"2026-10-24T22:17:27.792+00:00","statement":{"source":"nvd","id":"CVE-2023-41338","aliases":[],"title":"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 rest…","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. ","state":0,"publishedAt":"2023-09-08T19:15:43.977+00:00","modifiedAt":"2026-06-17T06:21:51.73+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"severity":"MEDIUM"}],"references":["https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For","https://docs.gofiber.io/api/ctx#isfromlocal","https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc","https://github.com/gofiber/fiber/security/advisories/GHSA-3q5p-3558-364f"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2023-41338","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-670"],"productCriteria":["cpe:2.3:a:gofiber:fiber:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2023-09-08T19:15:43.977","lastModified":"2026-06-17T06:21:51.730"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2023-41338","identifiers":["CVE-2023-41338"]},"retained":false,"historicalAffected":[]},{"revision":"5db841acbca34ec2b82b24e3f759b19b","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-3q5p-3558-364f","aliases":["CVE-2023-41338","GO-2023-2052"],"title":"Fiber unauthorized access vulnerability in `ctx.IsFromLocal()`","description":"### Impact\nThis vulnerability can be categorized as a security misconfiguration. It impacts users of our project who rely on the [ctx.IsFromLocal()](https://docs.gofiber.io/api/ctx#isfromlocal) method to restrict access to localhost requests. If exploited, it could allow unauthorized access to resources intended only for localhost.\n\nIn it's implementation it uses c.IPs():\n\n```go\n// IPs returns a string slice of IP addresses specified in the X-Forwarded-For request header.\n// When IP validation is enabled, only valid IPs are returned.\nfunc (c *Ctx) IPs() []string {\n    return c.extractIPsFromHeader(HeaderXForwardedFor)\n}\n```\n\nThereby, setting `X-Forwarded-For: 127.0.0.1` in a request from a foreign host, will result in true for [ctx.IsFromLocal()](https://docs.gofiber.io/api/ctx#isfromlocal) \n\n### Patches\nThis issue has been patched in `v2.49.2` with commit [b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc](https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc)\n\n### Workarounds\nCurrently, there are no known workarounds to remediate this vulnerability without upgrading to the patched version. We strongly advise users to apply the patch as soon as it is released.\n\n### References\nFor further information and context regarding this security issue, please refer to the following resources:\n\n- [Mozilla Developer Network - X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For)\n\n","state":0,"publishedAt":"2023-09-08T13:27:21+00:00","modifiedAt":"2026-09-10T03:50:03.1848786+00:00","affected":[{"ecosystem":"Go","name":"github.com/gofiber/fiber","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"1.14.6"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.49.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-3q5p-3558-364f","https://nvd.nist.gov/vuln/detail/CVE-2023-41338","https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc","https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For","https://docs.gofiber.io/api/ctx#isfromlocal","https://github.com/gofiber/fiber"],"sourceUrl":"https://github.com/advisories/GHSA-3q5p-3558-364f","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-3q5p-3558-364f","identifiers":["GHSA-3q5p-3558-364f","CVE-2023-41338","GO-2023-2052"]},"retained":false,"historicalAffected":[]},{"revision":"1ed4524ecd18429e9dea351abea7ad6c","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2023-2052","aliases":["CVE-2023-41338","GHSA-3q5p-3558-364f"],"title":"IsFromLocal local address check can be circumvented in github.com/gofiber/fiber/v2","description":"The Ctx.IsFromLocal function can incorrectly report a request as being sent from localhost when the request contains an X-Forwarded-For header containing a localhost IP address.","state":0,"publishedAt":"2023-09-12T17:31:22+00:00","modifiedAt":"2024-05-20T16:03:47+00:00","affected":[{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.49.2-0.20230906112033-b8c9ede6efa2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-3q5p-3558-364f","https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc"],"sourceUrl":"https://osv.dev/vulnerability/GO-2023-2052","license":"OSV · upstream source license applies","key":"osv:GO-2023-2052","identifiers":["GO-2023-2052","CVE-2023-41338","GHSA-3q5p-3558-364f"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T21:26:22.1226934+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T21:26:22.1226934+00:00","lastSuccessAt":"2026-11-16T21:26:22.353019+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:22.3530195+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-b7ae3bdb0699f2500ff81a2529250ecaa285d9a3824324996c109bf112b16dad","complete":true,"records":426173,"lastAttemptAt":"2026-11-16T22:25:58.3805736+00:00","lastSuccessAt":"2026-11-16T21:26:21.4103203+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:25:58.3805736+00:00","snapshotPublishedAt":"2026-11-16T21:21:33+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-f07cbea7dec4426c9e098dc06e262653","complete":true,"records":13831,"lastAttemptAt":"2026-11-16T21:26:49.3867614+00:00","lastSuccessAt":"2026-11-16T20:48:05.528+00:00","error":null,"lastVerifiedAt":"2026-11-16T20:48:05.528+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13884,"expectedIdentifiers":13884,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T21:26:22.1226934+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T21:26:22.1226934+00:00","lastSuccessAt":"2026-11-16T21:26:22.4130322+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:22.4130334+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-05d1c8ce07ac4b8a9be803d9f202f74d","complete":false,"records":13843,"lastAttemptAt":"2026-11-16T21:26:48.2924706+00:00","lastSuccessAt":"2026-11-16T21:26:48.286+00:00","error":"10 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T21:26:48.286+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13874,"expectedIdentifiers":13884,"failedIdentifiers":10},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T21:26:21.9356446+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:21.9356446+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T22:25:58.4256746+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:25:58.4256746+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T21:26:22.0454831+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:22.0454831+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-d3135f0ae820c85dd153afd7ef11f8856f87d0924652a66bf0a06179e07249db","complete":true,"records":232552,"lastAttemptAt":"2026-11-16T22:26:05.9695322+00:00","lastSuccessAt":"2026-11-16T20:47:32.4854972+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:21.8242462+00:00","snapshotPublishedAt":"2026-11-16T20:33:36+00:00","importing":true,"stagedRecords":64500,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}