Path/Filepath
Approved changes feed: RSS · Atom
cpe:2.3:a:go_standard_library:path/filepath:*:*:*:*:*:*:*:*
part: a version: * update: *
| Vendor | Go Standard Library (50bc78d3-15d0-59a4-bc22-a964570e0614) |
|---|---|
| Product | Path/Filepath (f525f9c2-8f85-5b5d-a9e6-3586a02dd8d8) |
| Edition | * |
| Language | * |
| Software edition | * |
| Target software | * |
| Target hardware | * |
| Other | * |
| Notes | Imported from gcve-enriched-dumps CVE data |
PURL mappings
| PURL | Source | Last updated |
|---|---|---|
| No PURL mappings for this CPE yet. | ||
Vulnerability references
| Identifier | cpeApplicability | Submitted | db.gcve.eu details | Rationale |
|---|---|---|---|---|
CVE:CVE-2024-8244 |
vulnerable | 2026-06-03 14:58:17.569709 |
Walk/WalkDir in path/filepath susceptible to symlink race
The filepath.Walk and filepath.WalkDir functions are documented as not following symbolic links, but both functions are susceptible to a TOCTOU (time of check/time of use) race condition where a portion of the path being walked is replaced with a symbolic link while the walk is in progress.
Published: 2025-08-06T15:32:27.357Z
Updated: 2025-11-03T19:47:26.652Z Reference links |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2023-45284 |
vulnerable | 2026-06-03 14:53:07.902119 |
Incorrect detection of reserved device names on Windows in path/filepath
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.
Published: 2023-11-09T16:30:15.250Z
Updated: 2024-09-03T19:00:47.531Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2023-45283 |
vulnerable | 2026-06-03 14:53:07.899511 |
Insecure parsing of Windows paths with a \??\ prefix in path/filepath
The filepath package does not recognize paths with a \??\ prefix as special. On Windows, a path beginning with \??\ is a Root Local Device path equivalent to a path beginning with \\?\. Paths with a \??\ prefix may be used to access arbitrary locations on the system. For example, the path \??\c:\x is equivalent to the more common path c:\x. Before fix, Clean could convert a rooted path such as \a\..\??\b into the root local device path \??\b. Clean will now convert this to .\??\b. Similarly, Join(\, ??, b) could convert a seemingly innocent sequence of path elements into the root local device path \??\b. Join will now convert this to \.\??\b. In addition, with fix, IsAbs now correctly reports paths beginning with \??\ as absolute, and VolumeName correctly reports the \??\ prefix as a volume name. UPDATE: Go 1.20.11 and Go 1.21.4 inadvertently changed the definition of the volume name in Windows paths starting with \?, resulting in filepath.Clean(\?\c:) returning \?\c: rather than \?\c:\ (among other effects). The previous behavior has been restored.
Published: 2023-11-09T16:30:12.395Z
Updated: 2025-02-13T17:13:59.471Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2022-41722 |
vulnerable | 2026-06-03 14:48:05.896690 |
Path traversal on Windows in path/filepath
A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as "a/../c:/b" into the valid path "c:\b". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path ".\c:\b".
Published: 2023-02-28T17:19:41.324Z
Updated: 2025-03-07T17:58:57.055Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2022-30632 |
vulnerable | 2026-06-03 14:47:09.328099 |
Stack exhaustion on crafted paths in path/filepath
Uncontrolled recursion in Glob in path/filepath before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a path containing a large number of path separators.
Published: 2022-08-09T20:15:37.000Z
Updated: 2024-08-03T06:56:13.251Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2022-29804 |
vulnerable | 2026-06-03 14:46:58.922084 |
Path traversal via Clean on Windows in path/filepath
Incorrect conversion of certain invalid paths to valid, absolute paths in Clean in path/filepath before Go 1.17.11 and Go 1.18.3 on Windows allows potential directory traversal attack.
Published: 2022-08-09T00:00:00.000Z
Updated: 2024-08-03T06:33:42.804Z |
Imported from gcve-enriched-dumps CVE data |
Contribute
You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.