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).

Exploitability

The vulnerability primarily affects environments where user/computer creation rights are delegated or explicitly granted via ms-DS-MachineAccountQuota. Directories where only full administrators can create users are not the primary concern (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-2026-58222HIGH8.8
  • Samba logoSamba
  • libldb-devel
NoYesJul 30, 2026
CVE-2026-58224MEDIUM6.5
  • Samba logoSamba
  • python3-samba-dc
NoYesAug 14, 2026
CVE-2026-58216MEDIUM5.3
  • Samba logoSamba
  • samba-libs-python3-32bit
NoYesJul 30, 2026
CVE-2026-58218MEDIUM5.3
  • Samba logoSamba
  • samba-vfs-glusterfs-debuginfo
NoYesJul 30, 2026
CVE-2026-6949NONEN/A
  • Samba logoSamba
  • samba-doc
NoYesJul 28, 2026

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