VulnarioBlogSamba vulnerabilities

Samba Vulnerabilities: The 10 Most Critical Samba Security Bugs (CVEs)

Samba vulnerabilities are security flaws in Samba that attackers can abuse to steal data, take over a server or interrupt a service. Samba provides Windows-compatible file and print sharing on Linux and Unix. The National Vulnerability Database (NVD) lists 216 CVEs for Samba, 8 of them rated critical, and 6 were published in the last 12 months. CISA lists 2 of them in its Known Exploited Vulnerabilities (KEV) catalog, which means attackers have used them against real systems.

This guide lists the 10 most critical Samba security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers Samba security basics, the current end-of-life dates and a free way to be told about the next Samba CVE as soon as it is published.

Key takeaways

  • 2 CVEs are in CISA's KEV catalog, so attackers have exploited them in the wild.
  • 8 Samba CVEs are rated critical (CVSS v3), and 6 new ones were published in the last 12 months.
  • The newest CVE in this guide is CVE-2026-4408, published May 28, 2026.
  • Supported Samba releases today (per endoflife.date): 4.25, 4.24, 4.23. Releases not on the list are past their announced end of life.
  • You can monitor Samba for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these Samba CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 10 most critical Samba CVEs at a glance

Most critical Samba vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2017-74949.8 Critical2017-05-30Samba Remote Code ExecutionYes (ransomware use known)
2CVE-2020-14725.5 Medium2020-08-17Microsoft Netlogon Privilege EscalationYes (ransomware use known)
3CVE-2026-44089.8 Critical2026-05-28OS command injectionNo
4CVE-2023-39619.8 Critical2023-11-03Path traversalNo
5CVE-2022-451419.8 Critical2023-03-06Critical security flawNo
6CVE-2022-446409.8 Critical2022-12-25Arbitrary code executionNo
7CVE-2017-147469.8 Critical2017-11-27Use after freeNo
8CVE-2019-101979.1 Critical2019-09-03Path traversalNo
9CVE-2026-44809.0 Critical2026-05-26OS command injectionNo
10CVE-2022-428988.8 High2022-12-25Integer overflowNo

Each Samba CVE explained

1. CVE-2017-7494: Samba Remote Code Execution

  • CVSS 9.8 Critical
  • In CISA KEV (added 2023-03-30)
  • Published 2017-05-30
  • CWE-94
What NVD says
Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allowing a malicious client to upload a shared library to a writable share, and then cause the server to load and execute it.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
3.5.0 to before 4.4.0; 4.4.0 to before 4.4.14; 4.5.0 to before 4.5.10; 4.6.0 to before 4.6.4
What to do
Upgrade to the fixed release for your branch (4.4.0, 4.4.14, 4.5.10) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2017-7494 (opens in a new tab)

2. CVE-2020-1472: Microsoft Netlogon Privilege Escalation

  • CVSS 5.5 Medium
  • In CISA KEV (added 2021-11-03)
  • Published 2020-08-17
What NVD says
An elevation of privilege vulnerability exists when an attacker establishes a vulnerable Netlogon secure channel connection to a domain controller, using the Netlogon Remote Protocol (MS-NRPC). An attacker who successfully exploited the vulnerability could run a specially crafted application on a device on the network.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality.
Affected versions
before 4.10.18; 4.11.0 to before 4.11.13; 4.12.0 to before 4.12.7
What to do
Upgrade to the fixed release for your branch (4.10.18, 4.11.13, 4.12.7) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2020-1472 (opens in a new tab)

3. CVE-2026-4408: OS command injection

  • CVSS 9.8 Critical
  • Published 2026-05-28
  • CWE-78
What NVD says
A flaw was found in Samba. A remote attacker can exploit a misconfiguration in Samba file servers and classic domain controllers that use the "check password script" feature. If this script is configured with the %u substitution character, the client-controlled username is passed without proper escaping of shell meta-characters.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
4.1.0 to before 4.21.0
What to do
Upgrade to 4.21.0 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-4408 (opens in a new tab)

4. CVE-2023-3961: Path traversal

  • CVSS 9.8 Critical
  • Published 2023-11-03
  • CWE-22
What NVD says
A path traversal vulnerability was identified in Samba when processing client pipe names connecting to Unix domain sockets within a private directory. Samba typically uses this mechanism to connect SMB clients to remote procedure call (RPC) services like SAMR LSA or SPOOLSS, which Samba initiates on demand.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 4.17.12; 4.18.0 to before 4.18.8; 4.19.0 to before 4.19.1
What to do
Upgrade to the fixed release for your branch (4.17.12, 4.18.8, 4.19.1) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2023-3961 (opens in a new tab)

5. CVE-2022-45141: Critical security flaw

  • CVSS 9.8 Critical
  • Published 2023-03-06
  • CWE-328
What NVD says
Since the Windows Kerberos RC4-HMAC Elevation of Privilege Vulnerability was disclosed by Microsoft on Nov 8 2022 and per RFC8429 it is assumed that rc4-hmac is weak, Vulnerable Samba Active Directory DCs will issue rc4-hmac encrypted tickets despite the target server supporting better encryption (eg aes256-cts-hmac-sha1-96).
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 4.15.13; 4.16.0 to before 4.16.8
What to do
Upgrade to the fixed release for your branch (4.15.13, 4.16.8) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2022-45141 (opens in a new tab)

6. CVE-2022-44640: Arbitrary code execution

  • CVSS 9.8 Critical
  • Published 2022-12-25
  • CWE-415
What NVD says
Heimdal before 7.7.1 allows remote attackers to execute arbitrary code because of an invalid free in the ASN.1 codec used by the Key Distribution Center (KDC).
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
4.15.0 to before 4.15.3; 4.16.0 to before 4.16.8; 4.17.0 to before 4.17.4
What to do
Upgrade to the fixed release for your branch (4.15.3, 4.16.8, 4.17.4) or a later one, then restart the service.

NVD record for CVE-2022-44640 (opens in a new tab)

7. CVE-2017-14746: Use after free

  • CVSS 9.8 Critical
  • Published 2017-11-27
  • CWE-416
What NVD says
Use-after-free vulnerability in Samba 4.x before 4.7.3 allows remote attackers to execute arbitrary code via a crafted SMB1 request.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
4.0.0 to before 4.5.0; 4.5.0 to before 4.5.15; 4.6.0 to before 4.6.11; 4.7.0 to before 4.7.3
What to do
Upgrade to the fixed release for your branch (4.5.0, 4.5.15, 4.6.11) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2017-14746 (opens in a new tab)

8. CVE-2019-10197: Path traversal

  • CVSS 9.1 Critical
  • Published 2019-09-03
  • CWE-22
What NVD says
A flaw was found in samba versions 4.9.x up to 4.9.13, samba 4.10.x up to 4.10.8 and samba 4.11.x up to 4.11.0rc3, when certain parameters were set in the samba configuration file. An unauthenticated attacker could use this flaw to escape the shared directory and access the contents of directories outside the share.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality and integrity.
Affected versions
4.9.0 through 4.9.13; 4.10.0 through 4.10.8; 4.9.0; 4.10.0
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2019-10197 (opens in a new tab)

9. CVE-2026-4480: OS command injection

  • CVSS 9.0 Critical
  • Published 2026-05-26
  • CWE-78
What NVD says
A flaw was found in the Samba printing subsystem. Samba passes the client-controlled job description string to the command configured with the "print command" setting via the "%J" substitution character without escaping shell meta characters. A remote attacker could exploit this vulnerability by sending a specially crafted print job description that contains unescaped shell characters.
How it can be attacked
Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
4.1.0 to before 4.2.1
What to do
Upgrade to 4.2.1 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-4480 (opens in a new tab)

