Home / Samba / Samba / CVE-2007-5398
CVE-2007-5398: is it exploited, and which versions of Samba are affected and fixed?
CVE-2007-5398 is a memory corruption (buffer overflow) vulnerability in Samba. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:38 UTC). Affected: samba 3.0.0, samba 3.0.1, samba 3.0.2 and 37 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (9.3, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:38 UTC, CVE record November 19, 2026, 07:21 UTC and NVD November 19, 2026, 08:52 UTC.
What is CVE-2007-5398?
Stack-based buffer overflow in the reply_netbios_packet function in nmbd/nmbd_packets.c in nmbd in Samba 3.0.0 through 3.0.26a, when operating as a WINS server, allows remote attackers to execute arbitrary code via crafted WINS Name Registration requests followed by a WINS Name Query request.
From the CVE record by flexera, last updated August 7, 2024, 15:31 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| samba | samba | 3.0.0 | application |
| samba | samba | 3.0.1 | application |
| samba | samba | 3.0.2 | application |
| samba | samba | 3.0.2a | application |
| samba | samba | 3.0.3 | application |
| samba | samba | 3.0.4 | application |
| samba | samba | 3.0.5 | application |
| samba | samba | 3.0.6 | application |
| samba | samba | 3.0.7 | application |
| samba | samba | 3.0.8 | application |
| samba | samba | 3.0.9 | application |
| samba | samba | 3.0.10 | application |
| samba | samba | 3.0.11 | application |
| samba | samba | 3.0.12 | application |
| samba | samba | 3.0.13 | application |
| samba | samba | 3.0.14 | application |
| samba | samba | 3.0.14a | application |
| samba | samba | 3.0.15 | application |
| samba | samba | 3.0.16 | application |
| samba | samba | 3.0.17 | application |
| samba | samba | 3.0.18 | application |
| samba | samba | 3.0.19 | application |
| samba | samba | 3.0.20 | application |
| samba | samba | 3.0.20a | application |
| samba | samba | 3.0.20b | application |
NVD analysis (status Modified), last modified June 16, 2026, 22:46 UTC.
How severe is CVE-2007-5398?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 9.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2007-5398 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 11.4% probability of exploitation activity in the next 30 days, percentile 96.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Where are the vendor advisories and references?
- 27691 third-party-advisory, x_refsource_SECUNIA
- http://secunia.com/secunia_research/2007-90/advisory/ x_refsource_MISC
- oval:org.mitre.oval:def:10230 vdb-entry, signature, x_refsource_OVAL
- RHSA-2007:1016 vendor-advisory, x_refsource_REDHAT
- USN-544-1 vendor-advisory, x_refsource_UBUNTU
- ADV-2007-4238 vdb-entry, x_refsource_VUPEN
- TA07-352A third-party-advisory, x_refsource_CERT
- 30835 third-party-advisory, x_refsource_SECUNIA
- 29341 third-party-advisory, x_refsource_SECUNIA
- SSA:2007-320-01 vendor-advisory, x_refsource_SLACKWARE
- HPSBUX02316 vendor-advisory, x_refsource_HP
- oval:org.mitre.oval:def:5811 vdb-entry, signature, x_refsource_OVAL
- 28136 third-party-advisory, x_refsource_SECUNIA
- ADV-2007-3869 vdb-entry, x_refsource_VUPEN
- 27679 third-party-advisory, x_refsource_SECUNIA
- 27682 third-party-advisory, x_refsource_SECUNIA
- 27701 third-party-advisory, x_refsource_SECUNIA
- 1018953 vdb-entry, x_refsource_SECTRACK
- RHSA-2007:1013 vendor-advisory, x_refsource_REDHAT
- ADV-2008-1908 vdb-entry, x_refsource_VUPEN
- 27720 third-party-advisory, x_refsource_SECUNIA
- 27742 third-party-advisory, x_refsource_SECUNIA
- HPSBUX02341 vendor-advisory, x_refsource_HP
- 30484 third-party-advisory, x_refsource_SECUNIA
- 20080108 VMSA-2008-0001 Moderate OpenPegasus PAM Authentication Buffer Overflow and updated service console packages mailing-list, x_refsource_BUGTRAQ
- DSA-1409 vendor-advisory, x_refsource_DEBIAN
- 27450 third-party-advisory, x_refsource_SECUNIA
- 27731 third-party-advisory, x_refsource_SECUNIA
- [Security-announce] 20080107 VMSA-2008-0001 Moderate OpenPegasus PAM Authentication Buffer Overflow and updated service console packages mailing-list, x_refsource_MLIST
- APPLE-SA-2007-12-17 vendor-advisory, x_refsource_APPLE
- MDKSA-2007:224 vendor-advisory, x_refsource_MANDRIVA
- 27787 third-party-advisory, x_refsource_SECUNIA
- http://docs.info.apple.com/article.html?artnum=307179 x_refsource_CONFIRM
- 28368 third-party-advisory, x_refsource_SECUNIA
- 26455 vdb-entry, x_refsource_BID
- https://issues.rpath.com/browse/RPL-1894 x_refsource_CONFIRM
- GLSA-200711-29 vendor-advisory, x_refsource_GENTOO
- 20071115 Secunia Research: Samba "reply_netbios_packet()" Buffer OverflowVulnerability mailing-list, x_refsource_BUGTRAQ
- FEDORA-2007-3402 vendor-advisory, x_refsource_FEDORA
- 27927 third-party-advisory, x_refsource_SECUNIA
- ADV-2008-1712 vdb-entry, x_refsource_VUPEN
- ADV-2008-0859 vdb-entry, x_refsource_VUPEN
- 3372 third-party-advisory, x_refsource_SREASON
- 237764 vendor-advisory, x_refsource_SUNALERT
- http://us1.samba.org/samba/security/CVE-2007-5398.html x_refsource_CONFIRM
- http://www.vmware.com/security/advisories/VMSA-2008-0001.html x_refsource_CONFIRM
- RHSA-2007:1017 vendor-advisory, x_refsource_REDHAT
- ADV-2008-0064 vdb-entry, x_refsource_VUPEN
- samba-replynetbiospacket-bo(38502) vdb-entry, x_refsource_XF
- SUSE-SA:2007:065 vendor-advisory, x_refsource_SUSE
- 20080123 UPDATED VMSA-2008-0001.1 Moderate OpenPegasus PAM Authentication Buffer Overflow and updated service console packages mailing-list, x_refsource_BUGTRAQ
When was it published, and where is the official record?
- Reserved
- October 12, 2007
- Published
- November 16, 2007, 18:00 UTC
- CVE record updated
- August 7, 2024, 15:31 UTC by flexera
- NVD
- Modified, last modified June 16, 2026, 22:46 UTC
- Last checked
- CVE list November 19, 2026, 07:21 UTC; NVD November 19, 2026, 08:52 UTC; KEV December 3, 2026, 08:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Samba?
- May 30, 2017CVE-2017-7494 samba: code injection (remote code execution) exploited
- Dec 1, 2026CVE-2026-135111 Samba: resource not released after use
- Nov 30, 2026CVE-2026-125628 Samba: type confusion
- Nov 27, 2026CVE-2026-125633 Samba: type confusion
- Nov 27, 2026CVE-2026-125627 Samba: NULL pointer dereference (crash)
- Nov 26, 2026CVE-2026-135107 Samba: memory Allocation with Excessive Size Value
- Nov 25, 2026CVE-2026-125634 Samba: NULL pointer dereference (crash)
- Oct 28, 2026CVE-2026-109411 Samba: improper Handling of Case Sensitivity
Questions about CVE-2007-5398
Is CVE-2007-5398 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:38 UTC. FIRST's EPSS gives it a 11.4% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Samba are affected by CVE-2007-5398?
samba 3.0.0, samba 3.0.1, samba 3.0.2, samba 3.0.2a, samba 3.0.3, samba 3.0.4 and 34 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2007-5398?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2007-5398?
High (9.3, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2007-5398?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.