Improper Check for Unusual or Exceptional Conditions Affecting std/path/filepath package, versions <1.20.11>=1.21.0-0 <1.21.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (13th 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-STDPATHFILEPATH-14548530
  • published6 Jan 2026
  • disclosed8 Nov 2023
  • creditUnknown

Introduced: 8 Nov 2023

CVE-2023-45284  (opens in a new tab)
CWE-754  (opens in a new tab)

How to fix?

Upgrade std/path/filepath to version 1.20.11, 1.21.4 or higher.

Overview

std/path/filepath is a Go standard library package std/path/filepath

Affected versions of this package are vulnerable to Improper Check for Unusual or Exceptional Conditions.

Go Vulnerability Report:
On Windows, The IsLocal function does not correctly detect reserved device names in some cases. Reserved names followed by spaces, such as "COM1 ", and reserved names "COM" and "LPT" followed by superscript 1, 2, or 3, are incorrectly reported as local. With fix, IsLocal now correctly reports these names as non-local.

CVSS Base Scores

version 4.0
version 3.1