CVE-2002-1165

Sendmail 8.11-8.12.6 - Command Injection via SMRSH Bypass

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2002-1165. PoCs published by zen-parse.

AI-analyzed exploit summary This exploit demonstrates a command injection vulnerability in smrsh, a restricted shell for Sendmail, by bypassing its command validation using double pipes (||) or path manipulation (./, ../). It allows execution of arbitrary commands outside the restricted environment.

Description

Sendmail Consortium's Restricted Shell (SMRSH) in Sendmail 8.12.6, 8.11.6-15, and possibly other versions after 8.11 from 5/19/1998, allows attackers to bypass the intended restrictions of smrsh by inserting additional commands after (1) "||" sequences or (2) "/" characters, which are not properly filtered or verified.

Exploits (1)

exploitdb WORKING POC VERIFIED
by zen-parse · textlocalunix
https://www.exploit-db.com/exploits/21884

This exploit demonstrates a command injection vulnerability in smrsh, a restricted shell for Sendmail, by bypassing its command validation using double pipes (||) or path manipulation (./, ../). It allows execution of arbitrary commands outside the restricted environment.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Sendmail smrsh (versions prior to fix for CVE-2002-1165)
No auth needed
Prerequisites: Access to a system with vulnerable smrsh · Ability to execute smrsh with arbitrary commands
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (9)

Core 9
Core References
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2002:083
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2003-073.html
Vendor Advisory vendor-advisory x_refsource_conectiva
http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000532
Vendor Advisory vendor-advisory x_refsource_netbsd
ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2002-023.txt.asc
Mailing List mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=103350914307274&w=2
Vendor Advisory vdb-entry x_refsource_xf
http://www.iss.net/security_center/static/10232.php
Exploit, Patch, Vendor Advisory x_refsource_confirm
http://www.sendmail.org/smrsh.adv.txt
Exploit, Patch, Vendor Advisory vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/5845
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/7826

Scores

EPSS 0.0110
EPSS Percentile 61.3%

Details

Status published
Products (12)
netbsd/netbsd 1.5
netbsd/netbsd 1.5.1
netbsd/netbsd 1.5.2
netbsd/netbsd 1.5.3
netbsd/netbsd 1.6
sendmail/sendmail 8.12.0
sendmail/sendmail 8.12.1
sendmail/sendmail 8.12.2
sendmail/sendmail 8.12.3
sendmail/sendmail 8.12.4
... and 2 more
Published Oct 11, 2002
Tracked Since Feb 18, 2026