Improper Handling of Insufficient Permissions or Privileges Affecting samba package, versions [,4.24.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.94% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Handling of Insufficient Permissions or Privileges vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-SAMBA-16964937
  • published28 May 2026
  • disclosed27 May 2026
  • creditPavel Kohout

Introduced: 27 May 2026

CVE-2026-2340  (opens in a new tab)
CWE-280  (opens in a new tab)

How to fix?

Upgrade samba to version 4.24.3 or higher.

Overview

Affected versions of this package are vulnerable to Improper Handling of Insufficient Permissions or Privileges due to insufficient validation during rename operations in the vfs_worm process. An attacker can overwrite protected files by renaming a newly created file over an existing protected file.

Workaround

This vulnerability can be mitigated by setting read-only permissions on protected files at the underlying filesystem level or by configuring worm:grace_period = 0 in smb.conf to eliminate the writable grace period.

CVSS Base Scores

version 4.0
version 3.1