CVE-2005-3346

osh 1.7-14 - Buffer Overflow via Environment Variable Substitution

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2005-3346. PoCs published by Charles Stevenson.

AI-analyzed exploit summary This exploit leverages a buffer overflow in OSH 1.7-14 via environment variable manipulation to overwrite stack data, allowing arbitrary code execution via LD_PRELOAD injection. It compiles a shared library to spawn a root shell when executed.

Description

Buffer overflow in the environment variable substitution code in main.c in OSH 1.7-14 allows local users to inject arbitrary environment variables, such as LD_PRELOAD, via pathname arguments of the form "$VAR/EVAR=arg", which cause the EVAR portion to be appended to a buffer returned by a getenv function call.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Charles Stevenson · bashlocallinux
https://www.exploit-db.com/exploits/1300

This exploit leverages a buffer overflow in OSH 1.7-14 via environment variable manipulation to overwrite stack data, allowing arbitrary code execution via LD_PRELOAD injection. It compiles a shared library to spawn a root shell when executed.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: OSH (Operator Shell) 1.7-14
Auth required
Prerequisites: User must be in the operator group · OSH must be installed and setuid root · Ability to compile and execute code on the target system
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (9)

Core 9
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://www.osvdb.org/20720
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/23091
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/17967
Issue Tracking x_refsource_confirm
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338312
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2005/dsa-918
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/15370
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/17527
Various Sources x_refsource_misc
http://pulltheplug.org/users/core/files/x_osh3.sh
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2005/2378

Scores

EPSS 0.0085
EPSS Percentile 53.2%

Details

Status published
Products (1)
osh/osh 1.7.14
Published Nov 20, 2005
Tracked Since Feb 18, 2026