{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": [
              "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
              "cpe:2.3:a:golang:go:1.27:rc1:*:*:*:*:*:*"
            ],
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.25.12"
              },
              {
                "introduced": "1.26.0"
              },
              {
                "fixed": "1.26.5"
              },
              {
                "introduced": "1.27-rc1"
              },
              {
                "last_affected": "1.27-rc1"
              }
            ],
            "source": [
              "CPE_RANGE",
              "CPE_STRING"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d80d9a98f7e3a8f9b3a82d2c6079f84eb1101d46"
            },
            {
              "introduced": "d90b98e65320778f3b1f99a6951ab20f04d218b3"
            },
            {
              "fixed": "c19862e5f8415b4f24b189d065ed739517c548ba"
            },
            {
              "introduced": "eefb454307250192f45fa3718685e4c0a90e281d"
            },
            {
              "last_affected": "eefb454307250192f45fa3718685e4c0a90e281d"
            }
          ],
          "repo": "https://github.com/golang/go",
          "type": "GIT"
        }
      ],
      "versions": [
        "1.27-rc1"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Go",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39822.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "fixed": "1.25.12"
          },
          {
            "introduced": "1.26.0-0"
          },
          {
            "fixed": "1.26.5"
          },
          {
            "introduced": "1.27.0-0"
          },
          {
            "fixed": "1.27.0-rc.2"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a symbolic link and the path ends in /. For example, 'root.Open(\"symlink/\")' will open \"symlink\" even when \"symlink\" is a symbolic link pointing outside of the root.",
  "id": "CVE-2026-39822",
  "modified": "2026-07-16T03:31:09.209388608Z",
  "published": "2026-07-08T15:46:27.199Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://go.dev/cl/797880"
    },
    {
      "type": "WEB",
      "url": "https://go.dev/issue/79005"
    },
    {
      "type": "WEB",
      "url": "https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc"
    },
    {
      "type": "WEB",
      "url": "https://pkg.go.dev"
    },
    {
      "type": "WEB",
      "url": "https://pkg.go.dev/vuln/GO-2026-4970"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39822.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-39822"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Root escape via symlink plus trailing slash in os"
}