CVE-2020-25721
Samba vulnerability analysis and mitigation

Overview

CVE-2020-25721 affects Samba, specifically all versions since Samba 4.0.0. The vulnerability relates to Kerberos acceptors needing access to stable Active Directory (AD) identifiers. As a response, Samba as an AD DC implemented a way for Linux applications to obtain reliable SID (Security Identifier) and samAccountName in issued tickets (Samba Security).

Technical details

The vulnerability stems from the need for AD Kerberos accepting services to access unique and long-term stable identifiers for user authorization. While the AD PAC (Privilege Attribute Certificate) provides this information, it was previously kept in an NDR encoded buffer, limiting access to only Samba and applications using Samba components. The solution involves providing an extension to UPN_DNS_INFO, a component of the AD PAC, that can be parsed using basic pointer handling. The vulnerability has a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD Database).

Impact

The vulnerability affects authorization processes in Kerberized applications. Without proper access to stable identifiers, applications might confuse one Kerberos user for another, even if they have the same string name, due to the gap between ticket printing by the KDC and ticket acceptance. This is particularly concerning in environments where user/computer creation rights are delegated or where ms-DS-MachineAccountQuota is in use (Samba Security).

Mitigation and workarounds

The issue has been fixed in Samba versions 4.15.2, 4.14.10, and 4.13.14. As a workaround, it is recommended to pre-create disabled users in Active Directory matching all privileged names not held in Active Directory. For Microsoft Windows Active Directory environments, setting ms-DS-MachineAccountQuota to 0 is advised where possible (Samba Security).

Additional resources


SourceThis report was generated using AI

Related Samba vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-10230CRITICAL10
  • SambaSamba
  • samba-libs-python3-32bit
NoYesNov 07, 2025
CVE-2020-25720HIGH7.5
  • SambaSamba
  • libwbclient
NoYesNov 17, 2024
CVE-2025-0620MEDIUM4.9
  • SambaSamba
  • samba-winbind-krb5-locator
NoYesJun 06, 2025
CVE-2025-9640MEDIUM4.3
  • SambaSamba
  • libsmbclient-debuginfo
NoYesOct 15, 2025
CVE-2025-58160LOW2.3
  • RustRust
  • ruff
NoYesAug 29, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management