CVE-2025-54801
HIGH 8.7CVSS 4.0Fiber Crashes in BodyParser Due to Unvalidated Large Slice Index in Decoder
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.
- Published
- 6 Aug 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-789
- Also known as
- GHSA-qx2q-88mx-vhg7GO-2025-3845
- Sources
- NVDJSONOSV GHSA-qx2q-88mx-vhg7JSONOSV GO-2025-3845JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gofiber | fibercpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:* |
< 2.52.9 | 2.52.9 |
| OSV | Go | github.com/gofiber/fiber/v2 | < 2.52.9 | 2.52.9 |
References
- https://github.com/gofiber/fiber/commit/e115c08b8f059a4a031b492aa9eef0712411853d · Patch, WEB, FIX
- https://github.com/gofiber/fiber/security/advisories/GHSA-qx2q-88mx-vhg7 · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-54801 · ADVISORY
- https://github.com/gofiber/fiber · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 6 Aug 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Aug 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Aug 2025)