Memory Allocation with Excessive Size Value Affecting github.com/gofiber/fiber/v2 package, versions <2.52.9


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.06% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOFIBERFIBERV2-11483934
  • published6 Aug 2025
  • disclosed6 Aug 2025
  • creditAnuraag Baishya

Introduced: 6 Aug 2025

NewCVE-2025-54801  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade github.com/gofiber/fiber/v2 to version 2.52.9 or higher.

Overview

github.com/gofiber/fiber/v2 is an Express inspired web framework written in Go.

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the BodyParser function, which allocates a slice of length idx+1 without validating. An attacker can cause the application to crash or exhaust system memory by submitting form data with a large numeric key that results in an unvalidated slice index.

References

CVSS Base Scores

version 4.0
version 3.1