Skip to content
Sign in
CVE-2022-417207.5HighCWE-22

CVE-2022-41720: Restricted file access on Windows in os and net/http

Go standard library · os

Vendor fix available · Affected: Go standard library os · Exploitation: possible (1 to 10%)

Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.

1.3%probability of exploitation in the next 30 days
70th percentile
050100

Higher than 70% of scored CVEs

7.5HighCVSS 3.1
LowHigh

DescriptionCVE.org

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.

Affected products2

From the CVE record. A product or version that is not listed is unknown, not unaffected.

  • Go standard library · osbefore 1.18.9; from 1.19.0-0 before 1.19.4
  • Go standard library · net/httpbefore 1.18.9; from 1.19.0-0 before 1.19.4

On the Atlas

Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.

Open the Atlas
Exploitation
Possible (1 to 10%). EPSS between 1% and 10%.
CISA KEV
Not listed
Public check
No public nuclei template
Published
December 2022

CoverageNo articles yet

No CyberSIXT article names CVE-2022-41720 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.

References

Updated AboutDevelopersSign in