CVE-2024-38513: Fiber Session Middleware Token Injection Vulnerability
Vulnerability summary
CVE-2024-38513 is a critical (CVSS 10.0) Session Fixation vulnerability in gofiber fiber. EPSS estimates a 0.69% chance of exploitation in the next 30 days, higher than 52.3% of scored vulnerabilities.
Timeline
- 01-07-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
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 metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated10.0CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.69%
Chance of exploitation in the next 30 days
Percentile
52%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.69% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Github.com/gofiber1 product
- fiber< 2.52.5 | All versions (No fix recorded)
Github.com/gofiber/fiber1 product
- v2< 2.52.5
Github.com/gofiber/fiber/v2/middleware1 product
- session< 2.52.5
Gofiber1 product
- fiber< 2.52.5
4 vendors · 4 products
References
5 links- github.com/gofiber/fiber/security/advisories/GHSA-98j2-3j3p-fw2vX Refsource CONFIRMWEBAdvisoryVendor Advisory
- github.com/gofiber/fiberPACKAGE