CVE-2022-41720
Fixed in a distro release EPSS 1%CVSS 7.5
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.
Products: Go standard library os, Go standard library net/http
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| Go | stdlib | 1.18.9 |
| Go | stdlib | 1.19.4 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | katib-earlystopping | 0.19.0-r31 |
| Chainguard | katib-suggestion-goptuna-compat | no fix |
| Chainguard | katib-suggestion-hyperband | 0.19.0-r31 |
| Chainguard | katib-suggestion-hyperopt | 0.19.0-r40 |
| Chainguard | katib-suggestion-hyperopt | 0.19.0-r31 |
| Chainguard | katib-suggestion-nas-darts | 0.19.0-r31 |
| Chainguard | katib-suggestion-nas-enas | 0.19.0-r31 |
| Chainguard | katib-suggestion-optuna-enas | 0.19.0-r31 |
| Chainguard | katib-suggestion-pbt-enas | 0.19.0-r31 |
| Chainguard | katib-suggestion-skopt-enas | 0.19.0-r31 |
| Chainguard | katib-tfevent-metricscollector | 0.19.0-r31 |
| Debian 12 | golang-1.19 | 1.19.4-1 |
| SUSE Enterprise Storage 7 | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Enterprise Storage 7.1 | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Enterprise Storage 7.1 | go1.18-openssl | 1.18.10.1-150000.1.9.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | go1.18-openssl | 1.18.10.1-150000.1.9.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | go1.18-openssl | 1.18.10.1-150000.1.9.1 |
| SUSE Linux Enterprise Module for Containers 15 SP4 | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | go1.18 | 1.18.9-150000.1.40.1 |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | go1.19 | 1.19.4-150000.1.18.1 |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | go1.18 | 1.18.9-150000.1.40.1 |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | go1.18-openssl | 1.18.10.1-150000.1.9.1 |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | go1.19 | 1.19.4-150000.1.18.1 |
| SUSE Linux Enterprise Real Time 15 SP3 | go1.18-openssl | 1.18.10.1-150000.1.9.1 |
| SUSE Linux Enterprise Server 15 SP1-LTSS | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Linux Enterprise Server 15 SP2-LTSS | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Linux Enterprise Server 15 SP3-LTSS | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Linux Enterprise Server 15 SP3-LTSS | go1.18-openssl | 1.18.10.1-150000.1.9.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | container-suseconnect | 2.4.0-150000.4.24.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | go1.18-openssl | 1.18.10.1-150000.1.9.1 |
| Wolfi | katib-earlystopping | 0.19.0-r31 |
| Wolfi | katib-suggestion-goptuna-compat | no fix |
| Wolfi | katib-suggestion-hyperband | 0.19.0-r31 |
| Wolfi | katib-suggestion-hyperopt | 0.19.0-r31 |
| Wolfi | katib-suggestion-hyperopt | 0.19.0-r40 |
| Wolfi | katib-suggestion-nas-darts | 0.19.0-r31 |
| Wolfi | katib-suggestion-nas-enas | 0.19.0-r31 |
| Wolfi | katib-suggestion-optuna-enas | 0.19.0-r31 |
| Wolfi | katib-suggestion-pbt-enas | 0.19.0-r31 |
| Wolfi | katib-suggestion-skopt-enas | 0.19.0-r31 |
| Wolfi | katib-tfevent-metricscollector | 0.19.0-r31 |
| openSUSE Leap 15.3 | go1.18 | 1.18.9-150000.1.40.1 |
| openSUSE Leap 15.3 | go1.19 | 1.19.4-150000.1.18.1 |
| openSUSE Leap 15.4 | go1.18 | 1.18.9-150000.1.40.1 |
| openSUSE Leap 15.4 | go1.18-openssl | 1.18.10.1-150000.1.9.1 |
| openSUSE Leap 15.4 | go1.19 | 1.19.4-150000.1.18.1 |
| openSUSE Leap 15.5 | go1.18-openssl | 1.18.10.1-150000.1.9.1 |
| openSUSE Tumbleweed | go1.18 | 1.18.9-1.1 |
| openSUSE Tumbleweed | go1.19 | 1.19.4-1.1 |