CVE-2023-4091

    Dashboard / Vulnerabilities / CVE-2023-4091

    CVE-2023-4091

    Published: 3 Nov 2023Last Modified: 12 Aug 2026

    Summary: Samba: smb clients can truncate files with read-only permissions

    Details: 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.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Affected versions

    samba-4.17.11
    samba-4.17.10
    samba-4.17.9
    samba-4.17.8
    samba-4.17.7
    samba-4.17.6
    samba-4.17.5
    samba-4.17.4
    samba-4.17.2
    samba-4.17.1
    samba-4.17.0
    samba-4.17.0rc5
    samba-4.17.0rc4
    samba-4.17.0rc3
    samba-4.17.0rc2
    samba-4.17.0rc1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    CVE-2023-4091 | CVE-DB