Security mailing lists by PureSourceCode

CVE-2022-41722

HIGH 7.5CVSS 3.1

Path traversal on Windows in path/filepath

A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as "a/../c:/b" into the valid path "c:\b". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path ".\c:\b".

Published
28 Feb 2023
Last modified
17 Jun 2026
Assigned by
security@golang.org
NVD status
Modified
Weakness
CWE-22
Also known as
BIT-golang-2022-41722GO-2023-1568
Sources
NVDJSONOSV GO-2023-1568JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
< 1.19.6 1.19.6
NVD golang go
cpe:2.3:a:golang:go:1.20.0:-:*:*:*:*:*:*
= 1.20.0
OSV Go stdlib < 1.19.6; >= 1.20.0-0, < 1.20.1 1.19.6, 1.20.1

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 28 Feb 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Feb 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.