FileInfo can escape from a Root in os
cve-program · CVE-2026-27139
PublishedOn Unix platforms, when listing the contents of a directory using File.ReadDir or File.Readdir the returned FileInfo could reference a file outside of the Root in which the File was opened. The impact of this escape is limited to reading metadata provided by lstat from arbitrary locations on the filesystem without permitting reading or writing files outside the root.
Read the publisher's advisoryeuvd · EUVD-2026-10087
PublishedOn Unix platforms, when listing the contents of a directory using File.ReadDir or File.Readdir the returned FileInfo could reference a file outside of the Root in which the File was opened. The impact of this escape is limited to reading metadata provided by lstat from arbitrary locations on the filesystem without permitting reading or writing files outside the root.
Read the publisher's advisorynvd · CVE-2026-27139
PublishedOn Unix platforms, when listing the contents of a directory using File.ReadDir or File.Readdir the returned FileInfo could reference a file outside of the Root in which the File was opened. The impact of this escape is limited to reading metadata provided by lstat from arbitrary locations on the filesystem without permitting reading or writing files outside the root.
Read the publisher's advisoryosv · GO-2026-4602
PublishedOn Unix platforms, when listing the contents of a directory using File.ReadDir or File.Readdir the returned FileInfo could reference a file outside of the Root in which the File was opened. The impact of this escape is limited to reading metadata provided by lstat from arbitrary locations on the filesystem without permitting reading or writing files outside the root.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-27139 · CVE overview and exploitation status
cve-program · CVE-2026-27139
- https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk
- https://go.dev/issue/77827
- https://go.dev/cl/749480
- https://pkg.go.dev/vuln/GO-2026-4602
euvd · EUVD-2026-10087
- https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk
- https://go.dev/issue/77827
- https://go.dev/cl/749480
- https://pkg.go.dev/vuln/GO-2026-4602
nvd · CVE-2026-27139
- https://go.dev/cl/749480
- https://go.dev/issue/77827
- https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk
- https://pkg.go.dev/vuln/GO-2026-4602
osv · GO-2026-4602
Related changes
Linked by CVE identifier- On Unix platforms, when listing the contents of a directory using File.ReadDir or File.Readdir the returned FileInfo could reference a file outside of the Root in which the File was opened. The impact of this escape is limited to reading me… · Advisory content revised · 15 Nov 2026
- On Unix platforms, when listing the contents of a directory using File.ReadDir or File.Readdir the returned FileInfo could reference a file outside of the Root in which the File was opened. The impact of this escape is limited to reading me… · Advisory content revised · 1 Nov 2026
- Release 2026-05-29 · Tool release · 4 Jun 2026
- Release 2026-04-02 · Tool release · 9 Apr 2026