CVE-2022-32190

Failure to strip relative path components in net/url

Published Sep 13, 2022 CVSS 3.1 · 7.5 High EPSS 2.3% KEV · Not listed
Description
JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative path. For example, JoinPath("https://go.dev", "../go") returns the URL "https://go.dev/../go", despite the JoinPath documentation stating that ../ path elements are removed from the result.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-53402 JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative path. For example, JoinPath("https://go.dev", "../go") returns the URL "https://go.dev/../go", despite the JoinPath documentation stating that ../ path elements are removed from the result.
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00081}

epss

{'score': 0.00143}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Aug 3, 2024, 7:32 AM
Reserved
May 31, 2022, 12:00 AM
Status
Modified
Published
Sep 13, 2022, 6:15 PM
Modified
Jun 17, 2026, 4:46 AM
Severity
Moderate
Public date
Sep 6, 2022, 12:00 AM