CVE-2024-38513 json
Fiber Session Middleware Token Injection Vulnerability
published 2024-07-01 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-2308 , GHSA-98j2-3j3p-fw2v , GO-2024-2959
- cvss
- 10.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 53%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/gofiber/fiber 2.52.5
- go github.com/gofiber/fiber/v2 2.52.5
- go github.com/gofiber/fiber/v2/middleware/session 2.52.5
- gofiber fiber 2.52.5
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-38513 updated cvss 9.8
gofiber: gofiber: session middleware token injection vulnerability
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.69% chance of exploitation in the next 30 days, higher than 53% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/gofiber/fiber | <2.52.5 all versions |
2.52.5 |
| go | github.com/gofiber/fiber/v2 | <2.52.5 |
2.52.5 |
| go | github.com/gofiber/fiber/v2/middleware/session | <2.52.5 |
2.52.5 |
Affected products
- gofiber fiber
Classification
- Weakness
-
- CWE-384 Session Fixation
References
-
github.com
/gofiber/fiber/commit/66a881441b27322a331f1b526cf1eb6b3358a4d8
web, patch
-
github.com
/gofiber/fiber/commit/7926e5bf4da03e54f62d27d53229d35b264cba8e
web, patch
-
github.com
/gofiber/fiber/security/advisories/GHSA-98j2-3j3p-fw2v
web, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-38513
advisory
-
github.com
/gofiber/fiber
package
Sources
- CVE List CVE-2024-38513
- GitHub Advisory GHSA-98j2-3j3p-fw2v
- NVD CVE-2024-38513
- OSV GO-2024-2959
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.