CVE-2026-56860

Avoid quadratic complexity in resolvePath in net/url

State
Published
Severity
5.9 Medium
Published
Aug 13, 2026
Updated
Aug 14, 2026
Reserved
Jun 23, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-407 Inefficient Algorithmic Complexity

Affected Products

ProductVersions
net/urlGo standard library
  • before 1.25.13Affected
  • 1.26.0-0 to before 1.26.6Affected
  • 1.27.0-0 to before 1.27.0-rc.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.