
We found results for “”
CVE-2023-45283
Good to know:

Date: November 9, 2023
The filepath package does not recognize paths with a \??\ prefix as special. On Windows, a path beginning with \??\ is a Root Local Device path equivalent to a path beginning with \\?\. Paths with a \??\ prefix may be used to access arbitrary locations on the system. For example, the path \??\c:\x is equivalent to the more common path c:\x. Before fix, Clean could convert a rooted path such as \a\..\??\b into the root local device path \??\b. Clean will now convert this to .\??\b. Similarly, Join(\, ??, b) could convert a seemingly innocent sequence of path elements into the root local device path \??\b. Join will now convert this to \.\??\b. In addition, with fix, IsAbs now correctly reports paths beginning with \??\ as absolute, and VolumeName correctly reports the \??\ prefix as a volume name. UPDATE: Go 1.20.11 and Go 1.21.4 inadvertently changed the definition of the volume name in Windows paths starting with \?, resulting in filepath.Clean(\?\c:) returning \?\c: rather than \?\c:\ (among other effects). The previous behavior has been restored.
Language: Go
Severity Score
Related Resources (12)
Severity Score
Weakness Type (CWE)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CWE-22Top Fix

Upgrade Version
Upgrade to version go1.4-bootstrap_win-64 - no_fix;go-nocgo - 1.13.10;go-nocgo - 1.12.17;go - 1.10.4;go - 1.19.4;go - 1.10.2;go - 1.13.5;go - 1.9.7;go-cgo - 1.12.17;go-cgo - 1.13.10;go-runtime - 1.14.4;go-runtime - 1.15.8;go-runtime - 1.15.2;go-runtime - 1.16.4;combat-dev-go - no_fix;go - 1.14;go - 1.14.12;go - 1.16.3;go - no_fix;go - 1.15.5;go-native - 1.16.2;go-native - 1.14.12;go-native - 1.14.1;go-native - no_fix;go1.4-bootstrap_osx-64 - no_fix;go1.4-bootstrap - no_fix;combat-utils - no_fix;go-core - no_fix;go1.4-bootstrap_linux-64 - no_fix;go-binary-native - 1.17.4;llvm - 11.1.0
CVSS v3.1
Base Score: |
|
---|---|
Attack Vector (AV): | NETWORK |
Attack Complexity (AC): | LOW |
Privileges Required (PR): | NONE |
User Interaction (UI): | NONE |
Scope (S): | UNCHANGED |
Confidentiality (C): | HIGH |
Integrity (I): | NONE |
Availability (A): | NONE |