The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-32190

CVE-2022-32190: Golang Go Path Traversal Vulnerability

CVE-2022-32190 is a path traversal vulnerability in Golang Go where JoinPath functions fail to remove ../ elements from relative paths, potentially exposing sensitive files. This article covers technical details, impact, and mitigation.

Published: February 18, 2026

CVE-2022-32190 Overview

CVE-2022-32190 is a path traversal vulnerability affecting the JoinPath and URL.JoinPath functions in the Go programming language's net/url package. These functions fail to properly sanitize ../ path elements when appended to a relative path, contrary to their documented behavior. For example, calling JoinPath("https://go.dev", "../go") returns the URL "https://go.dev/../go" instead of properly resolving and removing the parent directory traversal sequence.

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) and poses significant risks for applications that rely on these functions for URL construction and path sanitization.

Critical Impact

Applications using JoinPath or URL.JoinPath for URL construction may be vulnerable to path traversal attacks, potentially allowing attackers to access resources outside intended directories or bypass security controls that depend on proper URL normalization.

Affected Products

  • Golang Go 1.19.0
  • Golang Go 1.19.0-beta1
  • Golang Go 1.19.0-rc1
  • Golang Go 1.19.0-rc2

Discovery Timeline

  • 2022-09-13 - CVE CVE-2022-32190 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-32190

Vulnerability Analysis

The vulnerability exists in Go's net/url package where the JoinPath and URL.JoinPath functions do not correctly handle relative path elements containing parent directory traversal sequences (../). According to the Go documentation, these functions should normalize paths by removing ../ elements from the result. However, the implementation fails to do so when these elements are appended to a relative path.

This behavior creates a discrepancy between the documented functionality and actual implementation, which can lead to security issues in applications that depend on these functions to produce sanitized URLs. The vulnerability can be exploited over the network without requiring authentication or user interaction.

Root Cause

The root cause of this vulnerability is improper path normalization in the JoinPath implementation within Go's net/url package. When joining URL paths, the function should resolve and eliminate directory traversal sequences like ../ to prevent path manipulation. The vulnerable versions fail to perform this normalization step when the appended path contains leading ../ elements, leaving the traversal sequences intact in the resulting URL.

Attack Vector

The attack vector for this vulnerability is network-based. An attacker can exploit this vulnerability by providing malicious input containing ../ path elements to applications that use JoinPath or URL.JoinPath for URL construction. If the application expects these functions to sanitize path traversal sequences, the attacker may be able to:

  1. Access resources outside the intended directory structure
  2. Bypass URL-based access controls
  3. Manipulate API endpoints or file paths
  4. Conduct server-side request forgery (SSRF) attacks in certain configurations

The vulnerability is particularly dangerous in applications that construct URLs from user-controlled input and rely on the documented sanitization behavior of these functions.

Detection Methods for CVE-2022-32190

Indicators of Compromise

  • Unusual URL patterns in application logs containing unresolved ../ sequences
  • Requests to unexpected paths or resources outside normal application scope
  • Access log entries showing path traversal attempts that were not properly blocked
  • Error logs indicating file access outside expected directories

Detection Strategies

  • Review application source code for usage of JoinPath or URL.JoinPath functions with user-controlled input
  • Implement web application firewall (WAF) rules to detect and block requests containing ../ sequences
  • Monitor HTTP request logs for path traversal patterns in URLs
  • Use static analysis tools to identify vulnerable Go code patterns

Monitoring Recommendations

  • Enable detailed logging for URL construction and request routing in Go applications
  • Monitor for anomalous access patterns to resources outside normal application directories
  • Implement alerting for detection of path traversal sequences in request URLs
  • Review application behavior when processing URLs containing relative path elements

How to Mitigate CVE-2022-32190

Immediate Actions Required

  • Upgrade Go to a patched version that addresses this vulnerability
  • Review all application code for usage of JoinPath and URL.JoinPath functions
  • Implement additional input validation to sanitize path traversal sequences before URL construction
  • Add security testing to verify proper URL normalization behavior

Patch Information

The Go development team has released patches to address this vulnerability. Review the following resources for patch details:

  • Go Change List 423514 - Contains the fix for this vulnerability
  • Go Issue 54385 - Detailed issue tracker entry
  • Go Vulnerability Report GO-2022-0988 - Official vulnerability documentation
  • Golang Announce Mailing List - Security announcement

Workarounds

  • Implement manual path normalization using path.Clean() on URL paths before using JoinPath
  • Validate and sanitize all user-controlled input before incorporating it into URL construction
  • Use custom URL building functions that explicitly handle and remove ../ sequences
  • Consider using filepath.Clean() for file path operations as an additional safeguard
bash
# Check your Go version to determine if you're affected
go version

# Update Go to the latest patched version
# For Linux/macOS:
go install golang.org/dl/go1.19.1@latest
go1.19.1 download

# Verify the update
go version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechGolang Go

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.17%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • Golang Announce Post
  • Vendor Resources
  • Go.dev Issue Tracker

  • Go.dev Change Log

  • Go.dev Vulnerability Report
  • Related CVEs
  • CVE-2023-45283: Golang Go Path Traversal Vulnerability

  • CVE-2025-0913: Golang Go Symlink Handling Vulnerability

  • CVE-2023-29402: Golang Go RCE Vulnerability

  • CVE-2023-29405: Golang Go RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English