Description
Buffer overflow in the call_trans2open function in trans2.c for Samba 2.2.x before 2.2.8a, 2.0.10 and earlier 2.0.x versions, and Samba-TNG before 0.3.2, allows remote attackers to execute arbitrary code.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | samba | 3.0 | — |
| Debian 13 | samba | 3.0 | — |
| Debian 12 | samba | 3.0 | — |
| Debian 3.0 | samba | 2.2.3a-12.3 | DSA-280 |
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.
Metasploit 4 modules
-
Samba trans2open Overflow (Mac OS X PPC)
exploit/osx/samba/trans2open
-
Samba trans2open Overflow (Linux x86)
exploit/linux/samba/trans2open
-
Samba trans2open Overflow (*BSD x86)
exploit/freebsd/samba/trans2open
-
Samba trans2open Overflow (Solaris SPARC)
exploit/solaris/samba/trans2open
Exploit-DB 12
- Samba 2.2.8 (Linux x86) - 'trans2open' Remote Overflow (Metasploit) EDB-16861 · remote · Jul 14, 2010 · verified
- Samba 2.2.8 (Solaris SPARC) - 'trans2open' Remote Overflow (Metasploit) EDB-16330 · remote · Jun 21, 2010 · verified
- Samba 2.2.8 (OSX/PPC) - 'trans2open' Remote Overflow (Metasploit) EDB-16876 · remote · Jun 21, 2010 · verified
- Samba 2.2.8 (BSD x86) - 'trans2open' Remote Overflow (Metasploit) EDB-16880 · remote · Jun 17, 2010 · verified
- Samba 2.2.8 - Brute Force Method Remote Command Execution EDB-55 · remote · Jul 13, 2003 · verified
- Samba 2.2.x - 'call_trans2open' Remote Buffer Overflow (3) EDB-22470 · remote · May 12, 2003 · verified
- Samba 2.2.x - 'call_trans2open' Remote Buffer Overflow (1) EDB-22468 · remote · Apr 11, 2003 · verified
- Samba < 2.2.8 (Linux/BSD) - Remote Code Execution EDB-10 · remote · Apr 10, 2003 · verified
- Samba 2.2.x - Remote Buffer Overflow EDB-7 · remote · Apr 7, 2003 · verified
- Samba 2.2.0 < 2.2.8 (OSX) - trans2open Overflow (Metasploit) EDB-9924 · remote · Apr 7, 2003 · verified
- Samba 2.2.x - 'call_trans2open' Remote Buffer Overflow (2) EDB-22469 · remote · Apr 7, 2003 · verified
- Samba 2.2.x - 'call_trans2open' Remote Buffer Overflow (4) EDB-22471 · remote · Apr 7, 2003 · verified
GitHub 3 repositories
-
KernelPan1k/trans2open-CVE-2003-0201 ★ 2 · Apr 12, 2021
Samba exploit CVE2003-0201
-
americooo/pentest-writeups ★ 0 · Jun 16, 2026
Kioptrix Level 1 writeup - CVE-2003-0201 Samba trans2open
-
deepakkcybersec-eng/Kioptrix-Level1-Vulnerability-Analysis ★ 0 · Dec 24, 2025
Technical audit of Kioptrix Level 1. Focus: Samba 2.2.1a exploitation (CVE-2003-0201), manual enumeration, and internal infrastructure hardening.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-280 samba - buffer overflow Debian Security (DSA / DLA) · Mar 9, 2026
References
- CLA-2003:624 vendor-advisory
- 20030408 [Sorcerer-spells] SAMBA--SORCERER2003-04-08 mailing-list
- SuSE-SA:2003:025 vendor-advisory
- 7294 vdb-entry
- http://www.digitaldefense.net/labs/advisories/DDI-1013.txt
- 20030407 [DDI-1013] Buffer Overflow in Samba allows remote root compromise mailing-list
- DSA-280 vendor-advisory
- 20030409 GLSA: samba (200304-02) mailing-list
- VU#267873 third-party-advisory
- MDKSA-2003:044 vendor-advisory
- RHSA-2003:137 vendor-advisory
- 20030407 Immunix Secured OS 7+ samba update mailing-list
- oval:org.mitre.oval:def:567 vdb-entry signature
- oval:org.mitre.oval:def:2163 vdb-entry signature