← CVE Intelligence

CVE-2026-56860

Avoid quadratic complexity in resolvePath in net/url PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Go standard library / net/urlaffected 0 before 1.25.13; affected 1.26.0-0 before 1.26.6; affected 1.27.0-0 before 1.27.0-rc.3

CWE

No CWE identifiers supplied.

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.