Advisory

GO-2026-6218

Also known as: BIT-golang-2026-56860, CVE-2026-56860

Summary

Avoid quadratic complexity in resolvePath in net/url

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-08-13 21:43 UTC
Modified
2026-11-14 13:12 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • 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 (semver)

Fixed versions

1.25.13, 1.26.6, 1.27.0-rc.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences