Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gofiber/fiber/v2/middleware/session
  4. ›
  5. CVE-2024-38513

CVE-2024-38513: Session Middleware Token Injection Vulnerability

July 1, 2024

A security vulnerability has been identified in the Fiber session middleware where a user can supply their own session_id value, leading to the creation of a session with that key.

References

  • github.com/advisories/GHSA-98j2-3j3p-fw2v
  • github.com/gofiber/fiber
  • github.com/gofiber/fiber/commit/66a881441b27322a331f1b526cf1eb6b3358a4d8
  • github.com/gofiber/fiber/security/advisories/GHSA-98j2-3j3p-fw2v
  • nvd.nist.gov/vuln/detail/CVE-2024-38513

Code Behaviors & Features

Detect and mitigate CVE-2024-38513 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.52.5

Fixed versions

  • 2.52.5

Solution

Upgrade to version 2.52.5 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-384: Session Fixation

Source file

go/github.com/gofiber/fiber/v2/middleware/session/CVE-2024-38513.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:59 +0000.