Skip to main content
← All vulnerabilities
CVE-2026-56860GO-2026-6218BIT-GOLANG-2026-56860

Avoid quadratic complexity in resolvePath in net/url

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.25.13, 1.26.6, 1.27.0-rc.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • net/url

    fixed in 1.25.13; From 1.26.0-0 · fixed in 1.26.6; From 1.27.0-0 · fixed in 1.27.0-rc.3

  • stdlibGo

    fixed in 1.25.13; From 1.26.0-0 · fixed in 1.26.6; From 1.27.0-0 · fixed in 1.27.0-rc.3

References 4

go.dev

groups.google.com

pkg.go.dev