Vulnerability
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.
590 advisories report this vulnerability, across 9 ecosystems.
Advisories
-
ALAS2-2024-2388
Amazon Linux 2 2017.12 - ALAS2-2024-2388: medium priority package update for golang
-
ALAS2023-2024-477
Amazon Linux 2023 - ALAS2023-2024-477: Medium priority package update for golang
-
AZL-31897
CVE-2023-45283 affecting package msft-golang for versions less than 1.20.11-1
-
AZL-37397
CVE-2023-45283 affecting package golang for versions less than 1.21.6-1
-
AZL-37444
CVE-2023-45283 affecting package golang for versions less than 1.21.6-1
-
AZL-79034
CVE-2023-45283 affecting package golang 1.26.11-1
-
AZL-98664
CVE-2023-45283 affecting package golang 1.27.1-1
- CGA-2394-2mg2-h6pp
- CGA-23rg-f8fp-x6xq
- CGA-256j-42g7-94gc
- CGA-25c2-6jvx-45fr
- CGA-25c3-cp9r-6wrx
- CGA-25qc-9rpr-7v36
- CGA-25r4-g4jx-9pfh
- CGA-267q-mj5x-356j
- CGA-26c8-4953-jpr3
- CGA-26mh-pggj-rgq8
- CGA-26r3-8vw6-7f6j
- CGA-279v-c8hg-547v
- CGA-27jm-fc8r-jhw4
- CGA-27m2-9f3m-46j9
- CGA-28vr-x629-5gq8
- CGA-29w6-5wq2-xvww
- CGA-2c25-rrv9-5395
- CGA-2cjv-v72h-xp43
- CGA-2cw5-372m-cg7q
- CGA-2f7v-4chw-7vm5
- CGA-2f9m-fv4h-4jq3
- CGA-2fx9-9jx4-g8xq
- CGA-2hmx-76g3-4x64
- CGA-2hqp-6x73-rm3g
- CGA-2j9w-4qqh-5339
- CGA-2p8j-f657-jc5f
- CGA-2p92-fw92-vr6x
- CGA-2pcf-94mc-hwjj
- CGA-2pr6-52r7-66c7
- CGA-2qp3-55f9-74hp
- CGA-2r2x-3ggj-4rv8
- CGA-2r3v-j445-5h5h
- CGA-2r9h-m399-56hg
- CGA-2rh5-8p3r-x32p
- CGA-2v22-xr45-fm63
- CGA-2v33-vp32-mmq9
- CGA-2vcm-37q5-87jp
- CGA-2vhj-93cg-4gxh
- CGA-2vwf-rw6p-g982
- CGA-2xxj-jv3v-6gg5
- CGA-32rf-qqw7-5r74
- CGA-32w4-524j-2rc4
- CGA-3332-q8rq-vmqm
- CGA-3367-pffh-3g6c
- CGA-3394-fw4m-5v82
- CGA-34c4-j3wc-83hj
- CGA-3532-2fg9-g5wm
- CGA-3558-2899-f3vp
- CGA-35gv-r943-vg58
- CGA-35rc-5qw3-33fc
- CGA-36q4-627m-2gm8
- CGA-372j-74gq-hpc5
- CGA-387w-65p8-433j
- CGA-38c9-xmm8-6q7v
- CGA-38j3-4jqc-hwmr
- CGA-39h2-9mxq-mvg4
- CGA-39pg-84m2-v3p6
- CGA-3c23-c27q-wfcc
- CGA-3cg7-q92j-fxvq
- CGA-3hg7-2hjw-6hpr
- CGA-3hgq-7j85-3vgj
- CGA-3m2g-mc39-jw3h
- CGA-3m4f-g5qx-v6h7
- CGA-3mj6-g8mg-gx3x
- CGA-3q7v-x6wq-47cc
- CGA-3q9c-xv77-932x
- CGA-3qh7-grmm-w3h5
- CGA-3r52-545c-g649
- CGA-3r8q-jhpf-pf43
- CGA-3v2v-v8m3-w6pc
- CGA-3vg5-6xw6-gh2p
- CGA-3wg3-xwp2-7w3w
- CGA-3wmm-w7gf-r88c
- CGA-3wq4-vcwv-qv46
- CGA-3wxw-fp8p-c3hw
- CGA-3xv8-4cr2-rp38
- CGA-4278-hwc7-v745
- CGA-428m-fh22-xp44
- CGA-42vv-hcwc-hrc4
- CGA-433p-3x5h-p889
- CGA-4449-6p75-w5cg
- CGA-44xh-2rq2-rv84
- CGA-45w8-mcvh-vgj3
- CGA-45x8-7mqf-g24g
- CGA-46j7-w854-6c6h
- CGA-47f2-23x2-73jm
- CGA-47pf-27rm-m7wq
- CGA-47w3-gqrq-v7pm
- CGA-4853-xx5j-fcfv
- CGA-4g54-889q-54qc
- CGA-4g55-h8hj-6q3m
- CGA-4m32-xhcm-9c27
- CGA-4p7p-mgf7-vj86
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2023-45283.
References
- http://www.openwall.com/lists/oss-security/2023/12/05/2
- https://go.dev/cl/540277
- https://go.dev/cl/541175
- https://go.dev/issue/63713
- https://go.dev/issue/64028
- https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY
- https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ
- https://pkg.go.dev/vuln/GO-2023-2185
- https://security.netapp.com/advisory/ntap-20231214-0008/