CVE catalog

CVE-2022-41720

golang-1.19: CVE-2022-41720

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
1.28% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangolang-1.19bookworm1.19.8-2fixed
Susecontainer-suseconnectlinux enterprise module for containers 15 sp42.4.0-150000.4.24.1fixed
Susecontainer-suseconnectlinux enterprise high performance computing 15 sp1-ltss2.4.0-150000.4.24.1fixed
Susecontainer-suseconnectlinux enterprise high performance computing 15 sp2-ltss2.4.0-150000.4.24.1fixed
Susecontainer-suseconnectlinux enterprise high performance computing 15 sp3-espos2.4.0-150000.4.24.1fixed
Susecontainer-suseconnectlinux enterprise high performance computing 15 sp3-ltss2.4.0-150000.4.24.1fixed
Susecontainer-suseconnectlinux enterprise server 15 sp1-ltss2.4.0-150000.4.24.1fixed
Susecontainer-suseconnectlinux enterprise server 15 sp2-ltss2.4.0-150000.4.24.1fixed
Susecontainer-suseconnectlinux enterprise server 15 sp3-ltss2.4.0-150000.4.24.1fixed
Susecontainer-suseconnectlinux enterprise server for sap applications 15 sp12.4.0-150000.4.24.1fixed
Susecontainer-suseconnectlinux enterprise server for sap applications 15 sp22.4.0-150000.4.24.1fixed
Susecontainer-suseconnectlinux enterprise server for sap applications 15 sp32.4.0-150000.4.24.1fixed
Susecontainer-suseconnectenterprise storage 72.4.0-150000.4.24.1fixed
Susecontainer-suseconnectenterprise storage 7.12.4.0-150000.4.24.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-1.19sourcebookworm1.19.4-1unimportantNot reportedNot reported
Susecontainer-suseconnectrpmlinux enterprise module for containers 15 sp42.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported
Susecontainer-suseconnectrpmlinux enterprise high performance computing 15 sp1-ltss2.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported
Susecontainer-suseconnectrpmlinux enterprise high performance computing 15 sp2-ltss2.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported
Susecontainer-suseconnectrpmlinux enterprise high performance computing 15 sp3-espos2.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported
Susecontainer-suseconnectrpmlinux enterprise high performance computing 15 sp3-ltss2.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported
Susecontainer-suseconnectrpmlinux enterprise server 15 sp1-ltss2.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported
Susecontainer-suseconnectrpmlinux enterprise server 15 sp2-ltss2.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported
Susecontainer-suseconnectrpmlinux enterprise server 15 sp3-ltss2.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported
Susecontainer-suseconnectrpmlinux enterprise server for sap applications 15 sp12.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported
Susecontainer-suseconnectrpmlinux enterprise server for sap applications 15 sp22.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported
Susecontainer-suseconnectrpmlinux enterprise server for sap applications 15 sp32.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported
Susecontainer-suseconnectrpmenterprise storage 72.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported
Susecontainer-suseconnectrpmenterprise storage 7.12.4.0-150000.4.24.1Not reportedSUSE-SU-2023:0871-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 1.19.8-2 · all · bookworm

      Fixed · Fixed: 1.19.4-1

      dsa · golang-1.19 · debian · bookworm

    • 1.19.8-2 · all · bookworm

      Fixed · Fixed: 1.19.4-1

      dsa · golang-1.19 · debian · bookworm

  • Source package: [golang-1.19]

    Details (2)
    • 1.19.8-2 · all · bookworm

      Fixed · Fixed: 1.19.4-1

      dsa · golang-1.19 · debian · bookworm

    • 1.19.8-2 · all · bookworm

      Fixed · Fixed: 1.19.4-1

      dsa · golang-1.19 · debian · bookworm

  • Source package: [golang-1.19]

    Details (2)
    • 1.19.8-2 · amd64 · bookworm

      Fixed · Fixed: 1.19.4-1

      dsa · golang-1.19 · debian · bookworm

    • 1.19.8-2 · arm64 · bookworm

      Fixed · Fixed: 1.19.4-1

      dsa · golang-1.19 · debian · bookworm

  • Source package: [golang-1.19]

    Details (2)
    • 1.19.8-2 · all · bookworm

      Fixed · Fixed: 1.19.4-1

      dsa · golang-1.19 · debian · bookworm

    • 1.19.8-2 · all · bookworm

      Fixed · Fixed: 1.19.4-1

      dsa · golang-1.19 · debian · bookworm

Observed:

References