Security advisory · Server software

CVE-2023-34966: a vulnerability in Samba

Updated December 3, 2026By HostCrust2 min read

CVE-2023-34966 in Samba allows unauthenticated remote clients to trigger an infinite loop in the mdssvc RPC Spotlight parsing code, consuming 100% CPU and causing a denial of service. Prioritise any internet-facing service first. The affected versions, the fix and the CVSS score below come straight from the CVE record, not our interpretation.

CVE ID
CVE-2023-34966
Published
July 20, 2023
CVSS
7.5 (High), CVSS 3.1
Affected
from 4.17.0, 4.18.0 up to the fixed release
Fixed in
4.16.11, 4.17.10, 4.18.5
Assigned by
Red Hat

What is CVE-2023-34966?

An infinite loop vulnerability exists in Samba's mdssvc RPC service used for Spotlight. The core unmarshalling function sl_unpack_loop() fails to validate a network packet field that specifies the count of elements in an array-like structure. When a client sends a malformed mdssvc RPC packet with the count set to 0, the function enters an endless loop and consumes 100% CPU. The attack vector is a crafted RPC request from a remote client; no authentication or user interaction is required. Affected builds include versions from 4.17.0 and 4.18.0 up to the fixed release. The impact is a denial of service where a targeted Samba server becomes unusable due to CPU exhaustion. Fixed releases are 4.16.11, 4.17.10, and 4.18.5 which correct the validation in the unmarshalling path. The affected and fixed versions, the CVSS score and the remediation below are taken directly from the CVE record and the vendor advisory linked under Sources, not from our interpretation.

Am I affected?

Affected: Samba from 4.17.0, 4.18.0 up to the fixed release. Fixed in: 4.16.11, 4.17.10, 4.18.5.

How do I fix it?

Install your distribution's security update for this package, then restart the affected service so the running process picks up the fix.

# Debian / Ubuntu
sudo apt update && sudo apt upgrade

# RHEL / AlmaLinux / Rocky Linux
sudo dnf upgrade --refresh

How HostCrust helps you see it

Patch Proof checks the packages on each server against your distribution's own security data, per CVE, so once your distribution publishes its fix it shows this package as open until the update is installed — and because it is a running service, the fix isn't done until you restart it.

How we checked this: Every fact on this page — the CVE id, the affected and fixed versions, the CVSS score and the remediation — was taken from the CVE's NVD record and the vendor or CNA advisory linked under Sources, and checked on December 3, 2026. HostCrust did not independently reproduce the vulnerability. Anything we didn't run ourselves comes from the official documentation listed under Sources.

Check which CVEs are really open on your server

HostCrust Patch Proof compares every installed package with your distribution's own security data. It counts fixes your distro backported and checks the kernel that is actually running, not just the one on disk. Read-only, no root, free.

Run the free check About Patch Proof

FAQ

How severe is CVE-2023-34966?

The NVD record lists a CVSS base score of 7.5 (High) (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H). Severity scores can be revised as a CVE is analysed, so check the NVD record and the vendor advisory under Sources for the current figure.

How do I fix it?

Install your distribution's or vendor's fixed release for Samba and restart the affected service (or reboot, for a kernel fix). The commands are in the section above.

Where do these facts come from?

Every fact on this page — the CVE id, the affected and fixed versions, the CVSS score and the remediation — is copied from the CVE's NVD record and the vendor or CNA advisory linked under Sources. HostCrust reformats the official facts; it does not add its own.

Sources

  1. NVD: CVE-2023-34966
  2. Vendor advisory: www.samba.org
  3. Reference: access.redhat.com
  4. Reference: access.redhat.com
  5. Reference: access.redhat.com