CVE-2026-2340

published 27 May 2026 · updated 16 Nov 2026

Samba: vfs_worm does not block directory modification

6.5MediumCVSS 6.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Samba 4.24.3, Samba 4.23.8, Samba 4.22.10 and 8 more.

A flaw was found in Samba’s vfs_worm module. The module is intended to provide write-once, read-many (WORM) protections by preventing modification of files after a configurable grace period. Due to insufficient validation during rename operations, an authenticated user with write access to a share could overwrite a protected file by renaming a newly created file over the existing WORM-protected file.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatEnterprise Linux
Red HatOpenShift Container Platform
SambaSamba>=4.24.0 <4.24.3, >=4.23.0 <4.23.8, >=4.20.0 <4.22.104.24.3, 4.23.8, 4.22.10
redhatopenshift_container_platform>=4.16 <4.16.69, >=4.15 <4.15.68, >=4.14 <4.14.72, >=4.13 <4.13.71, >=4.19 <4.19.36, >=4.12 <4.12.97, >=4.18 <4.18.54, >=4.17 <4.17.574.16.69, 4.15.68, 4.14.72, 4.13.71, 4.19.36, 4.12.97, 4.18.54, 4.17.57
redhatenterprise_linux=9.0, =8.0, =7.0, =10.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Samba, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-2340 severity on Zeptric[![CVE-2026-2340](https://zeptric.io/badge/cve/CVE-2026-2340.svg)](https://zeptric.io/cve/CVE-2026-2340)