Heap-Buffer Overflow in Samba Client (CVE-2018-10858)

samba Updated 02 Oct 2025

Summary

22/08/2018
N/A
Yes i
High
8.8

CVE-2018-10858: A heap-buffer overflow was found in the way samba clients processed extra long filename in a directory listing. Affects samba across 2 version ranges.

< 4.8.4-r0 < 18df99ba0bfc466b877d5875bef3ab1279b0e7dc

Fixed in 4.8.4-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Samba is an open-source software suite that provides file and print services for Windows clients. It allows Linux and Unix systems to act as file and print servers for Windows systems. The vulnerability, CVE-2018-10858, is a heap-buffer overflow that affects Samba clients. It occurs when processing extra long filenames in a directory listing. An attacker could exploit this flaw by hosting a malicious Samba server and causing arbitrary code execution on a vulnerable Samba client. The vulnerability has a CVSS score of 8.8, indicating a high severity level.

Vulnerability Detail

The heap-buffer overflow vulnerability in Samba clients allows an attacker to execute arbitrary code on a targeted Samba client. By sending a specially crafted directory listing with an excessively long filename, the attacker can trigger a buffer overflow, leading to the execution of arbitrary code. This can result in a complete compromise of the affected system, allowing the attacker to gain unauthorized access, modify data, or launch further attacks. The vulnerability affects Samba versions prior to 4.6.16, 4.7.9, and 4.8.4.

How To Fix

Minimum fixed version

4.8.4-r0

This is the first release that contains the fix.

sudo apk add --upgrade samba

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can disable the use of Samba clients or block access to Samba servers from untrusted sources. This can help mitigate the risk of exploitation until the vulnerable Samba package can be updated. However, this workaround may impact the functionality of systems that rely on Samba for file and print services.

Conclusion

The heap-buffer overflow vulnerability in Samba clients (CVE-2018-10858) poses a significant risk to systems running vulnerable versions of Samba. It is crucial to update the Samba package to version 4.8.4 or later to mitigate the risk of arbitrary code execution. Regularly updating all software packages is also recommended to ensure the latest security patches are applied. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for samba →

Share this vulnerability

FAQ

Samba is an open-source software suite that allows Linux and Unix systems to act as file and print servers for Windows clients.

The vulnerability allows an attacker to execute arbitrary code on a vulnerable Samba client, potentially leading to unauthorized access, data modification, or further attacks.

Samba versions prior to 4.6.16, 4.7.9, and 4.8.4 are vulnerable to this heap-buffer overflow vulnerability.

To fix the vulnerability, update the Samba package to version 4.8.4 or later. Check your distribution's package repositories for the latest version and apply the update.

As a temporary workaround, you can disable the use of Samba clients or block access to Samba servers from untrusted sources.

Related vulnerabilities

Recent vulnerabilities recorded for samba.

How To Fix

Minimum fixed version

4.8.4-r0

This is the first release that contains the fix.

sudo apk add --upgrade samba

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback