CVE-2023-4154Samba: ad dc password exposure to privileged users and rodcs
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.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | samba | Fixed | 2:4.18.6+dfsg-1ubuntu2.1 | UBUNTU-CVE-2023-4154 |
| Ubuntu 22.04 | samba | Fixed | 2:4.15.13+dfsg-0ubuntu1.5 | UBUNTU-CVE-2023-4154 |
| Ubuntu 20.04 | samba | Fixed | 2:4.15.13+dfsg-0ubuntu0.20.04.6 | UBUNTU-CVE-2023-4154 |
| Ubuntu 18.04 | samba | Fix pending | UBUNTU-CVE-2023-4154 | |
| Ubuntu 16.04 | samba | Fix pending | UBUNTU-CVE-2023-4154 | |
| Ubuntu 14.04 | samba | Fix pending | UBUNTU-CVE-2023-4154 | |
| Debian 14 | samba | Fixed | 2:4.19.1+dfsg-1 | DEBIAN-CVE-2023-4154 |
| Debian 13 | samba | Fixed | 2:4.19.1+dfsg-1 | DEBIAN-CVE-2023-4154 |
| Debian 12 | samba | Fixed | 2:4.17.12+dfsg-0+deb12u1 | DEBIAN-CVE-2023-4154 |
| Red Hat Enterprise Linux 9 | ctdb | Not affected | ||
| Red Hat Enterprise Linux 9 | ldb-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | libldb | Not affected | ||
| Red Hat Enterprise Linux 9 | libldb-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libnetapi | Not affected | ||
| Red Hat Enterprise Linux 9 | libnetapi-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 9 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 9 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ldb | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba-dc | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba-test | Not affected | ||
| Red Hat Enterprise Linux 9 | samba | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-dcerpc | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-gpupdate | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-ldb-ldap-modules | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-usershares | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-vfs-iouring | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winexe | Not affected | ||
| Red Hat Enterprise Linux 8 | ctdb | Not affected | ||
| Red Hat Enterprise Linux 8 | ctdb-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | libnetapi | Not affected | ||
| Red Hat Enterprise Linux 8 | libnetapi-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 8 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 8 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba-dc | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba-test | Not affected | ||
| Red Hat Enterprise Linux 8 | samba | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-dcerpc | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-ldb-ldap-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-usershares | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-vfs-iouring | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winexe | Not affected | ||
| Red Hat Enterprise Linux 7 | ctdb | Not affected | ||
| Red Hat Enterprise Linux 7 | ctdb-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ctdb-tests | Not affected | ||
| Red Hat Enterprise Linux 7 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 7 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 7 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | samba | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-dc | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-python | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-python-test | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-test-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-vfs-glusterfs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 6 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 6 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | samba | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-doc | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-domainjoin-gui | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-glusterfs | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-swat | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4 | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-client | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-common | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-dc | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-pidl | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-python | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-swat | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-test | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-winbind | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-winbind-krb5-locator | Not affected | ||
| Alpine Linux 3.24 | samba | Fixed | 4.18.8-r0 | ALPINE-CVE-2023-4154 |
| Alpine Linux 3.23 | samba | Fixed | 4.18.8-r0 | ALPINE-CVE-2023-4154 |
| Alpine Linux 3.22 | samba | Fixed | 4.18.8-r0 | ALPINE-CVE-2023-4154 |
| Alpine Linux 3.21 | samba | Fixed | 4.18.8-r0 | ALPINE-CVE-2023-4154 |
| Alpine Linux 3.20 | samba | Fixed | 4.18.8-r0 | ALPINE-CVE-2023-4154 |
| Alpine Linux 3.19 | samba | Fixed | 4.18.8-r0 | ALPINE-CVE-2023-4154 |
| Alpine Linux 3.18 | samba | Fixed | 4.18.8-r0 | ALPINE-CVE-2023-4154 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- samba: affected: 4.19.1 not affected, 4.18.8 not affected, 4.17.12 not affected
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Storage 3
- Fedora
References
- https://access.redhat.com/security/cve/CVE-2023-4154
- https://bugzilla.redhat.com/show_bug.cgi?id=2241883
- https://bugzilla.samba.org/show_bug.cgi?id=15424
- https://security.netapp.com/advisory/ntap-20231124-0002/
- https://www.samba.org/samba/security/CVE-2023-4154.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.