Untrusted Search Path Affecting std/os/exec package, versions <1.17.11>=1.18.0-0 <1.18.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.62% (47th 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 IDSNYK-GOLANG-STDOSEXEC-14552362
  • published6 Jan 2026
  • disclosed26 Jul 2022
  • creditChris Darroch, brian m. carlson, Mikhail Shcherbakov

Introduced: 26 Jul 2022

CVE-2022-30580  (opens in a new tab)
CWE-426  (opens in a new tab)

How to fix?

Upgrade std/os/exec to version 1.17.11, 1.18.3 or higher.

Overview

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

Affected versions of this package are vulnerable to Untrusted Search Path.

Go Vulnerability Report:

On Windows, executing Cmd.Run, Cmd.Start, Cmd.Output, or Cmd.CombinedOutput when Cmd.Path is unset will unintentionally trigger execution of any binaries in the working directory named either ..com or ..exe.

CVSS Base Scores

version 4.0
version 3.1