Read the docs
TI-2022-20111 Aliases CVE-2022-41720GHSA-cvf9-g74c-vv79

Restricted file access on Windows in os and net/http

Priority MEDIUM 41CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Partial Red Hat: 2 without a fix

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat. Impact type from CWE-22 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01279 70th percentileScored 2026-11-07
Fix Partial os (Go standard library): 1.18.9, 1.19.4net/http (Go standard library): 1.18.9, 1.19.4Red Hat: 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Go standard libraryosbefore 1.18.9; 1.19.0-0 to before 1.19.41.18.9, 1.19.4Patch availableCNA
Go standard librarynet/httpbefore 1.18.9; 1.19.0-0 to before 1.19.41.18.9, 1.19.4Patch availableCNA
  • os VendorGo standard library Affected before 1.18.9; 1.19.0-0 to before 1.19.4 Fixed in 1.18.9, 1.19.4 Patch available CNA
  • net/http VendorGo standard library Affected before 1.18.9; 1.19.0-0 to before 1.19.4 Fixed in 1.18.9, 1.19.4 Patch available CNA

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*before 1.18.9; 1.19.0 to before 1.19.4VulnerableGo standard library
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*not specified by NVDRunning onMicrosoft
  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* Versions before 1.18.9; 1.19.0 to before 1.19.4 Vulnerable ·Go standard library
  • cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Microsoft

Remediation

  • Fix · CNA os (Go standard library) Fixed in 1.18.9, 1.19.4
  • Fix · CNA net/http (Go standard library) Fixed in 1.18.9, 1.19.4

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Application Interconnect 1.0AffectedNo fix yet
Service Telemetry Framework 1.5AffectedNo fix yet
Not affected: 40 products
  • Cryostat 2
  • Custom Metric Autoscaler operator for Red Hat Openshift
  • Logging Subsystem for Red Hat OpenShift
  • Migration Toolkit for Applications 6
  • Migration Toolkit for Containers
  • Migration Toolkit for Virtualization
  • Node HealthCheck Operator
  • Node Maintenance Operator
  • OpenShift API for Data Protection
  • OpenShift Developer Tools and Services
  • OpenShift Pipelines
  • OpenShift Secondary Scheduler Operator
  • OpenShift Serverless
  • OpenShift Service Mesh 2
  • Red Hat 3scale API Management Platform 2
  • Red Hat Advanced Cluster Management for Kubernetes 2
  • Red Hat Advanced Cluster Security 3
  • Red Hat Ansible Automation Platform 2
  • Red Hat Ceph Storage 3
  • Red Hat Ceph Storage 5
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat OpenShift Container Platform 4
  • Red Hat OpenShift Dev Spaces
  • Red Hat OpenShift GitOps
  • Red Hat OpenShift Virtualization 4
  • Red Hat OpenShift distributed tracing 2
  • Red Hat OpenShift on AWS
  • Red Hat OpenStack Platform 16.2
  • Red Hat OpenStack Platform 17.0
  • Red Hat Openshift Data Foundation 4
  • Red Hat Openshift Sandboxed Containers
  • Red Hat Quay 3
  • Red Hat Satellite 6
  • Red Hat Storage 3
  • Red Hat Web Terminal
  • Self Node Remediation Operator
  • Service Telemetry Framework 1.4 for RHEL 8
  • cert-manager Operator for Red Hat OpenShift
  • streams for Apache Kafka

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-41720
  2. 2026-10-03 Alias added: GHSA-cvf9-g74c-vv79

References

  • TI-2020-00578 Improper certificate validation in Microsoft Windows KEVCVSS 3.1HIGH 8.1
  • TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
  • TI-2018-05208 The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used… CVSS 3.1HIGH 8.8
  • TI-2018-12083 Improper input validation in [UNKNOWN] golang CVSS 3.1HIGH 8.1
  • TI-2024-16306 Mishandling of corrupt central directory record in archive/zip CVSS 3.1MEDIUM 5.5
  • TI-2021-15910 Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in a… CVSS 3.1CRITICAL 9.8
See all 170 →

Sources