CVE-2007-4138
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…
Check your servers for CVE-2007-4138
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2007-4138 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.72%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 49.9% of all scored CVEs. Scores of 28 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2007-4138 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2007-4138RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2007-4138Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2007-4138
trivy image --scanners vuln IMAGE | grep CVE-2007-4138
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- http://www.samba.org/samba/security/CVE-2007-4138.html samba.org
- RHSA-2007:1016 redhat.com · vendor advisory
- TA07-352A us-cert.gov · third party advisory
- SSA:2007-255-02 slackware.com · vendor advisory
- 3135 securityreason.com · third party advisory
- 26764 secunia.com · third party advisory
- 26834 secunia.com · third party advisory
- 26795 secunia.com · third party advisory
- FEDORA-2007-2145 redhat.com · vendor advisory
- http://docs.info.apple.com/article.html?artnum=307179 docs.info.apple.com
- https://issues.rpath.com/browse/RPL-1705 issues.rpath.com
- 26776 secunia.com · third party advisory
- RHSA-2007:1017 redhat.com · vendor advisory
Other references
- 25636 securityfocus.com · vdb entry
- 20070911 [SECURITY] Winbind's rfc2307 & SFU nss_info plugin in Samba 3.0.25[a-c] assigns users a primary gid of 0 by… securityfocus.com · mailing list
- ADV-2007-3120 vupen.com · vdb entry
- 1018681 securitytracker.com · vdb entry
- samba-smb-privilege-escalation(36560) exchange.xforce.ibmcloud.com · vdb entry
- oval:org.mitre.oval:def:10375 oval.cisecurity.org · vdb entry, signature
Source: the record CVE-2007-4138 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse