Advisory

GO-2022-0533

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

Summary

Path traversal via Clean on Windows in path/filepath

Details

On Windows, the filepath.Clean function can convert certain invalid paths to valid, absolute paths, potentially allowing a directory traversal attack.

For example, Clean(".\c:") returns "c:".

Severity

Not rated by the source.

Dates

Published
2022-07-28 17:25 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.17.11, introduced 1.18.0-0, fixed 1.18.3 (semver)

Fixed versions

1.17.11, 1.18.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