10. CVE-2022-42898: Integer overflow

  • CVSS 8.8 High
  • Published 2022-12-25
  • CWE-190
What NVD says
PAC parsing in MIT Kerberos 5 (aka krb5) before 1.19.4 and 1.20.x before 1.20.1 has integer overflows that may lead to remote code execution (in KDC, kadmind, or a GSS or Kerberos application server) on 32-bit platforms (which have a resultant heap-based buffer overflow), and cause a denial of service on other platforms. This occurs in krb5_pac_parse in lib/krb5/krb/pac.c. Heimdal before 7.7.1 has "a similar bug."
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 4.15.12; 4.16.0 to before 4.16.7; 4.17.0 to before 4.17.3
What to do
Upgrade to the fixed release for your branch (4.15.12, 4.16.7, 4.17.3) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2022-42898 (opens in a new tab)

Samba end of life: which versions still get security fixes

Running a release that still receives security fixes is the most effective way to avoid Samba vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported Samba releases are 4.25, 4.24, 4.23.

Samba release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
Samba 4.25Sep 24, 2026Mar 31, 20284.25.1Supported
Samba 4.24Mar 18, 2026Sep 30, 20274.24.8Supported
Samba 4.23Sep 12, 2025Mar 31, 20274.23.13Supported
Samba 4.22Mar 6, 2025Sep 30, 20264.22.11End of life
Samba 4.21Sep 2, 2024Mar 31, 20264.21.10End of life
Samba 4.20Mar 27, 2024Sep 12, 20254.20.8End of life
Samba 4.19Sep 4, 2023Mar 6, 20254.19.9End of life
Samba 4.18Mar 8, 2023Sep 2, 20244.18.11End of life

Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.

How to check if your Samba is vulnerable

Find the exact version first, then compare it with the affected and fixed versions in each CVE above.

smbd --version

On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.

Samba security checklist

  1. Patch firmware and software quickly: internet-facing network devices are among the first things attackers target.
  2. Never expose the management interface to the internet; use a VPN or a dedicated management network.
  3. Enable multi-factor authentication for administrators and VPN users.
  4. Subscribe to the vendor's security advisories.
  5. Keep configuration backups and review logs regularly.

Where you run Samba matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating Samba: on most plans the operating system and applications are yours to patch unless the plan says otherwise.

Your stack is bigger than Samba. A flaw anywhere in the chain can be the way in, so also review our guides to Linux Kernel vulnerabilities, Windows Server vulnerabilities and Debian vulnerabilities.

How to get alerted about new Samba vulnerabilities

NVD received 6 new Samba CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose Samba and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run Samba alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about Samba vulnerabilities

What are the most critical Samba vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Samba CVEs include CVE-2017-7494 (CVSS 9.8), CVE-2020-1472 (CVSS 5.5), CVE-2026-4408 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.

Have Samba vulnerabilities been exploited in real attacks?

Yes. CISA's Known Exploited Vulnerabilities (KEV) catalog lists 2 Samba CVEs, including CVE-2017-7494, CVE-2020-1472. Treat these as the highest priority to patch.

How many vulnerabilities does Samba have?

As of Nov 3, 2026 the National Vulnerability Database lists 216 CVEs for Samba, with 8 rated critical by CVSS v3. 6 were published in the previous twelve months.

Which Samba versions are still supported?

As of Nov 3, 2026, endoflife.date lists these Samba releases as supported: 4.25, 4.24, 4.23. Releases that are not listed are past their announced end of life.

How do I check which Samba version I run?

Run smbd --version on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.

How can I get alerted when a new Samba CVE is published?

Add Samba to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Samba and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is Samba secure?

Samba is as secure as its patch level. NVD published 6 new Samba CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2017-7494?

CVE-2017-7494 is a critical Samba vulnerability with a CVSS score of 9.8, published May 30, 2017. Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allowing a malicious client to upload a shared library to a writable share, and then cause the server to load and execute it.

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.