# CVE-2024-38513: Fiber Session Middleware Token Injection Vulnerability

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 62% of CVEs (2026-11-30)
- Published: 2024-07-01T18:31:13.028Z
- Modified: 2026-09-10T03:50:16.400Z
- Also known as: GHSA-98j2-3j3p-fw2v, GO-2024-2959
- Weaknesses: CWE-384
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gofiber fiber: < 2.52.5; before 2.52.5
- github.com/gofiber/fiber (Go): before 2.52.5; all versions
- github.com/gofiber/fiber/v2 (Go): before 2.52.5
- github.com/gofiber/fiber/v2/middleware/session (Go): before 2.52.5

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gofiber/fiber/security/advisories/GHSA-98j2-3j3p-fw2v> (advisory, vendor-advisory, web)
- <https://github.com/gofiber/fiber/commit/66a881441b27322a331f1b526cf1eb6b3358a4d8> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-38513> (advisory)
- <https://github.com/gofiber/fiber/commit/7926e5bf4da03e54f62d27d53229d35b264cba8e> (fix, web)
- <https://github.com/gofiber/fiber> (package)

## Sources

- CVE List: [CVE-2024-38513](https://www.cve.org/CVERecord?id=CVE-2024-38513), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-98j2-3j3p-fw2v](https://github.com/advisories/GHSA-98j2-3j3p-fw2v), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2959](https://pkg.go.dev/vuln/GO-2024-2959), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-38513](https://nvd.nist.gov/vuln/detail/CVE-2024-38513), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-38513 · Whole record: https://cve.day/CVE-2024-38513.json · Rebuilt by cve.day 2026-11-25T22:58:42.418Z
