cve.bz

CVE-2023-4154 samba samba: Out-of-bounds Write

6.5 mediumEPSS 1.4%Fix available

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

On this page
A design flaw was found in Samba's DirSync control implementation, which exposes passwords and secrets in Active Directory to privileged users and Read-Only Domain Controllers (RODCs). This flaw allows RODCs and users possessing the GET_CHANGES right to access all attributes, including sensitive secrets and passwords. Even in a default setup, RODC DC accounts, which should only replicate some passwords, can gain access to all domain secrets, including the vital krbtgt, effectively eliminating the RODC / DC distinction. Furthermore, the vulnerability fails to account for error conditions (fail open), like out-of-memory situations, potentially granting access to secret attributes, even under low-privileged attacker influence.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-4154 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-4154?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-4154?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-4154 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 NVD's CPE matches.

ProductAffected
samba:sambafrom 4.0.0 before 4.17.12
samba:sambafrom 4.18.0 before 4.18.8
samba:sambafrom 4.19.0 before 4.19.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12samba2:4.17.12+dfsg-0+deb12u1DEBIAN-CVE-2023-4154 DSA-5525-1
Debian13, 14samba2:4.19.1+dfsg-1DEBIAN-CVE-2023-4154
Ubuntu20.04:LTSsamba2:4.15.13+dfsg-0ubuntu0.20.04.6UBUNTU-CVE-2023-4154 USN-6425-1
Ubuntu22.04:LTSsamba2:4.15.13+dfsg-0ubuntu1.5UBUNTU-CVE-2023-4154 USN-6425-1
Ubuntu24.04:LTSsamba2:4.18.6+dfsg-1ubuntu2.1UBUNTU-CVE-2023-4154
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTSsambano fix listedUBUNTU-CVE-2023-4154
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 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
Alpinev3.18, v3.19, v3.20 and 4 moresamba4.18.8-r0ALPINE-CVE-2023-4154
Azure Linux2sambano fix listedAZL-31955
Azure Linux3sambano fix listedAZL-37026

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; 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 · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The Samba package as shipped with Red Hat Enterprise Linux 6, 7, 8 and 9 and Red Hat Gluster Storage is not affected by this issue as Red Hat doesn't provide the AD Domain Controller capability with it.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6sambaNot affected
Red Hat Enterprise Linux 6samba4Not affected
Red Hat Enterprise Linux 7sambaNot affected
Red Hat Enterprise Linux 8sambaNot affected
Red Hat Enterprise Linux 9sambaNot affected
Red Hat Storage 3sambaNot affected

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-4154.

References

Check your stackJSON