Breaking: Ruby2Shell - Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2023-4091

samba: SMB clients can truncate files with read-only permissions

Overview

Published
3 Nov 2023
Modified
7 Nov 2026
Medium CVE
0 Registry packages
88 OS packages
12 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

6.5 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Weakness: CWE-276

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 37 fixes

Oracle Linux 2 releases · 2 packages

fixed 2
ctdb libnetapi
Oracle Linux fixes for CVE-2023-4091
ReleasePackageFixed in
8 ctdb +34 4.18.6-2.0.1.el8_9
9 libnetapi +32 4.18.6-101.el9_3

Red Hat 4 releases · 2 packages

eol 2 fixed 6
python3-samba ctdb
Red Hat fixes for CVE-2023-4091
ReleasePackageFixed inAdvisory
python3-samba eol —
7 ctdb +28 eol —
8 ctdb +24 0:4.15.5-13.el8_6 RHSA-2023:7408
8 ctdb +33 0:4.17.5-4.el8_8 RHSA-2023:7464
8 ctdb +33 0:4.18.6-2.el8_9 RHSA-2023:7467
9 ctdb +23 0:4.15.5-111.el9_0 RHSA-2023:6209

2 more rows

SUSE Linux Enterprise 3 releases · 1 package

fixed 3
ctdb
SUSE Linux Enterprise fixes for CVE-2023-4091
ReleasePackageFixed inAdvisory
12.5 ctdb +22 4.15.13+git.625.ac658f2f12-3.88.1 SUSE-SU-2023:4040-1
15.4 ctdb +24 4.15.13+git.691.3d3cea0641-150400.3.31.1 SUSE-SU-2023:4059-1
15.5 ctdb +19 4.17.9+git.421.abde31ca5c2-150500.3.11.1 SUSE-SU-2023:4046-1

SUSE Linux Enterprise Micro 4 releases · 1 package

fixed 4
samba-client-libs
SUSE Linux Enterprise Micro fixes for CVE-2023-4091
ReleasePackageFixed inAdvisory
5.2 samba-client-libs 4.15.13+git.691.3d3cea0641-150300.3.63.1 SUSE-SU-2023:4096-1
5.3 samba-client-libs +1 4.15.13+git.691.3d3cea0641-150400.3.31.1 SUSE-SU-2023:4059-1
5.4 samba-client-libs +1 4.15.13+git.691.3d3cea0641-150400.3.31.1 SUSE-SU-2023:4059-1
5.5 samba-client-libs 4.17.9+git.421.abde31ca5c2-150500.3.11.1 SUSE-SU-2023:4046-1

alma 2 releases · 1 package

fixed 2
ctdb
alma fixes for CVE-2023-4091
ReleasePackageFixed in
8 ctdb +33 4.18.6-2.el8_9.alma.1
9 ctdb +33 4.18.6-101.el9_3.alma.1

alpine 4 releases · 1 package

fixed 4
samba
alpine fixes for CVE-2023-4091
ReleasePackageFixed in
3.22 samba 4.18.8-r0
3.23 samba 4.18.8-r0
3.24 samba 4.18.8-r0
edge samba 4.18.8-r0

amazon linux 1 release · 1 package

fixed 1
libnetapi
amazon linux fixes for CVE-2023-4091
ReleasePackageFixed in
2023 libnetapi +54 2:4.17.12-1.amzn2023.0.1

debian 5 releases · 1 package

fixed 5
samba
debian fixes for CVE-2023-4091
ReleasePackageFixed in
10 samba 2:4.9.5+dfsg-5+deb10u5
11 samba 2:4.13.13+dfsg-1~deb11u6
12 samba 2:4.17.12+dfsg-0+deb12u1
13 samba 2:4.19.1+dfsg-1
14 samba 2:4.19.1+dfsg-1

echo 1 release · 1 package

fixed 1
samba
echo fixes for CVE-2023-4091
ReleasePackageFixed in
samba 2:4.19.1+dfsg-1

openSUSE 1 release · 1 package

fixed 1
ctdb
openSUSE fixes for CVE-2023-4091
ReleasePackageFixed inAdvisory
Tumbleweed ctdb +30 4.19.1+git.312.c912b3d2ef6-1.1 openSUSE-SU-2024:13332-1

root.io debian 1 release · 1 package

fixed 1
rootio-samba
root.io debian fixes for CVE-2023-4091
ReleasePackageFixed in
12 rootio-samba 2:4.17.12+dfsg-0+deb12u1

ubuntu 5 releases · 1 package

fixed 5
samba
ubuntu fixes for CVE-2023-4091
ReleasePackageFixed in
20.04 samba 2:4.15.13+dfsg-0ubuntu0.20.04.6
20.04-ESM samba 2:4.15.13+dfsg-0ubuntu0.20.04.6
22.04 samba 2:4.15.13+dfsg-0ubuntu1.5
24.04 samba 2:4.18.6+dfsg-1ubuntu2.1
26.04 samba 2:4.18.6+dfsg-1ubuntu2.1

References

Show all 23 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.