Skip to content
OpenAdvisories
High · 7.7 CVE-2025-48075 EUVD-2025-16352GHSA-hg3g-gphw-5hhmGO-2025-3706

Fiber panics when fiber.Ctx.BodyParser parses invalid range index

Published May 22, 2025 · Updated May 22, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
gofiber fiber >= 2.52.6, < 2.52.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250527T204717-1.1 openSUSE-SU-2025:15179-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling gatus +1 5.17.0-r3 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/gofiber/fiber all versions — GO-2025-3706
Go github.com/gofiber/fiber/v2 >= 2.52.6, < 2.52.7 2.52.7 GHSA-hg3g-gphw-5hhm

Advisories 1

References