Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-41720

published high CVSS 3.1 · 7.5

Restricted file access on Windows in os and net/http

Published
07 Dec 2022, 16:11:18 UTC
Updated
23 Apr 2025, 15:43:46 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Go standard library — os0 to < 1.18.9 · 1.19.0-0 to < 1.19.4 · Other versions: unaffected · Platforms: windows Affected Not stated Go
Go standard library — net/http0 to < 1.18.9 · 1.19.0-0 to < 1.19.4 · Other versions: unaffected · Platforms: windows Affected Not stated Go
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Alpine Linux edge go Fixed 0 Package fix record
Oracle Linux 8 delveaarch64 · go-toolset · ol8addon is enabled Advisory build 0:1.9.1-1.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
SUSE / openSUSE SLE-15-SP1 container-suseconnectaarch64 Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
Alpine Linux v3.17 go Fixed 0 Package fix record
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Alpine Linux v3.18 go Fixed 0 Package fix record
Alpine Linux v3.19 go Fixed 0 Package fix record
Alpine Linux v3.20 go Fixed 0 Package fix record
Alpine Linux v3.21 go Fixed 0 Package fix record
Alpine Linux v3.22 go Fixed 0 Package fix record
Alpine Linux v3.23 go Fixed 0 Package fix record
Alpine Linux v3.24 go Fixed 0 Package fix record
Oracle Linux 8 delvex86_64 · go-toolset · ol8addon is enabled Advisory build 0:1.9.1-1.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 go-toolsetaarch64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 go-toolsetx86_64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golangaarch64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golangx86_64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golang-binaarch64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golang-binx86_64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golang-docsaarch64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golang-docsx86_64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golang-miscaarch64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golang-miscx86_64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golang-racex86_64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golang-srcaarch64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golang-srcx86_64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golang-testsaarch64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
Oracle Linux 8 golang-testsx86_64 · go-toolset · ol8addon is enabled Advisory build 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba ELSA-2023-18908
SUSE / openSUSE SLE-15-SP1 container-suseconnectppc64le Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP1 container-suseconnects390x Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP1 container-suseconnectx86_64 Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP2 container-suseconnectaarch64 Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP2 container-suseconnectppc64le Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP2 container-suseconnects390x Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP2 container-suseconnectx86_64 Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP3 container-suseconnectaarch64 Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP3 container-suseconnectppc64le Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP3 container-suseconnects390x Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP3 container-suseconnectx86_64 Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP3 go1.18aarch64 Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP3 go1.18ppc64le Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP3 go1.18s390x Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP3 go1.18x86_64 Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP3 go1.18-docaarch64 Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP3 go1.18-docppc64le Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP3 go1.18-docs390x Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP3 go1.18-docx86_64 Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP3 go1.18-opensslaarch64 Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP3 go1.18-opensslppc64le Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP3 go1.18-openssls390x Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP3 go1.18-opensslx86_64 Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP3 go1.18-openssl-docaarch64 Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP3 go1.18-openssl-docppc64le Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP3 go1.18-openssl-docs390x Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP3 go1.18-openssl-docx86_64 Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP3 go1.18-openssl-raceaarch64 Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP3 go1.18-openssl-racex86_64 Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP3 go1.18-raceaarch64 Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP3 go1.18-racex86_64 Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP3 go1.19aarch64 Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP3 go1.19ppc64le Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP3 go1.19s390x Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP3 go1.19x86_64 Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP3 go1.19-docaarch64 Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP3 go1.19-docppc64le Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP3 go1.19-docs390x Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP3 go1.19-docx86_64 Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP3 go1.19-raceaarch64 Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP3 go1.19-racex86_64 Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP4 container-suseconnectaarch64 Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP4 container-suseconnectppc64le Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP4 container-suseconnects390x Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP4 container-suseconnectx86_64 Advisory build 2.4.0-150000.4.24.1 SUSE-SU-2023:0871-1
SUSE / openSUSE SLE-15-SP4 go1.18aarch64 Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP4 go1.18ppc64le Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP4 go1.18s390x Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP4 go1.18x86_64 Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP4 go1.18-docaarch64 Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP4 go1.18-docppc64le Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP4 go1.18-docs390x Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP4 go1.18-docx86_64 Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP4 go1.18-opensslaarch64 Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP4 go1.18-opensslppc64le Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP4 go1.18-openssls390x Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP4 go1.18-opensslx86_64 Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP4 go1.18-openssl-docaarch64 Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP4 go1.18-openssl-docppc64le Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP4 go1.18-openssl-docs390x Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP4 go1.18-openssl-docx86_64 Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP4 go1.18-openssl-raceaarch64 Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP4 go1.18-openssl-racex86_64 Advisory build 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE / openSUSE SLE-15-SP4 go1.18-raceaarch64 Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP4 go1.18-racex86_64 Advisory build 1.18.9-150000.1.40.1 SUSE-SU-2022:4398-1
SUSE / openSUSE SLE-15-SP4 go1.19aarch64 Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP4 go1.19ppc64le Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP4 go1.19s390x Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP4 go1.19x86_64 Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP4 go1.19-docaarch64 Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP4 go1.19-docppc64le Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP4 go1.19-docs390x Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1
SUSE / openSUSE SLE-15-SP4 go1.19-docx86_64 Advisory build 1.19.4-150000.1.18.1 SUSE-SU-2022:4397-1

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · Go · cna

Vendor advisories explicitly linked to this CVE.

28

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.5 / 10
Severity
high
Provider
CISA-ADP · adp
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Go standard library os 0 to < 1.18.9 (affected · semver)1.19.0-0 to < 1.19.4 (affected · semver)Default: unaffected Go · cna
Go standard library net/http 0 to < 1.18.9 (affected · semver)1.19.0-0 to < 1.19.4 (affected · semver)Default: unaffected Go · cna

Weaknesses

1
  • CWE 22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (Go · cna)

References

4

Provider assertions

3

Go · cna

Restricted file access on Windows in os and net/http

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
66b70cdf4938dcf931f04edce9cae67a43bd3655f147832b156bd2895c4b1850
Ingested
23 Sep 2026, 08:02:45 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected