CVE-2003-0826

GNU lsh - Remote Code Execution via Heap-Based Buffer Overflow in lshd

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2003-0826. PoCs published by m00 security, Carl Livitt.

AI-analyzed exploit summary This exploit targets a remote buffer overflow vulnerability in lshd versions 1.3-1.5, allowing pre-authentication remote code execution. It binds a shell on port 61200 and includes multiple targets for various Linux distributions.

Description

lsh daemon (lshd) does not properly return from certain functions in (1) read_line.c, (2) channel_commands.c, or (3) client_keyexchange.c when long input is provided, which could allow remote attackers to execute arbitrary code via a heap-based buffer overflow attack.

Exploits (2)

exploitdb WORKING POC VERIFIED
by m00 security · cremotelinux
https://www.exploit-db.com/exploits/23162

This exploit targets a remote buffer overflow vulnerability in lshd versions 1.3-1.5, allowing pre-authentication remote code execution. It binds a shell on port 61200 and includes multiple targets for various Linux distributions.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: lshd 1.3-1.5
No auth needed
Prerequisites: Network access to the target system · Target system running vulnerable lshd version
devstral-2 · analyzed Feb 16, 2026 Full analysis →
exploitdb WORKING POC VERIFIED
by Carl Livitt · cremotelinux
https://www.exploit-db.com/exploits/23161

This exploit targets a remote buffer overflow in lsh 1.4.x, bypassing non-exec stack protection by placing shellcode on the heap. It spawns a bindshell on port 12345 and requires the exploit to be the first connection to the lshd daemon after startup.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: lsh 1.4.x
No auth needed
Prerequisites: lshd daemon running · exploit must be the first connection after daemon startup
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (6)

Core 6
Core References
Issue Tracking x_refsource_confirm
http://bugs.debian.org/211662
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2005/dsa-717
Mailing List mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=106407188509874&w=2
Mailing List mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=106398939512178&w=2

Scores

EPSS 0.1182
EPSS Percentile 95.6%

Details

Status published
Products (3)
gnu/lsh 1.4
gnu/lsh 1.4.1
gnu/lsh 1.4.2
Published Oct 06, 2003
Tracked Since Feb 18, 2026