CVE-2025-48075 Fiber panics when fiber.Ctx.BodyParser parses invalid range index
HighCVSS 7.7
EPSS 0.53%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
Description
Fiber is an Express-inspired web framework written in Go. Starting in version 2.52.6 and prior to version 2.52.7, fiber.Ctx.BodyParser can map flat data to nested slices using key[idx]value syntax, but when idx is negative, it causes a panic instead of returning an error stating it cannot process the data. Since this data is user-provided, this could lead to denial of service for anyone relying on this fiber.Ctx.BodyParser functionality. Version 2.52.7 fixes the issue.
Upgrade path
2 packages: 1 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| gofiber github.com/gofiber/fiber(Go) | >= 2.52.6, < 2.52.7; All versions | 2.52.7 | Partially fixed |
| gofiber github.com/gofiber/fiber | = >= 2.52.6, < 2.52.7; >= 2.0.0, < 2.52.7 | 2.52.7 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gofiber github.com/gofiber/fiber(Go) | >= 2.52.6, < 2.52.7 | 2.52.7 |
| gofiber github.com/gofiber/fiber(Go) | All versions | No fix listed |
| gofiber github.com/gofiber/fiber | = >= 2.52.6, < 2.52.7 | No fix listed |
| gofiber github.com/gofiber/fiber | >= 2.0.0, < 2.52.7 | 2.52.7 |
References
- https://github.com/gofiber/fiber/security/advisories/GHSA-hg3g-gphw-5hhm exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/gofiber/fiber/commit/e115c08b8f059a4a031b492aa9eef0712411853d patch
- github.com product
- pkg.go.dev
- github.com