CVE-2023-34966
Samba vulnerability analysis and mitigation

Overview

An infinite loop vulnerability was discovered in Samba's mdssvc RPC service for Spotlight, identified as CVE-2023-34966. The vulnerability was found in all versions of Samba prior to 4.18.5, 4.17.10 and 4.16.11, and was publicly disclosed on July 20, 2023. The vulnerability affects the core unmarshalling function slunpackloop() in Samba's Spotlight service (Samba Security).

Technical details

The vulnerability exists in the parsing of Spotlight mdssvc RPC packets sent by the client. The core unmarshalling function slunpackloop() fails to validate a field in the network packet that contains the count of elements in an array-like structure. When an attacker passes 0 as the count value, the function enters an endless loop consuming 100% CPU. This vulnerability only affects servers where Spotlight is explicitly enabled globally or on individual shares with 'spotlight = yes' (Samba Security). The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When successfully exploited, this vulnerability results in a denial of service (DoS) condition by causing the affected function to enter an infinite loop, consuming 100% CPU resources. The vulnerability can be triggered by an unauthenticated attacker by issuing a malformed RPC request (Samba Security).

Mitigation and workarounds

The vulnerability has been fixed in Samba versions 4.18.5, 4.17.10, and 4.16.11. Administrators are advised to upgrade to these versions or apply the available patches. As a temporary workaround, administrators can disable Spotlight by removing all configuration stanzas that enable Spotlight (spotlight = yes|true) (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-vfs-iouring
NoYesNov 07, 2025
CVE-2020-25720HIGH7.5
  • SambaSamba
  • samba-test
NoYesNov 17, 2024
CVE-2025-0620MEDIUM4.9
  • SambaSamba
  • samba-common-tools
NoYesJun 06, 2025
CVE-2025-9640MEDIUM4.3
  • SambaSamba
  • libnetapi
NoYesOct 15, 2025
CVE-2025-58160LOW2.3
  • RustRust
  • samba
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