Quick answers
- Is CVE-2026-2340 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-2340 being exploited in the wild.
- How severe is CVE-2026-2340?
- Medium severity, with a CVSS score of 6.5, published 27 May 2026.
- Which products and versions are affected?
- Samba 4.21, 4.22, 4.23, 4.24.
- Is there a fix for CVE-2026-2340?
- A patch was published on 2026-05-26: Samba releases 4.24.3, 4.23.8, and 4.22.10 containing the fix Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-2340 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-2340?
- Check whether you run Samba at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A logic flaw exists in the Samba vfs_worm module due to insufficient validation during SMB rename operations. While the module is designed to prevent file modifications after a configurable grace period, the rename hook only validates the source path and fails to check the WORM status of the destination path. An authenticated attacker with write permissions to a share can exploit this by renaming a new, unprotected file over an existing WORM-protected file (using ReplaceIfExists=1), effectively bypassing immutability guarantees. The vulnerability affects Samba versions 4.21 and newer where vfs_worm is enabled. Patches have been released in versions 4.24.3, 4.23.8, and 4.22.10.
Affected products
- Samba Samba 4.21, 4.22, 4.23, 4.24
Timeline
- 2026-02-11: other: Vulnerability reported to Samba developers
- 2026-05-26: patched: Samba releases 4.24.3, 4.23.8, and 4.22.10 containing the fix
- 2026-05-27: disclosed: Public disclosure of CVE-2026-2340