Vulnerability
CVE-2022-41720
On Windows, restricted files can be accessed via os.DirFS and http.Dir. The os.DirFS function and http.Dir type provide access to a tree of files rooted at a given directory. These functions permit access to Windows device files under that root. For example, os.DirFS("C:/tmp").Open("COM1") opens the COM1 device. Both os.DirFS and http.Dir only provide read-only filesystem access. In addition, on Windows, an os.DirFS for the directory (the root of the current drive) can permit a maliciously crafted path to escape from the drive and access any path on the system. With fix applied, the behavior of os.DirFS("") has changed. Previously, an empty root was treated equivalently to "/", so os.DirFS("").Open("tmp") would open the path "/tmp". This now returns an error.
31 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
AZL-79038
CVE-2022-41720 affecting package golang 1.25.7-1
-
AZL-98604
CVE-2022-41720 affecting package golang 1.27.1-1
- CGA-4m3g-g3wc-78ww
- CGA-4rf5-8qcr-jwhp
- CGA-5gmg-852w-42xw
- CGA-5w35-mw6q-x9w6
- CGA-7785-5mq5-5xpf
- CGA-8pc8-ggmh-hcv6
- CGA-8rw4-6mgx-qwj9
- CGA-9376-4f66-wj2x
- CGA-h7cj-vggq-p7j6
- CGA-hfmr-62w7-9p67
- CGA-jjp7-3j5r-848m
- CGA-jwc8-w9fp-hrvq
- CGA-m4mp-cjrg-wjm8
- CGA-pxvp-v347-jhg9
- CGA-r2c2-wfvf-hx26
- CGA-rm4h-6h9j-xp75
- CGA-wp8h-c98m-7cfp
- CGA-x8v6-v6cf-9r84
- CGA-x96v-xjx6-h97f
- CGA-xc6m-44ph-4m5g
-
DEBIAN-CVE-2022-41720
On Windows, restricted files can be accessed via os.DirFS and http.Dir. The os.DirFS function and http.Dir type provide access to a tree of files rooted at a given directory. These functions permit access to Windows…
-
ELSA-2023-18908
ELSA-2023-18908: ol8addon security update (IMPORTANT)
-
GO-2022-1143
Restricted file access on Windows in os and net/http
-
SUSE-SU-2022:4397-1
Security update for go1.19
-
SUSE-SU-2022:4398-1
Security update for go1.18
-
SUSE-SU-2023:0871-1
Security update for container-suseconnect
-
SUSE-SU-2023:2312-1
Security update for go1.18-openssl
-
openSUSE-SU-2024:12552-1
go1.18-1.18.9-1.1 on GA media
-
openSUSE-SU-2024:12553-1
go1.19-1.19.4-1.1 on GA media