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
NISTNIST
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
GoCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 20%
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
oracular
dne
noble
dne
mantic
dne
lunar
dne
jammy
dne
focal
dne
bionic
ignored
xenial
ignored
trusty
ignored
golang-1.10
oracular
dne
noble
dne
mantic
dne
lunar
dne
jammy
dne
focal
dne
bionic
needs-triage
xenial
needs-triage
trusty
ignored
golang-1.13
oracular
dne
noble
dne
mantic
dne
lunar
dne
jammy
needs-triage
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
trusty
dne
golang-1.14
oracular
dne
noble
dne
mantic
dne
lunar
dne
jammy
dne
focal
needs-triage
bionic
dne
xenial
dne
trusty
dne
golang-1.16
oracular
dne
noble
dne
mantic
dne
lunar
dne
jammy
dne
focal
needs-triage
bionic
needs-triage
xenial
dne
trusty
dne
golang-1.17
oracular
dne
noble
dne
mantic
dne
lunar
dne
jammy
needs-triage
focal
dne
bionic
dne
xenial
dne
trusty
dne
golang-1.18
oracular
dne
noble
dne
mantic
dne
lunar
dne
jammy
needs-triage
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
trusty
dne
golang-1.19
oracular
dne
noble
dne
mantic
dne
lunar
ignored
jammy
dne
focal
dne
bionic
dne
xenial
dne
trusty
dne
golang-1.20
oracular
dne
noble
dne
mantic
not-affected
lunar
not-affected
jammy
not-affected
focal
not-affected
bionic
dne
xenial
dne
trusty
dne
golang-1.21
oracular
dne
noble
not-affected
mantic
not-affected
lunar
not-affected
jammy
not-affected
focal
not-affected
bionic
dne
xenial
dne
trusty
dne
golang-1.6
oracular
dne
noble
dne
mantic
dne
lunar
dne
jammy
dne
focal
dne
bionic
dne
xenial
needs-triage
trusty
ignored
golang-1.8
oracular
dne
noble
dne
mantic
dne
lunar
dne
jammy
dne
focal
dne
bionic
needs-triage
xenial
dne
trusty
dne
golang-1.9
oracular
dne
noble
dne
mantic
dne
lunar
dne
jammy
dne
focal
dne
bionic
needs-triage
xenial
dne
trusty
dne