CVE-2026-39822 (GCVE-0-2026-39822)

Vulnerability from cvelistv5 – Published: 2026-07-08 15:46 – Updated: 2026-07-08 19:39
VLAI
Title
Root escape via symlink plus trailing slash in os
Summary
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.
SSVC
Exploitation: none Automatable: no Technical Impact: total
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-07-08 18:06 UTC
CWE
  • CWE-61 - UNIX Symbolic Link (Symlink) Following
Assigner
Go CNA under the Google root
CNA scorecard E 42/100 over 76 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Go standard library os Affected: 0 , < 1.25.12 (semver)
Affected: 1.26.0-0 , < 1.26.5 (semver)
Affected: 1.27.0-0 , < 1.27.0-rc.2 (semver)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 7.8,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "HIGH",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2026-39822",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-07-08T18:06:16.360721Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-61",
                "description": "CWE-61 UNIX Symbolic Link (Symlink) Following",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-07-08T19:39:17.341Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "collectionURL": "https://pkg.go.dev",
          "defaultStatus": "unaffected",
          "packageName": "os",
          "product": "os",
          "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"
            }
          ],
          "vendor": "Go standard library",
          "versions": [
            {
              "lessThan": "1.25.12",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThan": "1.26.5",
              "status": "affected",
              "version": "1.26.0-0",
              "versionType": "semver"
            },
            {
              "lessThan": "1.27.0-rc.2",
              "status": "affected",
              "version": "1.27.0-0",
              "versionType": "semver"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "Mundur (https://github.com/M0nd0R)"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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, \u0027root.Open(\"symlink/\")\u0027 will open \"symlink\" even when \"symlink\" is a symbolic link pointing outside of the root."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "CWE-61: UNIX Symbolic Link (Symlink) Following",
              "lang": "en"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-07-08T15:46:27.199Z",
        "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "shortName": "Go"
      },
      "references": [
        {
          "url": "https://go.dev/issue/79005"
        },
        {
          "url": "https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc"
        },
        {
          "url": "https://go.dev/cl/797880"
        },
        {
          "url": "https://pkg.go.dev/vuln/GO-2026-4970"
        }
      ],
      "title": "Root escape via symlink plus trailing slash in os"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
    "assignerShortName": "Go",
    "cveId": "CVE-2026-39822",
    "datePublished": "2026-07-08T15:46:27.199Z",
    "dateReserved": "2026-04-07T18:13:03.527Z",
    "dateUpdated": "2026-07-08T19:39:17.341Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-39822",
      "date": "2026-11-16",
      "epss": "0.00232",
      "percentile": "0.14235"
    },
    "microsoft_vex": {
      "current_release_date": "2026-08-13T00:12:02.000Z",
      "cve": "CVE-2026-39822",
      "id": "msrc_CVE-2026-39822",
      "initial_release_date": "2026-07-15T01:01:36.000Z",
      "product_status:fixed": "1",
      "product_status:known_affected": "2",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "Root escape via symlink plus trailing slash in os",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-39822.json",
      "version": "2"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "collectionURL": "https://pkg.go.dev",
                "defaultStatus": "unaffected",
                "packageName": "os",
                "product": "os",
                "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"
                  }
                ],
                "vendor": "Go standard library",
                "versions": [
                  {
                    "lessThan": "1.25.12",
                    "status": "affected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "1.26.5",
                    "status": "affected",
                    "version": "1.26.0-0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "1.27.0-rc.2",
                    "status": "affected",
                    "version": "1.27.0-0",
                    "versionType": "semver"
                  }
                ]
              }
            ],
            "source": "security@golang.org"
          }
        ],
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "4E50284C-BE19-4F62-ABAE-B78B6BECDF49",
                    "versionEndExcluding": "1.25.12",
                    "versionStartIncluding": "1.24.0",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "08CDCAED-0C22-42D9-97A8-77F19DEECDB2",
                    "versionEndExcluding": "1.26.5",
                    "versionStartIncluding": "1.26.0",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:golang:go:1.27:rc1:*:*:*:*:*:*",
                    "matchCriteriaId": "1062DCC7-46FE-4CF5-ADEF-BEC03F8AB39E",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "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, \u0027root.Open(\"symlink/\")\u0027 will open \"symlink\" even when \"symlink\" is a symbolic link pointing outside of the root."
          },
          {
            "lang": "es",
            "value": "En sistemas Unix, abrir un archivo en un os.Root sigue incorrectamente los enlaces simb\u00f3licos a ubicaciones fuera del Root cuando el componente final de una ruta es un enlace simb\u00f3lico y la ruta termina en /. Por ejemplo, \u2019root.Open(\u201csymlink/\u201d)\u2019 abrir\u00e1 \u201csymlink\u201d incluso cuando \u201csymlink\u201d es un enlace simb\u00f3lico que apunta fuera de la ra\u00edz."
          }
        ],
        "id": "CVE-2026-39822",
        "lastModified": "2026-10-25T17:10:00.197",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "type": "Secondary"
            }
          ],
          "ssvcV203": [
            {
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "ssvcData": {
                "id": "CVE-2026-39822",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-07-08T18:06:16.360721Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2026-07-08T17:17:21.310",
        "references": [
          {
            "source": "security@golang.org",
            "tags": [
              "Patch"
            ],
            "url": "https://go.dev/cl/797880"
          },
          {
            "source": "security@golang.org",
            "tags": [
              "Issue Tracking",
              "Patch"
            ],
            "url": "https://go.dev/issue/79005"
          },
          {
            "source": "security@golang.org",
            "tags": [
              "Mailing List",
              "Patch",
              "Vendor Advisory"
            ],
            "url": "https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc"
          },
          {
            "source": "security@golang.org",
            "tags": [
              "Vendor Advisory"
            ],
            "url": "https://pkg.go.dev/vuln/GO-2026-4970"
          }
        ],
        "sourceIdentifier": "security@golang.org",
        "vulnStatus": "Analyzed",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-61"
              }
            ],
            "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
            "type": "Secondary"
          }
        ]
      }
    },
    "suse_vex": {
      "aggregate_severity": "important",
      "current_release_date": "2026-09-30T15:26:46Z",
      "cve": "CVE-2026-39822",
      "id": "CVE-2026-39822",
      "initial_release_date": "2026-07-09T03:01:17Z",
      "product_status:known_affected": "24",
      "product_status:known_not_affected": "78",
      "product_status:recommended": "263",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-39822",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-39822.json",
      "version": "10"
    },
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "cvssV3_1": {
                  "attackComplexity": "LOW",
                  "attackVector": "LOCAL",
                  "availabilityImpact": "HIGH",
                  "baseScore": 7.8,
                  "baseSeverity": "HIGH",
                  "confidentialityImpact": "HIGH",
                  "integrityImpact": "HIGH",
                  "privilegesRequired": "LOW",
                  "scope": "UNCHANGED",
                  "userInteraction": "NONE",
                  "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                  "version": "3.1"
                }
              },
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-39822",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-07-08T18:06:16.360721Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "problemTypes": [
              {
                "descriptions": [
                  {
                    "cweId": "CWE-61",
                    "description": "CWE-61 UNIX Symbolic Link (Symlink) Following",
                    "lang": "en",
                    "type": "CWE"
                  }
                ]
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-07-08T18:05:38.120Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "os",
              "product": "os",
              "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"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.25.12",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.26.5",
                  "status": "affected",
                  "version": "1.26.0-0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.27.0-rc.2",
                  "status": "affected",
                  "version": "1.27.0-0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "value": "Mundur (https://github.com/M0nd0R)"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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, \u0027root.Open(\"symlink/\")\u0027 will open \"symlink\" even when \"symlink\" is a symbolic link pointing outside of the root."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-61: UNIX Symbolic Link (Symlink) Following",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-08T15:46:27.199Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/issue/79005"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc"
            },
            {
              "url": "https://go.dev/cl/797880"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2026-4970"
            }
          ],
          "title": "Root escape via symlink plus trailing slash in os"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2026-39822",
        "datePublished": "2026-07-08T15:46:27.199Z",
        "dateReserved": "2026-04-07T18:13:03.527Z",
        "dateUpdated": "2026-07-08T19:39:17.341Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.