{"api_version":"1","generated_at":"2026-07-13T20:39:48+00:00","cve":"CVE-2026-39822","urls":{"html":"https://cve.report/CVE-2026-39822","api":"https://cve.report/api/cve/CVE-2026-39822.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-39822","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-39822"},"summary":{"title":"Root escape via symlink plus trailing slash in os","description":"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.","state":"PUBLISHED","assigner":"Go","published_at":"2026-07-08 17:17:21","updated_at":"2026-07-13 14:54:26"},"problem_types":["CWE-61","CWE-61: UNIX Symbolic Link (Symlink) Following","CWE-61 CWE-61 UNIX Symbolic Link (Symlink) Following"],"metrics":[{"version":"3.1","source":"ADP","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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"}},{"version":"3.1","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}}],"references":[{"url":"https://go.dev/cl/797880","name":"https://go.dev/cl/797880","refsource":"security@golang.org","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://pkg.go.dev/vuln/GO-2026-4970","name":"https://pkg.go.dev/vuln/GO-2026-4970","refsource":"security@golang.org","tags":["Vendor Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://go.dev/issue/79005","name":"https://go.dev/issue/79005","refsource":"security@golang.org","tags":["Issue Tracking","Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc","name":"https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc","refsource":"security@golang.org","tags":["Mailing List","Patch","Vendor Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-39822","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39822","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Go standard library","product":"os","version":"affected 1.25.12 semver","platforms":[]},{"source":"CNA","vendor":"Go standard library","product":"os","version":"affected 1.26.0-0 1.26.5 semver","platforms":[]},{"source":"CNA","vendor":"Go standard library","product":"os","version":"affected 1.27.0-0 1.27.0-rc.2 semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"Mundur (https://github.com/M0nd0R)","lang":"en"}],"nvd_cpes":[{"cve_year":"2026","cve_id":"39822","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"golang","cpe5":"go","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"39822","cve":"CVE-2026-39822","epss":"0.001810000","percentile":"0.078110000","score_date":"2026-07-12","updated_at":"2026-07-13 00:07:37"},"legacy_qids":[]},"source_records":{"cve_program":{"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, 'root.Open(\"symlink/\")' 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"},"nvd":{"publishedDate":"2026-07-08 17:17:21","lastModifiedDate":"2026-07-13 14:54:26","problem_types":["CWE-61","CWE-61: UNIX Symbolic Link (Symlink) Following","CWE-61 CWE-61 UNIX Symbolic Link (Symlink) Following"],"metrics":{"cvssMetricV31":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-07-08T18:06:16.360721Z","id":"CVE-2026-39822","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","versionEndExcluding":"1.25.12","matchCriteriaId":"BA474C81-2BDB-451D-BAC7-5714B4F30E1F"},{"vulnerable":true,"criteria":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","versionStartIncluding":"1.26.0","versionEndExcluding":"1.26.5","matchCriteriaId":"08CDCAED-0C22-42D9-97A8-77F19DEECDB2"},{"vulnerable":true,"criteria":"cpe:2.3:a:golang:go:1.27:rc1:*:*:*:*:*:*","matchCriteriaId":"1062DCC7-46FE-4CF5-ADEF-BEC03F8AB39E"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"39822","Ordinal":"1","Title":"Root escape via symlink plus trailing slash in os","CVE":"CVE-2026-39822","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"39822","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Root escape via symlink plus trailing slash in os"}]}}}