cve.bz

CVE-2023-45283 golang go: Path traversal

7.5 highEPSS 3.3%Fix available

High (7.5) in golang go. EPSS 3.3% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.20.11, 1.20.12, 1.21.4.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
3.3% (unchanged from 3.3% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-45283 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-45283?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-45283?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-45283 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library path/filepathbefore 1.20.11
Go standard library path/filepathfrom 1.21.0-0 before 1.21.4
Go standard library internal/safefilepathbefore 1.20.11
Go standard library internal/safefilepathfrom 1.21.0-0 before 1.21.4
Go standard library path/filepathfrom 1.20.11 before 1.20.12
Go standard library path/filepathfrom 1.21.4 before 1.21.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2023-2185Gostdlib<1.20.11
>=1.21.0-0 <1.21.4
1.20.11, 1.21.4
GO-2023-2185Gostdlib>=1.20.11 <1.20.12
>=1.21.4 <1.21.5
1.20.12, 1.21.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2023-45283
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2023-45283
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2023-45283
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2023-45283
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.18no fix listedUBUNTU-CVE-2023-45283
Ubuntu22.04:LTSgolang-1.17, golang-1.18no fix listedUBUNTU-CVE-2023-45283
UbuntuPro:16.04:LTSgolang-1.13, golang-1.18no fix listedUBUNTU-CVE-2023-45283
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16, golang-1.18no fix listedUBUNTU-CVE-2023-45283
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2023-45283
UbuntuPro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2023-45283
SUSELinux Enterprise Module for Development Tools 15 SP4, Linux Enterprise Module for Development Tools 15 SP5go1.201.20.11-150000.1.32.1SUSE-SU-2023:4470-1
SUSELinux Enterprise Module for Development Tools 15 SP4, Linux Enterprise Module for Development Tools 15 SP5go1.20-openssl1.20.11.1-150000.1.14.1SUSE-SU-2023:4472-1
SUSELinux Enterprise Module for Development Tools 15 SP4, Linux Enterprise Module for Development Tools 15 SP5go1.211.21.4-150000.1.15.1SUSE-SU-2023:4471-1
SUSELinux Enterprise Module for Development Tools 15 SP4, Linux Enterprise Module for Development Tools 15 SP5go1.21-openssl1.21.4.1-150000.1.5.1SUSE-SU-2023:4469-1
openSUSELeap 15.4, Leap 15.5go1.201.20.11-150000.1.32.1SUSE-SU-2023:4470-1
openSUSELeap 15.4, Leap 15.5go1.20-openssl1.20.11.1-150000.1.14.1SUSE-SU-2023:4472-1
openSUSELeap 15.4, Leap 15.5go1.211.21.4-150000.1.15.1SUSE-SU-2023:4471-1
openSUSELeap 15.4, Leap 15.5go1.21-openssl1.21.4.1-150000.1.5.1SUSE-SU-2023:4469-1
openSUSETumbleweedgo1.201.20.11-1.1openSUSE-SU-2024:13406-1
openSUSETumbleweedgo1.211.21.4-1.1openSUSE-SU-2024:13407-1
openSUSETumbleweedtraefik2.10.7-1.1openSUSE-SU-2024:13506-1
openSUSETumbleweedtraefik22.11.5-1.1openSUSE-SU-2024:14076-1
Azure Linux2golang1.21.6-1AZL-37397 AZL-37444
Azure Linux2msft-golang1.20.11-1AZL-31897
Azure Linux3golangno fix listedAZL-79034 AZL-98664

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON