Relative Path Traversal Affecting std/os package, versions <1.23.9>=1.24.0-0 <1.24.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Relative Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-STDOS-15236034
  • published6 Feb 2026
  • disclosed4 Feb 2026
  • creditDan Sebastian Thrane of SDU eScience Center

Introduced: 4 Feb 2026

CVE-2025-22873  (opens in a new tab)
CWE-23  (opens in a new tab)

How to fix?

Upgrade std/os to version 1.23.9, 1.24.3 or higher.

Overview

std/os is a Go standard library package std/os

Affected versions of this package are vulnerable to Relative Path Traversal.

Go Vulnerability Report:

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.

CVSS Base Scores

version 4.0
version 3.1