CVE-2022-2031
Samba vulnerability analysis and mitigation

Overview

CVE-2022-2031 is a security vulnerability discovered in Samba affecting all versions prior to 4.16.4. The vulnerability occurs when the Key Distribution Center (KDC) and the kpasswd service share a single account and set of keys, allowing them to decrypt each other's tickets (Samba Security).

Technical details

The vulnerability stems from a design flaw where the KDC and kpasswd service share a single account and set of keys. When a user's password has expired, they are restricted to acquiring tickets only for kpasswd. However, due to the vulnerability, the kpasswd's principal, when canonicalized, was set to that of the TGS (Ticket-Granting Service), resulting in TGTs being issued from ordinary kpasswd requests. The vulnerability has a CVSS v3.1 score of 5.4 (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N) (Samba Security).

Impact

The vulnerability allows users to perform an Elevation of Privilege attack by obtaining service tickets and using services in the forest. Additionally, password changes could be effected by presenting TGTs as if they were kpasswd tickets, potentially giving attackers indefinite control over an account through password changes (Samba Security).

Mitigation and workarounds

Patches addressing these issues have been released in Samba versions 4.16.4, 4.15.9, and 4.14.14. As a workaround, kpasswd can be disabled by setting 'kpasswd port = 0' in the smb.conf if it's not critical for the AD DC installation. Additionally, the lifetime of kpasswd tickets has been restricted to a maximum of two minutes, and the KDC will no longer accept TGTs with two minutes or less left to live (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
  • samba-client-debuginfo
NoYesNov 17, 2024
CVE-2025-0620MEDIUM4.9
  • SambaSamba
  • samba-test-libs-debuginfo
NoYesJun 06, 2025
CVE-2025-9640MEDIUM4.3
  • SambaSamba
  • samba-common-tools-debuginfo
NoYesOct 15, 2025
CVE-2025-58160LOW2.3
  • RustRust
  • rust-std-static-wasm32-wasip1
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