Privilege Escalation in Samba

samba Updated 02 Oct 2025

Summary

18/02/2022
N/A
Yes i
High
8.1

CVE-2020-25717: 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. Affects samba across 2 version ranges.

< 4.13.17-r0 >= c541b9eac581c74fe694f061dc27a9aa0cd4ca43, < db11778b57610e24324aa4342f89918f66157d71

Fixed in 4.13.17-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Samba is an open-source software suite that enables interoperability between Windows and Unix-like systems. It provides file and print services, as well as authentication and authorization mechanisms. Samba allows domain users to be mapped to local users, facilitating seamless integration between different systems. However, a vulnerability has been discovered in Samba that could potentially lead to privilege escalation.

Vulnerability Detail

The vulnerability, identified as CVE-2020-25717, arises from a flaw in the way Samba maps domain users to local users. An authenticated attacker can exploit this flaw to potentially escalate their privileges. This could result in unauthorized access to sensitive information or the ability to perform malicious actions with elevated privileges.

How To Fix

Minimum fixed version

4.13.17-r0

This is the first release that contains the fix.

sudo apk add --upgrade samba

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

No specific workaround has been mentioned for this vulnerability. It is recommended to apply the available security patches or update to the fixed versions mentioned above.

Conclusion

In conclusion, the privilege escalation vulnerability in Samba (CVE-2020-25717) can potentially allow authenticated attackers to elevate their privileges within the system. To mitigate this risk, it is recommended to update Samba to the fixed versions mentioned above. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for samba →

Share this vulnerability

FAQ

Samba is an open-source software suite that enables interoperability between Windows and Unix-like systems. It provides file and print services, as well as authentication and authorization mechanisms.

Privilege escalation refers to the act of gaining higher levels of access or privileges than originally intended or authorized. In the context of this vulnerability, it means an attacker can elevate their privileges within the Samba system.

An authenticated attacker can exploit the flaw in Samba's domain-to-local user mapping to potentially escalate their privileges. This could allow them to access sensitive information or perform malicious actions with elevated privileges.

Privilege escalation can lead to unauthorized access to sensitive information, unauthorized modification of data, or the ability to perform malicious actions with elevated privileges. It poses a significant security risk to the affected system.

To protect your system, it is crucial to update Samba to the fixed versions mentioned above. Regularly applying security patches and keeping software up to date is essential to mitigate the risk of privilege escalation.

Related vulnerabilities

Recent vulnerabilities recorded for samba.

How To Fix

Minimum fixed version

4.13.17-r0

This is the first release that contains the fix.

sudo apk add --upgrade samba

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback