CVE-2007-4138 json
The Winbind nss_info extension (nsswitch/idmap_ad.c) in idmap_ad.so in Samba 3.0.25 through 3.0.25c, when the "winbind nss info" option is…
published 2007-09-14 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-4122
- cvss
- 6.9
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
The Winbind nss_info extension (nsswitch/idmap_ad.c) in idmap_ad.so in Samba 3.0.25 through 3.0.25c, when the "winbind nss info" option is set to rfc2307 or sfu, grants all local users the privileges of gid 0 when the (1) RFC2307 or (2) Services for UNIX (SFU) primary group attribute is not defined.
Patch / fix
- samba Debian 14, Debian 13, Debian 12 3.0.26-1
debian advisories DEBIAN-CVE-2007-4138
- samba RHEL 5 3.0.25b-1.el5_1.2
- samba-swat RHEL 5 3.0.25b-1.el5_1.2
- samba-client RHEL 5 3.0.25b-1.el5_1.2
- samba-common RHEL 5 3.0.25b-1.el5_1.2
- samba RHEL 4 3.0.25b-1.el4_6.2
- samba-swat RHEL 4 3.0.25b-1.el4_6.2
- samba-client RHEL 4 3.0.25b-1.el4_6.2
- samba-common RHEL 4 3.0.25b-1.el4_6.2
red hat advisories RHSA-2007:1017RHSA-2007:1016
- cifs-utils openSUSE Tumbleweed 6.13-1.3
- samba openSUSE Tumbleweed 4.14.6+git.182.2205d5224e3-1.1
opensuse advisories openSUSE-SU-2024:10683-1openSUSE-SU-2024:11365-1
- securityfocus.com/bid/25636 patch
- secunia.com/advisories/26764 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2007-4138 updated
samba incorrect primary group assignment for domain users using the rfc2307 or sfu winbind nss info plugin
-
Red Hat Enterprise Linux (v. 5 server) samba 3.0.25b-1.el5_1.2, samba-swat 3.0.25b-1.el5_1.2, samba-client 3.0.25b-1.el5_1.2, samba-common 3.0.25b-1.el5_1.2fixed: vendor fix RHSA-2007:1017
-
Red Hat Enterprise Linux AS version 4 samba 3.0.25b-1.el4_6.2, samba-swat 3.0.25b-1.el4_6.2, samba-client 3.0.25b-1.el4_6.2, samba-common 3.0.25b-1.el4_6.2fixed: vendor fix RHSA-2007:1016
-
Red Hat Enterprise Linux Desktop (v. 5 client) samba 3.0.25b-1.el5_1.2, samba-swat 3.0.25b-1.el5_1.2, samba-client 3.0.25b-1.el5_1.2, samba-common 3.0.25b-1.el5_1.2fixed: vendor fix RHSA-2007:1017
-
Red Hat Enterprise Linux Desktop version 4 samba 3.0.25b-1.el4_6.2, samba-swat 3.0.25b-1.el4_6.2, samba-client 3.0.25b-1.el4_6.2, samba-common 3.0.25b-1.el4_6.2 Red Hat Enterprise Linux ES version 4 samba 3.0.25b-1.el4_6.2, samba-swat 3.0.25b-1.el4_6.2, samba-client 3.0.25b-1.el4_6.2, samba-common 3.0.25b-1.el4_6.2 Red Hat Enterprise Linux WS version 4 samba 3.0.25b-1.el4_6.2, samba-swat 3.0.25b-1.el4_6.2, samba-client 3.0.25b-1.el4_6.2, samba-common 3.0.25b-1.el4_6.2fixed: vendor fix RHSA-2007:1016
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.72% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 6.9 | AV:L/AC:M/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-264 Permissions, Privileges, and Access Controls
References
-
securityfocus.com
/bid/25636
vdb-entry, patch
-
secunia.com
/advisories/26764
third-party-advisory, patch, vendor-advisory
-
redhat.com
/support/errata/RHSA-2007-1016.html
vendor-advisory
-
slackware.com
/security/viewer.php?l=slackware-security&y=2007&m=slackware-security.419439
vendor-advisory
-
redhat.com
/archives/fedora-package-announce/2007-September/msg00201.html
vendor-advisory
-
redhat.com
/support/errata/RHSA-2007-1017.html
vendor-advisory
- samba.org /samba/security/CVE-2007-4138.html
-
securityfocus.com
/archive/1/479078/100/0/threaded
mailing-list
-
us-cert.gov
/cas/techalerts/TA07-352A.html
third-party-advisory, us-government-resource
-
securityreason.com
/securityalert/3135
third-party-advisory
-
vupen.com
/english/advisories/2007/3120
vdb-entry
-
secunia.com
/advisories/26834
third-party-advisory
-
secunia.com
/advisories/26795
third-party-advisory
-
securitytracker.com
/id?1018681
vdb-entry
- docs.info.apple.com /article.html?artnum=307179
-
exchange.xforce.ibmcloud.com
/vulnerabilities/36560
vdb-entry
- issues.rpath.com /browse/RPL-1705
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10375
vdb-entry, signature
-
secunia.com
/advisories/26776
third-party-advisory
Sources
- CVE List CVE-2007-4138
- NVD CVE-2007-4138
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.