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-2020-25717

CVE-2020-25717: Samba Privilege Escalation Vulnerability

CVE-2020-25717 is a privilege escalation vulnerability in Samba that exploits flaws in domain user to local user mapping. Authenticated attackers can leverage this to elevate privileges. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published: March 4, 2026

CVE-2020-25717 Overview

A flaw was found in the way Samba maps domain users to local users. An authenticated attacker could use this flaw to cause possible privilege escalation. This vulnerability affects Samba's Active Directory Domain Controller functionality and its handling of user principal names, allowing authenticated users to potentially gain unauthorized access to resources.

Critical Impact

Authenticated attackers can exploit improper domain user mapping to escalate privileges and gain unauthorized access to sensitive resources and systems.

Affected Products

  • Samba (multiple versions)
  • Red Hat Enterprise Linux 7.0 and 8.0 (including EUS, AUS, TUS variants)
  • Red Hat Gluster Storage 3.0 and 3.5
  • Red Hat OpenStack 13, 16.1, and 16.2
  • Red Hat Virtualization 4.0
  • Debian Linux 9.0 and 10.0
  • Fedora 33, 34, and 35
  • Canonical Ubuntu Linux 18.04 LTS, 20.04 LTS, 21.04, and 21.10

Discovery Timeline

  • 2022-02-18 - CVE CVE-2020-25717 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-25717

Vulnerability Analysis

This vulnerability stems from an improper input validation flaw (CWE-20) in Samba's domain user to local user mapping mechanism. When Samba is configured as a domain controller or domain member, it must map domain users to local system accounts for access control purposes. The vulnerability exists in how Samba handles this mapping process.

The core issue involves insufficient validation of user principal names (UPNs) during the mapping process. An authenticated attacker can manipulate this mapping to associate their domain account with a different local user, potentially gaining access to resources and privileges they should not have. This is particularly dangerous in Active Directory environments where Samba is used as a domain controller.

The vulnerability is network-exploitable and requires low complexity to attack, though it does require the attacker to have valid domain authentication credentials. Successful exploitation can result in unauthorized read and write access to sensitive data and system configurations.

Root Cause

The root cause is improper input validation in Samba's user mapping functionality. Specifically, Samba fails to properly validate and sanitize user principal names when mapping domain users to local Unix accounts. This allows authenticated attackers to craft malicious input that tricks Samba into mapping their domain account to a different local user with elevated privileges.

Attack Vector

The attack vector is network-based and requires an authenticated domain user. The attacker must have valid credentials to authenticate to the Samba domain, but once authenticated, they can exploit the improper user mapping to escalate their privileges.

The attack flow involves:

  1. Authenticating to the Samba domain with valid but low-privileged credentials
  2. Manipulating the user principal name or related attributes
  3. Exploiting the improper mapping validation to associate their account with a higher-privileged local user
  4. Gaining access to resources and privileges assigned to the mapped local user

For technical details on the exploitation mechanism, refer to the Samba Security Advisory.

Detection Methods for CVE-2020-25717

Indicators of Compromise

  • Unusual user authentication events where domain users gain unexpected local user mappings
  • Discrepancies between domain user permissions and accessed resources
  • Log entries showing users accessing resources beyond their normal authorization scope
  • Unexpected changes to user mapping configurations in smb.conf

Detection Strategies

  • Monitor Samba authentication logs for anomalous user mapping behavior
  • Implement audit rules to track changes to user principal names and mapping configurations
  • Review log.smbd and log.winbindd for suspicious authentication patterns
  • Deploy SentinelOne agents to detect privilege escalation attempts and anomalous process behavior

Monitoring Recommendations

  • Enable verbose logging in Samba configuration with log level = 3 for authentication events
  • Configure centralized log collection for all Samba servers
  • Set up alerts for authentication events that result in unexpected privilege grants
  • Regularly audit user mappings between domain accounts and local users

How to Mitigate CVE-2020-25717

Immediate Actions Required

  • Update Samba to the latest patched version available for your distribution
  • Review and restrict domain user mapping configurations
  • Audit current user mappings for any suspicious or unexpected associations
  • Consider limiting network access to Samba services to trusted networks only

Patch Information

Security patches are available from all major Linux distributions. Organizations should apply vendor-specific updates:

  • Samba: Official patches available via the Samba Security Advisory
  • Red Hat: Updates tracked in Red Hat Bugzilla #2019672
  • Gentoo: Advisory GLSA-202309-06 provides patch information via the Gentoo Security Advisory

Workarounds

  • Configure min domain uid to a high value to restrict which local users can be mapped
  • Use explicit user mapping with username map to control domain-to-local user associations
  • Implement idmap config with restrictive ranges to limit potential mapping targets
  • Consider adding require membership of restrictions to limit authenticated user access
bash
# Example Samba configuration hardening
# Add to smb.conf [global] section

# Set minimum UID for domain user mapping
min domain uid = 1000

# Restrict idmap range to limit mapping targets
idmap config * : range = 10000-999999

# Enable logging for authentication events
log level = 3 auth:5

# Require specific group membership for access
# require membership of = DOMAIN\AllowedGroup

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechSamba

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-20
  • Technical References
  • Gentoo Security Advisory GLSA-202309-06
  • Vendor Resources
  • Red Hat Bug Report

  • Samba Security CVE-2020-25717
  • Related CVEs
  • CVE-2020-25718: Samba Privilege Escalation Vulnerability

  • CVE-2020-25720: Samba Privilege Escalation Vulnerability

  • CVE-2025-0620: Samba Authentication Bypass Vulnerability

  • CVE-2024-12087: Samba Rsync Path Traversal 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