Lucene search
K

CVE-2022-41720

🗓️ 07 Dec 2022 16:11:18Reported by GoType 
cve
 cve
🔗 web.nvd.nist.gov👁 211 Views

On Windows, os.DirFS and http.Dir can access restricted files, including Windows device files like COM1. Maliciously crafted paths can escape drive root and access system paths. Fixes applied for os.DirFS("")

Related
Detection
Affected
Refs
NVD
Node
golanggoRange<1.18.9
OR
golanggoRange1.19.01.19.4
AND
[
  {
    "vendor": "Go standard library",
    "product": "os",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "os",
    "versions": [
      {
        "version": "0",
        "lessThan": "1.18.9",
        "status": "affected",
        "versionType": "semver"
      },
      {
        "version": "1.19.0-0",
        "lessThan": "1.19.4",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "platforms": [
      "windows"
    ],
    "programRoutines": [
      {
        "name": "dirFS.Open"
      },
      {
        "name": "dirFS.Stat"
      },
      {
        "name": "DirFS"
      }
    ],
    "defaultStatus": "unaffected"
  },
  {
    "vendor": "Go standard library",
    "product": "net/http",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "net/http",
    "versions": [
      {
        "version": "0",
        "lessThan": "1.18.9",
        "status": "affected",
        "versionType": "semver"
      },
      {
        "version": "1.19.0-0",
        "lessThan": "1.19.4",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "platforms": [
      "windows"
    ],
    "programRoutines": [
      {
        "name": "Dir.Open"
      },
      {
        "name": "ServeFile"
      },
      {
        "name": "fileHandler.ServeHTTP"
      },
      {
        "name": "fileTransport.RoundTrip"
      }
    ],
    "defaultStatus": "unaffected"
  }
]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Apr 2025 16:15Current
7.4High risk
Vulners AI Score7.4
CVSS 3.17.5
EPSS0.00035
SSVC
211