ADVISORIES

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

    CVE-2022-41720 Azure Linux Updated 21 April 2026
  • AZL-98604

    CVE-2022-41720 affecting package golang 1.27.1-1

    CVE-2022-41720 Azure Linux Updated 16 September 2026
  • CGA-4m3g-g3wc-78ww
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-4rf5-8qcr-jwhp
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-5gmg-852w-42xw
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-5w35-mw6q-x9w6
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-7785-5mq5-5xpf
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-8pc8-ggmh-hcv6
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-8rw4-6mgx-qwj9
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-9376-4f66-wj2x
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-h7cj-vggq-p7j6
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-hfmr-62w7-9p67
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-jjp7-3j5r-848m
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-jwc8-w9fp-hrvq
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-m4mp-cjrg-wjm8
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-pxvp-v347-jhg9
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-r2c2-wfvf-hx26
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-rm4h-6h9j-xp75
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-wp8h-c98m-7cfp
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-x8v6-v6cf-9r84
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-x96v-xjx6-h97f
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • CGA-xc6m-44ph-4m5g
    CVE-2022-41720 ChainguardWolfi Updated 5 November 2026
  • 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…

    CVE-2022-41720 Debian Updated 20 November 2026
  • ELSA-2023-18908

    ELSA-2023-18908: ol8addon security update (IMPORTANT)

    Important CVE-2022-27664CVE-2022-2879CVE-2022-2880CVE-2022-32190 Oracle Linux Updated 7 March 2023
  • GO-2022-1143

    Restricted file access on Windows in os and net/http

    CVE-2022-41720 Go Updated 4 February 2026
  • SUSE-SU-2022:4397-1

    Security update for go1.19

    CVE-2022-41717CVE-2022-41720 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2022:4398-1

    Security update for go1.18

    CVE-2022-41717CVE-2022-41720 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:0871-1

    Security update for container-suseconnect

    CVE-2022-41720CVE-2022-41723CVE-2022-41724CVE-2022-41725 SUSE Updated 4 February 2026
  • SUSE-SU-2023:2312-1

    Security update for go1.18-openssl

    CVE-2022-1705CVE-2022-1962CVE-2022-24675CVE-2022-27536 SUSEopenSUSE Updated 4 February 2026
  • openSUSE-SU-2024:12552-1

    go1.18-1.18.9-1.1 on GA media

    CVE-2022-41717CVE-2022-41720 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:12553-1

    go1.19-1.19.4-1.1 on GA media

    CVE-2022-41717CVE-2022-41720 openSUSE Updated 4 February 2026

References