{"id":"CVE-2024-38513","published":"2024-07-01T18:31:13Z","modified":"2024-08-02T04:12:25Z","title":"Fiber Session Middleware Token Injection Vulnerability","vendor":"gofiber","product":"fiber","tier":"tail","description":{"text":"Fiber is an Express-inspired web framework written in Go A vulnerability present in versions prior to 2.52.5 is a session middleware issue in GoFiber versions 2 and above. This vulnerability allows users to supply their own session_id value, resulting in the creation of a session with that key. If a website relies on the mere presence of a session for security purposes, this can lead to significant security risks, including unauthorized access and session fixation attacks. All users utilizing GoFiber's session middleware in the affected versions are impacted. The issue has been addressed in version 2.52.5. Users are strongly encouraged to upgrade to version 2.52.5 or higher to mitigate this vulnerability. Users who are unable to upgrade immediately can apply the following workarounds to reduce the risk: Either implement additional validation to ensure session IDs are not supplied by the user and are securely generated by the server, or regularly rotate session IDs and enforce strict session expiration policies.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00692,"percentile":0.53795,"provenance":"source"},"cwes":[{"id":"CWE-384","name":"Session Fixation"}],"references":[{"url":"https://github.com/gofiber/fiber/security/advisories/GHSA-98j2-3j3p-fw2v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gofiber/fiber/commit/66a881441b27322a331f1b526cf1eb6b3358a4d8","tags":["x_refsource_MISC"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":10.76},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"gofiber","affectedVersions":[{"vendor":"gofiber","product":"fiber","versions":["< 2.52.5"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-07-02T20:26:43.929677Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gofiber/fiber","vulnerableRanges":["<2.52.5","all versions"],"patched":["2.52.5"],"from":["GHSA-98j2-3j3p-fw2v","GO-2024-2959"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/gofiber/fiber/v2","vulnerableRanges":["<2.52.5"],"patched":["2.52.5"],"from":["GHSA-98j2-3j3p-fw2v","GO-2024-2959"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/gofiber/fiber/v2/middleware/session","vulnerableRanges":["<2.52.5"],"patched":["2.52.5"],"from":["GHSA-98j2-3j3p-fw2v"],"provenance":"source"}],"summary":{"text":"The Fiber session middleware in the gofiber/fiber web framework, in versions prior to 2.52.5, lets a client supply its own session_id value, which causes the server to create a session under that chosen key. An unauthenticated remote attacker can exploit this with no user interaction by presenting a chosen session identifier, which can enable unauthorized access and session fixation wherever the application treats the mere existence of a session as proof of authentication or authorization.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:46Z"},"euvd":{"id":"EUVD-2024-2308","exploited":false,"provenance":"source"}}