Name | CVE-2022-41720 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
golang-1.11 (PTS) | buster (security), buster, buster (lts) | 1.11.6-1+deb10u7 | vulnerable |
golang-1.15 (PTS) | bullseye | 1.15.15-1~deb11u4 | vulnerable |
golang-1.19 (PTS) | bookworm | 1.19.8-2 | fixed |
golang-1.7 (PTS) | stretch (security), stretch (lts), stretch | 1.7.4-2+deb9u5 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
golang-1.11 | source | (unstable) | (unfixed) | unimportant | ||
golang-1.15 | source | (unstable) | (unfixed) | unimportant | ||
golang-1.18 | source | (unstable) | 1.18.9-1 | unimportant | ||
golang-1.19 | source | (unstable) | 1.19.4-1 | unimportant | ||
golang-1.7 | source | (unstable) | (not affected) |
https://groups.google.com/g/golang-announce/c/L_3rmdT0BMU
https://go.dev/issue/56694
Only affects code cross compiled on Debian for Windows binaries
- golang-1.7 <not-affected> (Only affects Go on Windows)