GO-2026-6218
Avoid quadratic complexity in resolvePath in net/url
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2026-56860
- Alias
- BIT-golang-2026-56860
Description
Previously, resolving relative paths containing parent directory ('..') segments performed string conversions and buffer rewrites on each step, resulting in quadratic time complexity and high memory allocation overhead. Now, path resolution operates on a byte buffer using index-based backtracking for '..' segments, eliminating the quadratic time complexity and significantly reducing memory allocations.
Paquets affectés
| Paquet | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.25.13, introduced 1.26.0-0, fixed 1.26.6, introduced 1.27.0-0, fixed 1.27.0-rc.3 |
Références
- https://go.dev/cl/803681 FIX
- https://go.dev/issue/80494 REPORT
- https://groups.google.com/g/golang-announce/c/94pEornpRlI WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |