CVEMETERBack to radar
OFFICIAL RECORD · Go

CVE-2026-39822

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 7.8 · high

Root escape via symlink plus trailing slash in os

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.232% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 7.8 · published by 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T12:40:44.163Z

CVSS 3.1 · 7.8 · published by Ubuntu Security
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T16:49:55.610Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:40:44.163ZNVD
epssverified2026-11-19T16:04:49.616ZFIRST EPSS
patchesverified2026-11-19T12:52:39.236ZOSV
affectedverified2026-11-19T12:58:27.558ZCVE Program
lifecycleverified2026-11-19T12:58:27.558ZCVE Program

Affected versions and configuration

Go standard library os; default status: unaffected: 0 to < 1.25.12 [affected; scheme: semver]; 1.26.0-0 to < 1.26.5 [affected; scheme: semver]; 1.27.0-0 to < 1.27.0-rc.2 [affected; scheme: semver]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "golang-1.23",
    "debian": "https://tracker.debian.org/pkg/golang-1.23",
    "source": "https://ubuntu.com/security/cve?package=golang-1.23",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=golang-1.23",
    "statuses": [
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "resolute"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "ignored",
        "component": null,
        "description": "end of life, was needs-triage",
        "release_codename": "questing"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "stonking"
      }
    ]
  }
]
Archived source JSON
Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "golang-1.22",
    "debian": "https://tracker.debian.org/pkg/golang-1.22",
    "source": "https://ubuntu.com/security/cve?package=golang-1.22",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=golang-1.22",
    "statuses": [
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "focal"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "questing"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "resolute"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "stonking"
      }
    ]
  }
]
Archived source JSON
CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "Go standard library",
      "product": "os",
      "versions": [
        {
          "status": "affected",
          "version": "0",
          "lessThan": "1.25.12",
          "versionType": "semver"
        },
        {
          "status": "affected",
          "version": "1.26.0-0",
          "lessThan": "1.26.5",
          "versionType": "semver"
        },
        {
          "status": "affected",
          "version": "1.27.0-0",
          "lessThan": "1.27.0-rc.2",
          "versionType": "semver"
        }
      ],
      "packageName": "os",
      "collectionURL": "https://pkg.go.dev",
      "defaultStatus": "unaffected",
      "programRoutines": [
        {
          "name": "rootOpenFileNolog"
        },
        {
          "name": "openRootInRoot"
        },
        {
          "name": "OpenInRoot"
        },
        {
          "name": "Root.Create"
        },
        {
          "name": "Root.Open"
        },
        {
          "name": "Root.OpenFile"
        },
        {
          "name": "Root.OpenRoot"
        },
        {
          "name": "Root.ReadFile"
        },
        {
          "name": "Root.WriteFile"
        },
        {
          "name": "rootFS.Open"
        },
        {
          "name": "rootFS.ReadDir"
        },
        {
          "name": "rootFS.ReadFile"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "cvssV3_1": {
            "scope": "UNCHANGED",
            "version": "3.1",
            "baseScore": 7.8,
            "attackVector": "LOCAL",
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "integrityImpact": "HIGH",
            "userInteraction": "NONE",
            "attackComplexity": "LOW",
            "availabilityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "confidentialityImpact": "HIGH"
          }
        },
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2026-39822",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "total"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-07-08T18:06:16.360721Z"
            }
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "type": "CWE",
              "cweId": "CWE-61",
              "description": "CWE-61 UNIX Symbolic Link (Symlink) Following"
            }
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-07-08T19:39:17.341Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GO-2026-4970",
  "aliases": [
    "BIT-golang-2026-39822",
    "CVE-2026-39822"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.25.12"
            },
            {
              "introduced": "1.26.0-0"
            },
            {
              "fixed": "1.26.5"
            },
            {
              "introduced": "1.27.0-0"
            },
            {
              "fixed": "1.27.0-rc.2"
            }
          ]
        }
      ],
      "package": {
        "name": "stdlib",
        "purl": "pkg:golang/stdlib",
        "ecosystem": "Go"
      },
      "versions": [],
      "database_specific": {
        "source": "https://vuln.go.dev/ID/GO-2026-4970.json"
      },
      "ecosystem_specific": {
        "imports": [
          {
            "path": "os",
            "symbols": [
              "OpenInRoot",
              "Root.Create",
              "Root.Open",
              "Root.OpenFile",
              "Root.OpenRoot",
              "Root.ReadFile",
              "Root.WriteFile",
              "openRootInRoot",
              "rootFS.Open",
              "rootFS.ReadDir",
              "rootFS.ReadFile",
              "rootOpenFileNolog"
            ]
          }
        ]
      }
    }
  ],
  "severity": [],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://go.dev/issue/79005",
      "type": "REPORT"
    },
    {
      "url": "https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc",
      "type": "WEB"
    },
    {
      "url": "https://go.dev/cl/797880",
      "type": "FIX"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "url": "https://pkg.go.dev/vuln/GO-2026-4970",
    "review_status": "REVIEWED"
  }
}
Archived source JSON
NVD · nvd-cpe · full conditions
[
  {
    "nodes": [
      {
        "negate": false,
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "4E50284C-BE19-4F62-ABAE-B78B6BECDF49",
            "versionEndExcluding": "1.25.12",
            "versionStartIncluding": "1.24.0"
          },
          {
            "criteria": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "08CDCAED-0C22-42D9-97A8-77F19DEECDB2",
            "versionEndExcluding": "1.26.5",
            "versionStartIncluding": "1.26.0"
          },
          {
            "criteria": "cpe:2.3:a:golang:go:1.27:rc1:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "1062DCC7-46FE-4CF5-ADEF-BEC03F8AB39E"
          }
        ],
        "operator": "OR"
      }
    ]
  }
]
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryGo / packagestdlibNot a distribution channel1.25.12Official record
ecosystem-boundaryGo / packagestdlibNot a distribution channel1.26.5Official record
ecosystem-boundaryGo / packagestdlibNot a distribution channel1.27.0-rc.2Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history