CVE-2025-48075
published 2025-05-22CVE-2025-48075: 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…
PriorityP340high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
0.44%
35.1th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| github.com | gofiber_fiber_v2 | >= 2.52.6 < 2.52.7 | 2.52.7 |
| gofiber | fiber | — | — |
| gofiber | fiber | >= 2.0.0 < 2.52.7 | 2.52.7 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv4.07.7HIGHCVSS: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:P/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
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Fiber panics when fiber.Ctx.BodyParser parses invalid range index in github.com/gofiber/fiber
osv·2025-05-27
CVE-2025-48075 Fiber panics when fiber.Ctx.BodyParser parses invalid range index in github.com/gofiber/fiber
Fiber panics when fiber.Ctx.BodyParser parses invalid range index in github.com/gofiber/fiber
Fiber panics when fiber.Ctx.BodyParser parses invalid range index in github.com/gofiber/fiber
OSV
Fiber panics when fiber.Ctx.BodyParser parses invalid range index
osv·2025-05-22
CVE-2025-48075 [HIGH] Fiber panics when fiber.Ctx.BodyParser parses invalid range index
Fiber panics when fiber.Ctx.BodyParser parses invalid range index
### Summary
When using the `fiber.Ctx.BodyParser` to parse into a struct with range values, a panic occurs when trying to parse a negative range index
### Details
`fiber.Ctx.BodyParser` can map flat data to nested slices using `key[idx]value` syntax, however 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
### Reproducing
Take a simple GoFiberV2 server which returns a JSON encoded version of the FormData
```go
package main
import (
"encoding/json"
"fmt"
"net/http"
"github.com/gofiber/fiber/v2"
)
type RequestBody struct {
NestedCo
GHSA
Fiber panics when fiber.Ctx.BodyParser parses invalid range index
ghsa·2025-05-22
CVE-2025-48075 [HIGH] CWE-129 Fiber panics when fiber.Ctx.BodyParser parses invalid range index
Fiber panics when fiber.Ctx.BodyParser parses invalid range index
### Summary
When using the `fiber.Ctx.BodyParser` to parse into a struct with range values, a panic occurs when trying to parse a negative range index
### Details
`fiber.Ctx.BodyParser` can map flat data to nested slices using `key[idx]value` syntax, however 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
### Reproducing
Take a simple GoFiberV2 server which returns a JSON encoded version of the FormData
```go
package main
import (
"encoding/json"
"fmt"
"net/http"
"github.com/gofiber/fiber/v2"
)
type RequestBody struct {
NestedCo
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2025-48075 golang-github-gofiber-fiber-2: Fiber panics when fiber.Ctx.BodyParser parses invalid range index [fedora-42]
bugzilla·2025-05-22·CVSS 7.7
CVE-2025-48075 [HIGH] CVE-2025-48075 golang-github-gofiber-fiber-2: Fiber panics when fiber.Ctx.BodyParser parses invalid range index [fedora-42]
CVE-2025-48075 golang-github-gofiber-fiber-2: Fiber panics when fiber.Ctx.BodyParser parses invalid range index [fedora-42]
More information about this security flaw is available in the following bug:
https://bugzilla.redhat.com/show_bug.cgi?id=2368045
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
Discussion:
This message is a reminder that Fedora Linux 42 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 42 on 2026-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it rema
Bugzilla
CVE-2025-48075 golang-github-deepmap-oapi-codegen: Fiber panics when fiber.Ctx.BodyParser parses invalid range index [fedora-42]
bugzilla·2025-05-22·CVSS 7.7
CVE-2025-48075 [HIGH] CVE-2025-48075 golang-github-deepmap-oapi-codegen: Fiber panics when fiber.Ctx.BodyParser parses invalid range index [fedora-42]
CVE-2025-48075 golang-github-deepmap-oapi-codegen: Fiber panics when fiber.Ctx.BodyParser parses invalid range index [fedora-42]
More information about this security flaw is available in the following bug:
https://bugzilla.redhat.com/show_bug.cgi?id=2368045
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
Discussion:
This message is a reminder that Fedora Linux 42 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 42 on 2026-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it
2025-05-22
Published