VDB
Sign up
LOW3.8

GO-2026-4403

Improper access to parent directory of root in os

Quick fix

GO-2026-4403 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.23.9

Details

It was possible to improperly access the parent directory of an os.Root by opening a filename ending in "../". For example, Root.Open("../") would open the parent directory of the Root. This escape only permits opening the parent directory itself, not ancestors of the parent or files contained within the parent.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.23.9
Fixgo get stdlib@v1.23.9

References