Fiber Susceptible to Crash via `BodyParser` Due to Unvalidated Large Slice Index in Decoder
Published Aug 5, 2025
8.7
HIGHCVSS 4.0
EPSS 0.37%
Description
Fiber is an Express inspired web framework written in Go. In versions 2.52.8 and below, when using Fiber's Ctx.BodyParser to parse form data containing a large numeric key that represents a slice index (e.g., test.18446744073704), the application crashes due to an out-of-bounds slice allocation in the underlying schema decoder. The root cause is that the decoder attempts to allocate a slice of length idx + 1 without validating whether the index is within a safe or reasonable range. If the idx is excessively large, this leads to an integer overflow or memory exhaustion, causing a panic or crash. This is fixed in version 2.52.9.
Affected products
-
- Version < 2.52.9StatusaffectedConstraints-
- Version
No data.
No Red Hat product state for this CVE.
github.com/gofiber/fiber/v2
Go
Introduced 0 Fixed 2.52.9
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/gofiber/fiber/v2 | 0 | 2.52.9 |
Remediation
No remediation recorded yet.
References (5)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-23668 Advisory
- https://github.com/advisories/GHSA-qx2q-88mx-vhg7 Advisory
- https://github.com/gofiber/fiber/commit/e115c08b8f059a4a031b492aa9eef0712411853d x_refsource_MISCPatch
- https://github.com/gofiber/fiber/security/advisories/GHSA-qx2q-88mx-vhg7 exploitx_refsource_CONFIRMVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-54801
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-23668 | Advisory | |
| https://github.com/advisories/GHSA-qx2q-88mx-vhg7 | Advisory | |
| https://github.com/gofiber/fiber/commit/e115c08b8f059a4a031b492aa9eef0712411853d | x_refsource_MISCPatch | |
| https://github.com/gofiber/fiber/security/advisories/GHSA-qx2q-88mx-vhg7 | exploitx_refsource_CONFIRMVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-54801 |
Change history (0)
No recorded changes yet.