Vulnerability · Published Nov 7, 2023 · Assigned by redhat

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

High 7.5

In plain English

A high-severity out-of-bounds write in Fedora from Fedora. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.4%top 27.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20samba4.18.8-r0ALPINE-CVE-2023-4154
Alpine:v3.21samba4.18.8-r0ALPINE-CVE-2023-4154
Alpine:v3.22samba4.18.8-r0ALPINE-CVE-2023-4154
Alpine:v3.23samba4.18.8-r0ALPINE-CVE-2023-4154
Alpine:v3.24samba4.18.8-r0ALPINE-CVE-2023-4154
Debian:12samba2:4.17.12+dfsg-0+deb12u1DSA-5525-1
Debian:12samba2:4.17.12+dfsg-0+deb12u1DEBIAN-CVE-2023-4154
Debian:13samba2:4.19.1+dfsg-1DEBIAN-CVE-2023-4154
Debian:14samba2:4.19.1+dfsg-1DEBIAN-CVE-2023-4154
Ubuntu:22.04:LTSsamba2:4.15.13+dfsg-0ubuntu1.5USN-6425-1
Ubuntu:22.04:LTSsamba2:4.15.13+dfsg-0ubuntu1.5UBUNTU-CVE-2023-4154
Ubuntu:24.04:LTSsamba2:4.18.6+dfsg-1ubuntu2.1UBUNTU-CVE-2023-4154

Affected products (as reported)

VendorProductVersions
n/a samba see references
Red Hat Red Hat Enterprise Linux 6 see references
Red Hat Red Hat Enterprise Linux 6 see references
Red Hat Red Hat Enterprise Linux 7 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Storage 3 see references
Fedora Fedora see references

Weakness: CWE-787 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

References