CVE-2024-38513
published critical CVSS 3.1 · 10.0Fiber Session Middleware Token Injection Vulnerability
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gofiber | fiber | < 2.52.5 (affected) | GitHub_M · cna |
| gofiber | fiber | 0 to < 2.52.5 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-384 CWE-384: Session Fixation
References
2Provider assertions
3GitHub_M · cna
Fiber Session Middleware Token Injection Vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 229773b88089eb8c1a7749843f8313b552f909010056c51e5fd1c866fc1aae9e
- Ingested
- 23 Sep 2026, 08:24:49 UTC
- Source record
- Official CVE record