{"id":"GHSA-98j2-3j3p-fw2v","revision":"f747f082e8ae4e248b059d488da7b695","records":[{"revision":"f747f082e8ae4e248b059d488da7b695","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-98j2-3j3p-fw2v","aliases":["CVE-2024-38513","GO-2024-2959"],"title":"Session Middleware Token Injection Vulnerability","description":"A security vulnerability has been identified in the Fiber session middleware where a user can supply their own session_id value, leading to the creation of a session with that key.\n\n## Impact\nThe identified vulnerability 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.\n\n## Patches\nThe issue has been addressed in the latest patch. Users are strongly encouraged to upgrade to version 2.52.5 or higher to mitigate this vulnerability.\n\n## Workarounds\nUsers who are unable to upgrade immediately can apply the following workarounds to reduce the risk:\n\n1. **Validate Session IDs**: Implement additional validation to ensure session IDs are not supplied by the user and are securely generated by the server.\n2. **Session Management**: Regularly rotate session IDs and enforce strict session expiration policies.\n\n## References\nFor more information on session best practices:\n- [OWASP Session Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html)\n\nUsers are encouraged to review these references and take immediate action to secure their applications.","state":0,"publishedAt":"2024-07-01T20:35:03+00:00","modifiedAt":"2026-09-10T03:50:16.4002349+00:00","affected":[{"ecosystem":"Go","name":"github.com/gofiber/fiber","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.52.5"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.52.5"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2/middleware/session","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.52.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-98j2-3j3p-fw2v","https://nvd.nist.gov/vuln/detail/CVE-2024-38513","https://github.com/gofiber/fiber/commit/66a881441b27322a331f1b526cf1eb6b3358a4d8","https://github.com/gofiber/fiber/commit/7926e5bf4da03e54f62d27d53229d35b264cba8e","https://github.com/gofiber/fiber"],"sourceUrl":"https://github.com/advisories/GHSA-98j2-3j3p-fw2v","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-98j2-3j3p-fw2v","identifiers":["GHSA-98j2-3j3p-fw2v","CVE-2024-38513","GO-2024-2959"]},"retained":false,"historicalAffected":[]}],"coverage":[]}