Avoid quadratic complexity in resolvePath in net/url
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.25.13, 1.26.6, 1.27.0-rc.3 and 1 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Go standard library | <1.25.13, >=1.26.0-0 <1.26.6, >=1.27.0-0 <1.27.0-rc.3 | 1.25.13, 1.26.6, 1.27.0-rc.3 | |
| go: stdlib | >=1.27.0-0 <1.27.0-rc.3 | 1.27.0-rc.3 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in stdlib (Go), strongest first
Embed
A live severity badge for an advisory, README or ticket