CVEfocus › CVE database › CVE-2023-45283

CVE-2023-45283Insecure parsing of Windows paths with a \??\ prefix in path/filepath

CVSS 7.5 HighEPSS 1.9% (higher than 81% of CVEs)Published 2023-11-09Updated 2025-02-13Assigner: Go

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.

What to do

Fixed builds are available from Go: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
19Fix pending
2Under investigation
1Will not fix
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04golang-1.21Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 22.04golang-1.17Under investigationUBUNTU-CVE-2023-45283
Ubuntu 22.04golang-1.18Under investigationUBUNTU-CVE-2023-45283
Ubuntu 22.04golang-1.20Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.21Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 20.04golang-1.18Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 20.04golang-1.20Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.21Not affected
vulnerable_code_not_present
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 18.04golang-1.18Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 18.04golang-1.8Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 16.04golangFix pending
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 16.04golang-1.18Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 14.04golangFix pending
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2023-45283
Ubuntu 14.04golang-1.6Fix pending
Debian 12golang-1.19Will not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2023-45283
Go librarystdlibFixed1.21.4GO-2023-2185

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.