CVE-2024-38513: GO-2024-2959 - Session Middleware Token Injection Vulnerability in github.com/gofiber/fiber

CVE-2024-38513 · Severity: low · CVSS 3.1 · Published 2024-07-02

Session Middleware Token Injection Vulnerability in github.com/gofiber/fiber

Technologies: github.com/gofiber/fiber (Go), github.com/gofiber/fiber/v2 (Go). Vendors: Go.

Quick answers

Is CVE-2024-38513 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-38513 being exploited in the wild.
How severe is CVE-2024-38513?
Low severity, with a CVSS score of 3.1, published 2 July 2024.
Which products and versions are affected?
github.com/gofiber/fiber (Go) SEMVER:introduced=0, SEMVER:introduced=0,fixed=2.52.5; github.com/gofiber/fiber/v2 (Go) SEMVER:introduced=0,fixed=2.52.5; github.com/gofiber/fiber/v2/middleware/session (Go) SEMVER:introduced=0,fixed=2.52.5.
Is there a fix for CVE-2024-38513?
Yes. github.com/gofiber/fiber (Go): upgrade to 2.52.5 or later; github.com/gofiber/fiber/v2 (Go): upgrade to 2.52.5 or later; github.com/gofiber/fiber/v2/middleware/session (Go): upgrade to 2.52.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-38513?
Check whether you run github.com/gofiber/fiber (Go), github.com/gofiber/fiber/v2 (Go) or github.com/gofiber/fiber/v2/middleware/session (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/gofiber/fiber (Go): upgrade to 2.52.5 or later
    go get github.com/gofiber/fiber@v2.52.5
  • github.com/gofiber/fiber/v2 (Go): upgrade to 2.52.5 or later
    go get github.com/gofiber/fiber/v2@v2.52.5
  • github.com/gofiber/fiber/v2/middleware/session (Go): upgrade to 2.52.5 or later
    go get github.com/gofiber/fiber/v2/middleware/session@v2.52.5

Affected products

  • github.com/gofiber/fiber (Go) SEMVER:introduced=0, SEMVER:introduced=0,fixed=2.52.5
  • github.com/gofiber/fiber/v2 (Go) SEMVER:introduced=0,fixed=2.52.5
  • github.com/gofiber/fiber/v2/middleware/session (Go) SEMVER:introduced=0,fixed=2.52.5

Identifiers

  • CVE-2024-38513
  • GHSA-98j2-3j3p-fw2v
  • GO-2024-2959

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.