CVE Catalog

CVE-2023-4091

MediumCVSS 6.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.33%

71th percentile - higher than 71% of all known CVEs

Summary

A vulnerability was discovered in Samba that allows SMB clients to truncate files even with read-only permissions when the Samba VFS module "acl_xattr" is configured with "acl_xattr:ignore system acls = yes". The SMB protocol allows opening files with read-only access but then implicitly truncates the opened file to 0 bytes if the client specifies a separate OVERWRITE create disposition request.

Risk Assessment

An attacker could erase the contents of files they only have read access to, causing data loss. The issue occurs in configurations that bypass kernel file system permission checks.

Recommendation

Update Samba to a patched version. Avoid "acl_xattr:ignore system acls = yes" or restrict share access.

Other vulnerabilities in Samba

See all
Original NVD description (English source)

A vulnerability was discovered in Samba, where the flaw allows SMB clients to truncate files, even with read-only permissions when the Samba VFS module "acl_xattr" is configured with "acl_xattr:ignore system acls = yes". The SMB protocol allows opening files when the client requests read-only access but then implicitly truncates the opened file to 0 bytes if the client specifies a separate OVERWRITE create disposition request. The issue arises in configurations that bypass kernel file system permissions checks, relying solely on Samba's permissions.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS