Skip to content
OpenAdvisories
Unscored Public exploit CVE-2007-2447 EUVD-2007-2442GHSA-xxqh-84mj-whcj

The MS-RPC functionality in smbd in Samba 3.0.0 through 3.0.25rc3 allows remote attackers to execute arbitrary commands via shell metachara…

Published May 14, 2007 · Updated Nov 4, 2025 · Assigned by redhat

Description

The MS-RPC functionality in smbd in Samba 3.0.0 through 3.0.25rc3 allows remote attackers to execute arbitrary commands via shell metacharacters involving the (1) SamrChangePassword function, when the "username map script" smb.conf option is enabled, and allows remote authenticated users to execute commands via shell metacharacters involving other MS-RPC functions in the (2) remote printer and (3) file share management.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 samba 3.0.25-1 —
Debian 13 samba 3.0.25-1 —
Debian 12 samba 3.0.25-1 —
Debian 5.0 samba 3.0.24-6+lenny3 DTSA-41-1
Debian 4.0 samba 3.0.24-6etch2 DSA-1291-2
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 3.1 samba 3.0.14a-3sarge6 DSA-1291-2
ReleasePackageFixed inAdvisory
RHEL 5 samba +3 3.0.23c-2.el5.2.0.2 RHSA-2007:0354
RHEL 4 samba +3 3.0.10-1.4E.12.2 RHSA-2007:0354
RHEL 3 samba +3 3.0.9-1.3E.13.2 RHSA-2007:0354
RHEL 2 samba +3 2.2.12-1.21as.6 RHSA-2007:0354
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed cifs-utils 6.13-1.3 openSUSE-SU-2024:10683-1
openSUSE Tumbleweed samba 4.14.6+git.182.2205d5224e3-1.1 openSUSE-SU-2024:11365-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 1

GitHub 45 repositories · most starred shown

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 5

References