Skip to main content
Network Thinking Solutions Logo

CVE-2023-45283

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.

All CVEs
CVE-2023-45283Published 11/9/2023

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.

Vendor advisory
CVSS7.5High

Overview

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
11/9/2023
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
go
golang
< 1.20.11

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
go
golang
≥ 1.21.0-0, < 1.21.4

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
path/filepath
Go standard library
< 1.20.11

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
path/filepath
Go standard library
≥ 1.21.0-0, < 1.21.4

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
internal/safefilepath
Go standard library
< 1.20.11

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
internal/safefilepath
Go standard library
≥ 1.21.0-0, < 1.21.4

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
path/filepath
Go standard library
≥ 1.20.11, < 1.20.12

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
path/filepath
Go standard library
≥ 1.21.4, < 1.21.5

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.