High severityNVD Advisory· Published May 22, 2025· Updated May 22, 2025
Fiber panics when fiber.Ctx.BodyParser parses invalid range index
CVE-2025-48075
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/gofiber/fiber/v2Go | >= 2.52.6, < 2.52.7 | 2.52.7 |
Affected products
7- osv-coords6 versionspkg:apk/chainguard/gatuspkg:apk/chainguard/gatus-compatpkg:apk/wolfi/gatuspkg:apk/wolfi/gatus-compatpkg:golang/github.com/gofiber/fiber/v2pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweed
< 5.17.0-r3+ 5 more
- (no CPE)range: < 5.17.0-r3
- (no CPE)range: < 5.17.0-r3
- (no CPE)range: < 5.17.0-r3
- (no CPE)range: < 5.17.0-r3
- (no CPE)range: >= 2.52.6, < 2.52.7
- (no CPE)range: < 0.0.20250527T204717-1.1
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-hg3g-gphw-5hhmghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-48075ghsaADVISORY
- github.com/gofiber/fiber/commit/e115c08b8f059a4a031b492aa9eef0712411853dghsax_refsource_MISCWEB
- github.com/gofiber/fiber/security/advisories/GHSA-hg3g-gphw-5hhmghsax_refsource_CONFIRMWEB
- pkg.go.dev/vuln/GO-2025-3706ghsaWEB
News mentions
0No linked articles in our index yet.