{
  "cveId": "CVE-2022-41720",
  "url": "https://patchblox.com/security/cve/CVE-2022-41720",
  "summary": "CVE-2022-41720 is fixed in 10 products on 1 platform, first by DEBIAN-CVE-2022-41720, released December 7, 2022. It is not reported as exploited. Patch Radar priority: High.",
  "title": "golang-1.19: On Windows, restricted files can be accessed via os.DirFS and http.Dir",
  "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(\u0022C:/tmp\u0022).Open(\u0022COM1\u0022) 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(\u0022\u0022) has changed. Previously, an empty root was treated equivalently to \u0022/\u0022, so os.DirFS(\u0022\u0022).Open(\u0022tmp\u0022) would open the path \u0022/tmp\u0022. This now returns an error.",
  "published": "2022-12-07T17:15:10Z",
  "severity": "high",
  "cvss": 7.5,
  "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
  "epss": 0.01279,
  "epssPercentile": 0.70163,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "delve",
      "release": "ol 8",
      "fixedVersion": "0:1.9.1-1.0.1.module\u002Bel8.7.0\u002B20922\u002B47ac84ba",
      "fix": "ELSA-2023-18908",
      "url": "https://patchblox.com/security/fix/linux/elsa-2023-18908",
      "released": "2023-03-07T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "go-toolset",
      "release": "ol 8",
      "fixedVersion": "0:1.19.4-1.module\u002Bel8.7.0\u002B20922\u002B47ac84ba",
      "fix": "ELSA-2023-18908",
      "url": "https://patchblox.com/security/fix/linux/elsa-2023-18908",
      "released": "2023-03-07T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "golang",
      "release": "ol 8",
      "fixedVersion": "0:1.19.4-2.0.1.module\u002Bel8.7.0\u002B20922\u002B47ac84ba",
      "fix": "ELSA-2023-18908",
      "url": "https://patchblox.com/security/fix/linux/elsa-2023-18908",
      "released": "2023-03-07T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "golang-1.19",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "1.19.4-1",
      "fix": "DEBIAN-CVE-2022-41720",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-41720",
      "released": "2022-12-07T17:15:10Z"
    },
    {
      "platform": "linux",
      "product": "golang-bin",
      "release": "ol 8",
      "fixedVersion": "0:1.19.4-2.0.1.module\u002Bel8.7.0\u002B20922\u002B47ac84ba",
      "fix": "ELSA-2023-18908",
      "url": "https://patchblox.com/security/fix/linux/elsa-2023-18908",
      "released": "2023-03-07T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "golang-docs",
      "release": "ol 8",
      "fixedVersion": "0:1.19.4-2.0.1.module\u002Bel8.7.0\u002B20922\u002B47ac84ba",
      "fix": "ELSA-2023-18908",
      "url": "https://patchblox.com/security/fix/linux/elsa-2023-18908",
      "released": "2023-03-07T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "golang-misc",
      "release": "ol 8",
      "fixedVersion": "0:1.19.4-2.0.1.module\u002Bel8.7.0\u002B20922\u002B47ac84ba",
      "fix": "ELSA-2023-18908",
      "url": "https://patchblox.com/security/fix/linux/elsa-2023-18908",
      "released": "2023-03-07T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "golang-race",
      "release": "ol 8",
      "fixedVersion": "0:1.19.4-2.0.1.module\u002Bel8.7.0\u002B20922\u002B47ac84ba",
      "fix": "ELSA-2023-18908",
      "url": "https://patchblox.com/security/fix/linux/elsa-2023-18908",
      "released": "2023-03-07T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "golang-src",
      "release": "ol 8",
      "fixedVersion": "0:1.19.4-2.0.1.module\u002Bel8.7.0\u002B20922\u002B47ac84ba",
      "fix": "ELSA-2023-18908",
      "url": "https://patchblox.com/security/fix/linux/elsa-2023-18908",
      "released": "2023-03-07T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "golang-tests",
      "release": "ol 8",
      "fixedVersion": "0:1.19.4-2.0.1.module\u002Bel8.7.0\u002B20922\u002B47ac84ba",
      "fix": "ELSA-2023-18908",
      "url": "https://patchblox.com/security/fix/linux/elsa-2023-18908",
      "released": "2023-03-07T00:00:00Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}