Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-48075
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 03:40 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 22 May 2025, 17:25 UTC

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.

osv:CVE-2025-48075
Complete source record
{
  "id": "a5985f0f7d3640157e89880bcaf5159de988ad24d7b3206a154ecc5809a379f8",
  "url": "https://osv.dev/vulnerability/CVE-2025-48075",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Fiber panics when fiber.Ctx.BodyParser parses invalid range index",
    "summary": "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.",
    "evidence": "osv:CVE-2025-48075",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-48075",
      "aliases": [
        "CVE-2025-48075",
        "GHSA-hg3g-gphw-5hhm",
        "GO-2025-3706"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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/E:P"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gofiber/fiber",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e04f815c43cb8a84f4de90e1d1bd9507bc33fa8c"
                },
                {
                  "fixed": "e115c08b8f059a4a031b492aa9eef0712411853d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "2.52.6"
                      },
                      {
                        "fixed": "2.52.7"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e115c08b8f059a4a031b492aa9eef0712411853d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "cpe": "cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0"
                      },
                      {
                        "fixed": "2.52.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.52.6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-48075.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.401027571Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48075.json",
        "https://github.com/gofiber/fiber/security/advisories/GHSA-hg3g-gphw-5hhm",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-48075",
        "https://github.com/gofiber/fiber/commit/e115c08b8f059a4a031b492aa9eef0712411853d"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-129"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48075.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-48075",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509927,
  "published_at": "2025-05-22T17:25:18.447+00:00"
}