CVE-2025-48075
Fiber panics when fiber.Ctx.BodyParser parses invalid range index
Reported by github_m · Published May 22, 2025
github.com/gofiber/fiber/v2 is fixed in 2.52.7 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/gofiber/fiber/v2 | Go Modules | 2.52.7 |
| gatus | Wolfi | 5.17.0-r3 |
| fiber | gofiber | 2.52.7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| gofiber | fiber | >= 2.52.6, < 2.52.7 |
| github.com | gofiber/fiber/v2 | 2.52.6 |
| wolfi | gatus | 0 |
| gofiber | fiber | 2.52.6 |
| chainguard | gatus | 0 |
Timeline
- May 22, 2025 CVE Published
- May 22, 2025 CVE Updated
- May 22, 2025 PoC Published
- May 23, 2025 EPSS Score (30 in total, the first dated here)
- Jun 6, 2025 Coalition ESS Score (10 in total, the first dated here)
- Dec 12, 2025 Security Advisory (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-48075
vulnetix vdb fixes CVE-2025-48075
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-48075/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/gofiber/fiber/security/advisories/GHSA-hg3g-gphw-5hhm x_refsource_CONFIRM
- https://github.com/gofiber/fiber/commit/e115c08b8f059a4a031b492aa9eef0712411853d x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-48075 advisory
- https://github.com/advisories/GHSA-hg3g-gphw-5hhm advisory
- https://github.com/gofiber/fiber url
- https://pkg.go.dev/vuln/GO-2025-3706 url