cve.bz

CVE-2023-4091 Incorrect Default Permissions

6.5 mediumEPSS 1.3%Fix available

Medium (6.5). EPSS 1.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 72nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-04-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-276 Incorrect Default Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:4.18.6-2.el8_9
  • Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support: fixed in 0:4.15.5-13.el8_6
  • Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support: fixed in 0:4.17.5-4.el8_8
  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:4.18.6-101.el9_3
  • Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support: fixed in 0:4.15.5-111.el9_0
  • Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support: fixed in 0:4.17.5-104.el9_2
  • Red Hat Red Hat Virtualization 4 for Red Hat Enterprise Linux 8: fixed in 0:4.15.5-13.el8_6
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Alpine: fixed package versions per release
  • Vendor advisory: https://www.samba.org/samba/security/CVE-2023-4091.html

Ask an AI about this CVE

Show the promptExplain CVE-2023-4091 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-4091?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-4091?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-4091 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:4.18.6-2.el8_9
Red Hat Enterprise Linux 8.6 Extended Update Support0:4.15.5-13.el8_6
Red Hat Enterprise Linux 8.8 Extended Update Support0:4.17.5-4.el8_8
Red Hat Enterprise Linux 90:4.18.6-101.el9_3
Red Hat Enterprise Linux 9.0 Extended Update Support0:4.15.5-111.el9_0
Red Hat Enterprise Linux 9.2 Extended Update Support0:4.17.5-104.el9_2
Red Hat Virtualization 4 for Red Hat Enterprise Linux 80:4.15.5-13.el8_6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10samba2:4.9.5+dfsg-5+deb10u5DLA-3792-1
Debian11samba2:4.13.13+dfsg-1~deb11u6DSA-5647-1
Debian12samba2:4.17.12+dfsg-0+deb12u1DEBIAN-CVE-2023-4091 DSA-5525-1
Debian13, 14samba2:4.19.1+dfsg-1DEBIAN-CVE-2023-4091
Ubuntu20.04:LTSsamba2:4.15.13+dfsg-0ubuntu0.20.04.6UBUNTU-CVE-2023-4091 USN-6425-1
Ubuntu22.04:LTSsamba2:4.15.13+dfsg-0ubuntu1.5UBUNTU-CVE-2023-4091 USN-6425-1
Ubuntu24.04:LTSsamba2:4.18.6+dfsg-1ubuntu2.1UBUNTU-CVE-2023-4091
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTSsambano fix listedUBUNTU-CVE-2023-4091
Red Hatenterprise_linux:8::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 23 more0:4.18.6-2.el8_9RHSA-2023:7467
Red Hatenterprise_linux:8::baseosctdb, samba, libnetapi and 50 more0:4.18.6-2.el8_9RHSA-2023:7467
Red Hatenterprise_linux:8::crbsamba-devel, ctdb-debuginfo, libnetapi-devel and 27 more0:4.18.6-2.el8_9RHSA-2023:7467
Red Hatenterprise_linux:9::appstreamsamba-client, samba-winexe, ctdb-debuginfo and 28 more0:4.18.6-101.el9_3RHSA-2023:6744
Red Hatenterprise_linux:9::baseossamba, libnetapi, samba-libs and 40 more0:4.18.6-101.el9_3RHSA-2023:6744
Red Hatenterprise_linux:9::crbsamba-pidl, samba-test, samba-devel and 31 more0:4.18.6-101.el9_3RHSA-2023:6744
Red Hatenterprise_linux:9::resilientstoragectdb, ctdb-debuginfo, samba-debuginfo and 23 more0:4.18.6-101.el9_3RHSA-2023:6744
Red Hatrhel_eus:8.6::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 18 more0:4.15.5-13.el8_6RHSA-2023:7408
Red Hatrhel_eus:8.6::baseosctdb, samba, samba-libs and 38 more0:4.15.5-13.el8_6RHSA-2023:7408
Red Hatrhel_eus:8.6::crbsamba-devel, ctdb-debuginfo, samba-debuginfo and 20 more0:4.15.5-13.el8_6RHSA-2023:7408
Red Hatrhel_eus:8.8::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 23 more0:4.17.5-4.el8_8RHSA-2023:7464
Red Hatrhel_eus:8.8::baseosctdb, samba, libnetapi and 50 more0:4.17.5-4.el8_8RHSA-2023:7464
10 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Availability Extension 15 SP3, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 6 moresamba4.15.13+git.691.3d3cea0641-150300.3.63.1SUSE-SU-2023:4096-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 1 moresamba4.15.13+git.625.ac658f2f12-3.88.1SUSE-SU-2023:4040-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Micro 5.3, Linux Enterprise Micro 5.4 and 1 moresamba4.15.13+git.691.3d3cea0641-150400.3.31.1SUSE-SU-2023:4059-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5samba4.17.9+git.421.abde31ca5c2-150500.3.11.1SUSE-SU-2023:4046-1
openSUSELeap 15.4samba4.15.13+git.691.3d3cea0641-150400.3.31.1SUSE-SU-2023:4059-1
openSUSELeap 15.5samba4.17.9+git.421.abde31ca5c2-150500.3.11.1SUSE-SU-2023:4046-1
openSUSETumbleweedsamba4.19.1+git.312.c912b3d2ef6-1.1openSUSE-SU-2024:13332-1
AlmaLinux8ctdb, samba, libnetapi and 31 more4.18.6-2.el8_9.alma.1ALSA-2023:7467
AlmaLinux9ctdb, samba, libnetapi and 31 more4.18.6-101.el9_3.alma.1ALSA-2023:6744
Alpinev3.18, v3.19, v3.20 and 4 moresamba4.18.8-r0ALPINE-CVE-2023-4091
Azure Linux2sambano fix listedAZL-31900
Azure Linux3sambano fix listedAZL-37025

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The vulnerability primarily affects Samba configurations using the "acl_xattr" module with the "acl_xattr:ignore system acls = yes" setting.

Red Hat's mitigation

The vulnerability is most commonly associated with the "acl_xattr" module and can be mitigated by setting:

~~~

"acl_xattr:ignore system acls = no"

~~~

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8samba-0:4.18.6-2.el8_9Fixed 2023-11-22RHSA-2023:7467
Red Hat Enterprise Linux 8.6 Extended Update Supportsamba-0:4.15.5-13.el8_6Fixed 2023-11-21RHSA-2023:7408
Red Hat Enterprise Linux 8.8 Extended Update Supportsamba-0:4.17.5-4.el8_8Fixed 2023-11-22RHSA-2023:7464
Red Hat Enterprise Linux 9samba-0:4.18.6-101.el9_3Fixed 2023-11-07RHSA-2023:6744
Red Hat Enterprise Linux 9.0 Extended Update Supportsamba-0:4.15.5-111.el9_0Fixed 2023-10-31RHSA-2023:6209
Red Hat Enterprise Linux 9.2 Extended Update Supportsamba-0:4.17.5-104.el9_2Fixed 2023-11-21RHSA-2023:7371
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8samba-0:4.15.5-13.el8_6Fixed 2023-11-21RHSA-2023:7408
Red Hat Enterprise Linux 6sambaOut of support scope
Red Hat Enterprise Linux 6samba4Out of support scope
Red Hat Enterprise Linux 7sambaOut of support scope
Red Hat Storage 3sambaOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-4091.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-127 Directory Indexing Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON