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.
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
---
---
CISA-ADPADP
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: 12%
VendorProductVersion
golanggo
𝑥
< 1.18.9
golanggo
1.19.0 ≤
𝑥
< 1.19.4
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
golang-1.15
bullseye
unimportant
golang-1.19
bookworm
1.19.8-2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
golang
kinetic
dne
jammy
dne
focal
dne
bionic
dne
xenial
ignored
trusty
ignored
golang-1.10
kinetic
dne
jammy
dne
focal
dne
bionic
not-affected
xenial
not-affected
trusty
not-affected
golang-1.13
lunar
dne
kinetic
not-affected
jammy
not-affected
focal
not-affected
bionic
not-affected
xenial
not-affected
trusty
dne
golang-1.14
kinetic
dne
jammy
dne
focal
not-affected
bionic
dne
xenial
dne
trusty
dne
golang-1.16
kinetic
dne
jammy
dne
focal
not-affected
bionic
not-affected
xenial
ignored
trusty
ignored
golang-1.17
kinetic
dne
jammy
not-affected
focal
dne
bionic
dne
xenial
ignored
trusty
ignored
golang-1.18
lunar
dne
kinetic
dne
jammy
not-affected
focal
not-affected
bionic
not-affected
xenial
ignored
trusty
ignored
golang-1.6
kinetic
dne
jammy
dne
focal
dne
bionic
dne
xenial
not-affected
trusty
ignored
golang-1.8
kinetic
dne
jammy
dne
focal
dne
bionic
not-affected
xenial
dne
trusty
dne
golang-1.9
kinetic
dne
jammy
dne
focal
dne
bionic
not-affected
xenial
dne
trusty
dne