Advisory

GO-2022-0988

Also known as: BIT-golang-2022-32190, CVE-2022-32190

Summary

Failure to strip relative path components in net/url

Details

JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative path. For example, JoinPath("https://go.dev", "../go") returns the URL "https://go.dev/../go", despite the JoinPath documentation stating that ../ path elements are removed from the result.

Severity

Not rated by the source.

Dates

Published
2022-09-12 20:23 UTC
Modified
2026-07-15 14:29 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 1.19.0-0, fixed 1.19.1 (semver)

Fixed versions

1.19.1

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