CVE-2022-41720
Windows os.DirFS and http.Dir Directory Traversal Vulnerability
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.
INFO
Published Date :
Dec. 7, 2022, 5:15 p.m.
Last Modified :
Dec. 12, 2022, 2:58 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-41720
.
URL | Resource |
---|---|
https://go.dev/cl/455716 | Patch Vendor Advisory |
https://go.dev/issue/56694 | Issue Tracking Vendor Advisory |
https://groups.google.com/g/golang-announce/c/L_3rmdT0BMU/m/yZDrXjIiBQAJ | Patch Release Notes Third Party Advisory |
https://pkg.go.dev/vuln/GO-2022-1143 | Patch Vendor Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-41720
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-41720
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Dec. 12, 2022
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Changed Reference Type https://go.dev/cl/455716 No Types Assigned https://go.dev/cl/455716 Patch, Vendor Advisory Changed Reference Type https://go.dev/issue/56694 No Types Assigned https://go.dev/issue/56694 Issue Tracking, Vendor Advisory Changed Reference Type https://groups.google.com/g/golang-announce/c/L_3rmdT0BMU/m/yZDrXjIiBQAJ No Types Assigned https://groups.google.com/g/golang-announce/c/L_3rmdT0BMU/m/yZDrXjIiBQAJ Patch, Release Notes, Third Party Advisory Changed Reference Type https://pkg.go.dev/vuln/GO-2022-1143 No Types Assigned https://pkg.go.dev/vuln/GO-2022-1143 Patch, Vendor Advisory Added CWE NIST CWE-22 Added CPE Configuration AND OR *cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* versions up to (excluding) 1.18.9 *cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* versions from (including) 1.19.0 up to (excluding) 1.19.4 OR cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-41720
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-41720
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.16 }} -0.00%
score
0.53375
percentile