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-2023-3961

CVE-2023-3961: Samba Path Traversal Vulnerability

CVE-2023-3961 is a path traversal vulnerability in Samba that allows attackers to access Unix domain sockets outside the private directory. This article covers the technical details, affected versions, and mitigation steps.

Published: February 4, 2026

CVE-2023-3961 Overview

A path traversal vulnerability was identified in Samba when processing client pipe names connecting to Unix domain sockets within a private directory. Samba typically uses this mechanism to connect SMB clients to remote procedure call (RPC) services like SAMR, LSA, or SPOOLSS, which Samba initiates on demand. However, due to inadequate sanitization of incoming client pipe names, an attacker can send a pipe name containing Unix directory traversal characters (../). This could result in SMB clients connecting as root to Unix domain sockets outside the private directory, potentially leading to unauthorized access to services and consequential adverse events, including system compromise or service crashes.

Critical Impact

This vulnerability allows unauthenticated remote attackers to bypass directory restrictions and connect to arbitrary Unix domain sockets as root, potentially compromising system services or causing denial of service conditions.

Affected Products

  • Samba (multiple versions)
  • Red Hat Storage 3.0
  • Red Hat Enterprise Linux 8.0
  • Red Hat Enterprise Linux EUS 9.0
  • Fedora 39

Discovery Timeline

  • 2023-11-03 - CVE-2023-3961 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-3961

Vulnerability Analysis

This path traversal vulnerability (CWE-22) exists in Samba's handling of SMB client pipe name connections to Unix domain sockets. When an SMB client requests a connection to an RPC service, Samba processes the pipe name to establish a connection to the corresponding Unix domain socket within a designated private directory. The vulnerability arises from the failure to properly sanitize pipe names before using them to construct file paths.

The core issue is that Samba does not adequately filter out directory traversal sequences (such as ../) from client-supplied pipe names. This allows a malicious client to craft a pipe name that escapes the intended private directory and references arbitrary Unix domain sockets elsewhere on the filesystem. Since these connections are established with root privileges, an attacker could potentially interact with privileged system services.

Successful exploitation could enable an attacker to connect to any accessible Unix domain socket on the target system, bypassing intended access controls. This could lead to unauthorized access to sensitive services, data exfiltration, or denial of service through service crashes.

Root Cause

The root cause of CVE-2023-3961 is insufficient input validation in Samba's pipe name processing logic. When handling incoming SMB client requests for named pipe connections, the code fails to sanitize path traversal sequences from the pipe name parameter before constructing the full path to the Unix domain socket. This missing validation allows attackers to specify relative path components that traverse outside the intended directory boundary, reaching Unix domain sockets in arbitrary filesystem locations.

Attack Vector

The attack is network-based and can be executed remotely without authentication. An attacker connects to a Samba server and sends a specially crafted pipe name request containing directory traversal sequences. The malicious pipe name might look like ../../../var/run/target.sock which, when processed by Samba, would traverse out of the private directory and connect to the specified Unix domain socket.

The attack flow involves:

  1. The attacker establishes an SMB connection to the vulnerable Samba server
  2. The attacker sends a named pipe request with traversal characters in the pipe name
  3. Samba processes the request without properly sanitizing the pipe name
  4. The connection is established to an arbitrary Unix domain socket with root privileges
  5. The attacker can then interact with the targeted service, potentially leading to unauthorized access or service disruption

Detection Methods for CVE-2023-3961

Indicators of Compromise

  • Unusual SMB pipe connection requests containing ../ sequences in log files
  • Unexpected connections to Unix domain sockets from the Samba process
  • Anomalous service crashes or restarts that could indicate exploitation attempts
  • Log entries showing pipe name requests with path traversal patterns

Detection Strategies

  • Monitor Samba logs for pipe name requests containing directory traversal characters (../ or ..\\)
  • Implement network intrusion detection rules to identify SMB traffic with suspicious pipe name patterns
  • Use file integrity monitoring to detect unauthorized access to Unix domain sockets outside Samba's private directory
  • Deploy endpoint detection and response (EDR) solutions to identify anomalous process behaviors associated with Samba exploitation

Monitoring Recommendations

  • Enable verbose logging in Samba configuration to capture detailed pipe name request information
  • Configure alerting for any SMB authentication failures or unusual connection patterns
  • Monitor system service health for unexpected crashes that could indicate exploitation
  • Review network traffic for SMB connections originating from untrusted sources

How to Mitigate CVE-2023-3961

Immediate Actions Required

  • Update Samba to the latest patched version immediately
  • Review and restrict network access to Samba services to trusted networks only
  • Audit Samba configurations for unnecessary RPC service exposure
  • Monitor systems for signs of exploitation while patches are being deployed

Patch Information

Security patches addressing CVE-2023-3961 are available from Samba and major Linux distributions. The official Samba CVE Security Report provides detailed information about the fix. Multiple Red Hat Security Advisories have been released including RHSA-2023:6209, RHSA-2023:6744, RHSA-2023:7371, RHSA-2023:7408, RHSA-2023:7464, and RHSA-2023:7467. Fedora users should apply updates via the Fedora Package Announcement. NetApp customers should review NTAP-20231124-0002 for guidance on affected products.

Workarounds

  • Implement firewall rules to restrict access to Samba services from untrusted networks
  • Disable unnecessary RPC services in Samba configuration if they are not required
  • Use network segmentation to isolate Samba servers from critical infrastructure
  • Consider temporarily disabling Samba services if patching is not immediately possible and the service is non-critical
bash
# Configuration example - Restrict Samba access to trusted network
# Add to smb.conf [global] section
hosts allow = 192.168.1.0/24 127.0.0.1
hosts deny = ALL

# Disable unused RPC services if not needed
rpc_server:spoolss = disabled
rpc_server:eventlog = disabled

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechSamba

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.94%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • Red Hat Security Advisory RHSA-2023:6209

  • Red Hat Security Advisory RHSA-2023:6744

  • Red Hat Security Advisory RHSA-2023:7371

  • Red Hat Security Advisory RHSA-2023:7408

  • Red Hat Security Advisory RHSA-2023:7464

  • Red Hat Security Advisory RHSA-2023:7467

  • Red Hat CVE Analysis CVE-2023-3961

  • Red Hat Bugzilla Report #2241881

  • Samba Bugzilla Report #15422

  • Fedora Package Announcement

  • NetApp Security Advisory NTAP-20231124-0002
  • Vendor Resources
  • Samba CVE Security Report CVE-2023-3961
  • Related CVEs
  • CVE-2024-12087: Samba Rsync Path Traversal Vulnerability

  • CVE-2024-12088: Samba Rsync Path Traversal Vulnerability

  • CVE-2022-3592: Samba Path Traversal Vulnerability

  • CVE-2025-0620: Samba Authentication Bypass 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