{"cve":"CVE-2024-38513","nvd":{"published":"2024-07-01T19:15:05.173","modified":"2026-06-17T07:40:27.017","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-384"],"references":["https://github.com/gofiber/fiber/commit/66a881441b27322a331f1b526cf1eb6b3358a4d8","https://github.com/gofiber/fiber/security/advisories/GHSA-98j2-3j3p-fw2v","https://github.com/gofiber/fiber/commit/66a881441b27322a331f1b526cf1eb6b3358a4d8","https://github.com/gofiber/fiber/security/advisories/GHSA-98j2-3j3p-fw2v"],"products":["gofiber:fiber"],"source":"nvd","synced_at":"2026-10-19T21:52:00.836172422+00:00"},"epss":{"cve":"CVE-2024-38513","score":0.00692,"percentile":0.52899,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-98j2-3j3p-fw2v","url":"https://osv.dev/vulnerability/GHSA-98j2-3j3p-fw2v","summary":"Session Middleware Token Injection Vulnerability","modified":"2026-09-10T03:50:16.400234889Z","packages":[{"ecosystem":"Go","name":"github.com/gofiber/fiber","purl":"pkg:golang/github.com/gofiber/fiber","ranges":["<2.52.5"],"fixed":["2.52.5"]},{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2","purl":"pkg:golang/github.com/gofiber/fiber/v2","ranges":["<2.52.5"],"fixed":["2.52.5"]},{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2/middleware/session","purl":"pkg:golang/github.com/gofiber/fiber/v2/middleware/session","ranges":["<2.52.5"],"fixed":["2.52.5"]}]},{"id":"GO-2024-2959","url":"https://osv.dev/vulnerability/GO-2024-2959","summary":"Session Middleware Token Injection Vulnerability in github.com/gofiber/fiber","modified":"2026-03-03T04:55:32.839465Z","packages":[{"ecosystem":"Go","name":"github.com/gofiber/fiber","purl":"pkg:golang/github.com/gofiber/fiber","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2","purl":"pkg:golang/github.com/gofiber/fiber/v2","ranges":["<2.52.5"],"fixed":["2.52.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}