CVE-2023-4154: Samba: ad dc password exposure to privileged users and rodcs

Published Oct 3, 2023
·
Updated

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

Other sources

An RODC and a user with the GETCHANGES right can view all attributes, including secrets and passwords. In Samba's implementation of the DirSync control, Active Directory accounts authorized to do some replication, but not to replicate sensitive attributes, can instead replicate critical domain passwords and secrets.

In a default installation, this means that RODC DC accounts (which should only be permitted to replicate some passwords) can instead obtain all domain secrets, including the core AD secret: the krbtgt password.

https://bugzilla.samba.org/showbug.cgi?id=15424

— Red Hat

Affected Software

19 affected componentsFixes available
redhat/samba<4.19.1
4.19.1
redhat/samba<4.18.8
4.18.8
redhat/samba<4.17.12
4.17.12
ubuntu/samba<2:4.15.13+dfsg-0ubuntu0.20.04.6
2:4.15.13+dfsg-0ubuntu0.20.04.6
ubuntu/samba<2:4.15.13+dfsg-0ubuntu1.5
2:4.15.13+dfsg-0ubuntu1.5
ubuntu/samba<2:4.17.7+dfsg-1ubuntu2.3
2:4.17.7+dfsg-1ubuntu2.3
ubuntu/samba<2:4.18.6+dfsg-1ubuntu2.1
2:4.18.6+dfsg-1ubuntu2.1
ubuntu/samba<2:4.18.6+dfsg-1ubuntu2.1
2:4.18.6+dfsg-1ubuntu2.1
Samba Samba>=4.0.0<4.17.12
Samba Samba>=4.18.0<4.18.8
Samba Samba>=4.19.0<4.19.1
alpine/samba>=4.18.0<4.18.8-r0
4.18.8-r0
alpine/samba>=4.18.0<4.18.8-r0
4.18.8-r0
alpine/samba>=4.18.0<4.18.8-r0
4.18.8-r0
alpine/samba>=4.18.0<4.18.8-r0
4.18.8-r0
alpine/samba>=4.18.0<4.18.8-r0
4.18.8-r0
alpine/samba>=4.18.0<4.18.8-r0
4.18.8-r0
alpine/samba>=4.18.0<4.18.8-r0
4.18.8-r0
debian/samba
2:4.17.12+dfsg-0+deb12u12:4.19.1+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/samba to a version that resolves this vulnerability.

    Fixed in 4.19.1
  2. Upgrade

    Upgrade redhat/samba to a version that resolves this vulnerability.

    Fixed in 4.18.8
  3. Upgrade

    Upgrade redhat/samba to a version that resolves this vulnerability.

    Fixed in 4.17.12
  4. Upgrade

    Upgrade ubuntu/samba to a version that resolves this vulnerability.

    Fixed in 2:4.15.13+dfsg-0ubuntu0.20.04.6
  5. Upgrade

    Upgrade ubuntu/samba to a version that resolves this vulnerability.

    Fixed in 2:4.15.13+dfsg-0ubuntu1.5
  6. Upgrade

    Upgrade ubuntu/samba to a version that resolves this vulnerability.

    Fixed in 2:4.17.7+dfsg-1ubuntu2.3
  7. Upgrade

    Upgrade ubuntu/samba to a version that resolves this vulnerability.

    Fixed in 2:4.18.6+dfsg-1ubuntu2.1
  8. Upgrade

    Upgrade alpine/samba to a version that resolves this vulnerability.

    Fixed in 4.18.8-r0
  9. Upgrade

    Upgrade debian/samba to a version that resolves this vulnerability.

    Fixed in 2:4.17.12+dfsg-0+deb12u1Fixed in 2:4.19.1+dfsg-1

Event History

Oct 3, 2023
Data Sourced
07:34 AM
DescriptionSeverityAffected Software
Oct 10, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Nov 7, 2023
CVE Published
via MITRE·07:14 PM
Data Sourced
07:14 PM
Weakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Nov 15, 2023
Updated
03:40 PM
SeverityWeakness
Nov 24, 2023
Updated
09:15 AM
Affected Software
Dec 19, 2023
Updated
05:57 AM
Weakness
Updated
06:15 AM
WeaknessAffected Software
Updated
10:58 AM
Weakness
Updated
11:15 AM
WeaknessAffected Software
Dec 29, 2023
Data Sourced
via Red Hat·04:39 AM
DescriptionSeverityAffected Software
Updated
05:00 AM
Weakness
Data Sourced
via NVD·05:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
05:15 AM
WeaknessAffected Software
Updated
via NVD·05:15 AM
Affected Software
Updated
via NVD·05:15 AM
SeverityWeakness
Jan 23, 2024
Data Sourced
via MITRE·01:33 AM
DescriptionSeverityWeakness
Nov 21, 2024
Updated
via NVD·08:34 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·06:37 AM
RemedyAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2023-4154?

CVE-2023-4154 is a vulnerability that allows privileged users and RODCs to expose the Samba AD DC password.

2

How severe is CVE-2023-4154?

CVE-2023-4154 is considered a severe vulnerability.

3

Which software versions are affected by CVE-2023-4154?

Samba versions 2:4.15.13+dfsg-0ubuntu0.20.04.6, 2:4.15.13+dfsg-0ubuntu1.5, and 2:4.17.7+dfsg-1ubuntu2.3 are affected by CVE-2023-4154.

4

How can I fix CVE-2023-4154?

To fix CVE-2023-4154, update Samba to version 2:4.15.13+dfsg-0ubuntu0.20.04.6, 2:4.15.13+dfsg-0ubuntu1.5, or 2:4.17.7+dfsg-1ubuntu2.3.

5

Where can I find more information about CVE-2023-4154?

You can find more information about CVE-2023-4154 at the following references: [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-4154), [Samba](https://www.samba.org/samba/security/CVE-2023-4154.html), [Ubuntu Security Notices](https://ubuntu.com/security/notices/USN-6425-1).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203