{"id":"CVE-2025-54801","published":"2025-08-05T23:33:28Z","modified":"2025-08-07T14:00:09Z","title":"Fiber Susceptible to Crash via `BodyParser` Due to Unvalidated Large Slice Index in Decoder","vendor":"gofiber","product":"fiber","tier":"tail","description":{"text":"Fiber is an Express inspired web framework written in Go. In versions 2.52.8 and below, when using Fiber's Ctx.BodyParser to parse form data containing a large numeric key that represents a slice index (e.g., test.18446744073704), the application crashes due to an out-of-bounds slice allocation in the underlying schema decoder. The root cause is that the decoder attempts to allocate a slice of length idx + 1 without validating whether the index is within a safe or reasonable range. If the idx is excessively large, this leads to an integer overflow or memory exhaustion, causing a panic or crash. This is fixed in version 2.52.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00424,"percentile":0.37597,"provenance":"source"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"references":[{"url":"https://github.com/gofiber/fiber/security/advisories/GHSA-qx2q-88mx-vhg7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gofiber/fiber/commit/e115c08b8f059a4a031b492aa9eef0712411853d","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":7.52},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"gofiber","affectedVersions":[{"vendor":"gofiber","product":"fiber","versions":["< 2.52.9"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-08-07T13:59:43.620645Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gofiber/fiber/v2","vulnerableRanges":["<2.52.9"],"patched":["2.52.9"],"from":["GHSA-qx2q-88mx-vhg7","GO-2025-3845"],"provenance":"source"}],"summary":{"text":"The flaw is in the schema decoder used by Fiber's Ctx.BodyParser in the gofiber/fiber web framework, where form data containing a large numeric slice-index key is not validated before a slice is allocated. An attacker who can send a request to an application using BodyParser to parse form data containing such a key, with no authentication or user interaction required and no special configuration needed, can crash the application through excessive memory allocation or integer overflow.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:02Z"},"euvd":{"id":"EUVD-2025-23668","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-119285","published":"2026-10-29","fixed":"2.52.3","kev":false},{"cve":"CVE-2024-38513","published":"2024-07-01","fixed":"2.52.5","kev":false},{"cve":"CVE-2025-48075","published":"2025-05-22","fixed":"2.52.7","kev":false,"link":{"from":"CVE-2025-48075","to":"CVE-2025-54801","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/gofiber/fiber/v2","fromFixed":"2.52.7","toFixed":"2.52.9","daysApart":75}]}},{"cve":"CVE-2025-54801","published":"2025-08-05","fixed":"2.52.9","kev":false},{"cve":"CVE-2025-66630","published":"2026-02-09","fixed":"2.52.11","kev":false,"link":{"from":"CVE-2025-54801","to":"CVE-2025-66630","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/gofiber/fiber/v2","fromFixed":"2.52.9","toFixed":"2.52.11","daysApart":188}]}},{"cve":"CVE-2026-25882","published":"2026-02-24","fixed":"2.52.12","kev":false},{"cve":"CVE-2026-42554","published":"2026-05-11","fixed":"2.52.13","kev":false}],"package":"Go:github.com/gofiber/fiber/v2"}}