CVE-2023-45283

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.
Path Traversal
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 84%
Affected Products (NVD)
VendorProductVersion
golanggo
𝑥
< 1.20.11
golanggo
1.21.0-0 ≤
𝑥
< 1.21.4
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
golang-1.15
bullseye
unimportant
golang-1.19
bookworm
unimportant
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
golang
bionic
ignored
focal
dne
jammy
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
ignored
xenial
ignored
golang-1.10
bionic
needs-triage
focal
dne
jammy
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
ignored
xenial
needs-triage
golang-1.13
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
dne
xenial
needs-triage
golang-1.14
bionic
dne
focal
needs-triage
jammy
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
dne
xenial
dne
golang-1.16
bionic
needs-triage
focal
needs-triage
jammy
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
dne
xenial
dne
golang-1.17
bionic
dne
focal
dne
jammy
needs-triage
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
dne
xenial
dne
golang-1.18
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
dne
xenial
needs-triage
golang-1.19
bionic
dne
focal
dne
jammy
dne
lunar
ignored
mantic
dne
noble
dne
oracular
dne
trusty
dne
xenial
dne
golang-1.20
bionic
dne
focal
not-affected
jammy
not-affected
lunar
not-affected
mantic
not-affected
noble
dne
oracular
dne
trusty
dne
xenial
dne
golang-1.21
bionic
dne
focal
not-affected
jammy
not-affected
lunar
not-affected
mantic
not-affected
noble
not-affected
oracular
dne
trusty
dne
xenial
dne
golang-1.6
bionic
dne
focal
dne
jammy
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
ignored
xenial
needs-triage
golang-1.8
bionic
needs-triage
focal
dne
jammy
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
dne
xenial
dne
golang-1.9
bionic
needs-triage
focal
dne
jammy
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
dne
xenial
dne
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
golang
Amazon Linux 1
0:1.20.12-1.49.amzn1
fixed
Amazon Linux 2
0:1.20.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.20.12-1.amzn2023.0.1
fixed
golang-bin
Amazon Linux 1
0:1.20.12-1.49.amzn1
fixed
Amazon Linux 2
0:1.20.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.20.12-1.amzn2023.0.1
fixed
golang-docs
Amazon Linux 1
0:1.20.12-1.49.amzn1
fixed
Amazon Linux 2
0:1.20.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.20.12-1.amzn2023.0.1
fixed
golang-misc
Amazon Linux 1
0:1.20.12-1.49.amzn1
fixed
Amazon Linux 2
0:1.20.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.20.12-1.amzn2023.0.1
fixed
golang-shared
Amazon Linux 1
0:1.20.12-1.49.amzn1
fixed
Amazon Linux 2
0:1.20.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.20.12-1.amzn2023.0.1
fixed
golang-src
Amazon Linux 1
0:1.20.12-1.49.amzn1
fixed
Amazon Linux 2
0:1.20.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.20.12-1.amzn2023.0.1
fixed
golang-tests
Amazon Linux 1
0:1.20.12-1.49.amzn1
fixed
Amazon Linux 2
0:1.20.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.20.12-1.amzn2023.0.1
fixed
Azure Linux logo
Azure Linux Releases
Azure Package
Release
golang
CBL-Mariner 2.0
0:0.0.0.cm2
fixed
msft-golang
CBL-Mariner 2.0
0:1.20.11-1.cm2
fixed