{"id":"CVE-2005-3346","aliases":["DSA-918-1","EUVD-2005-3345","GHSA-rv45-fc47-3rhr"],"status":"published","title":"Buffer overflow in the environment variable substitution code in main.c in OSH 1.7-14 allows...","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.","severity":{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00847,"percentile":0.58319,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"published":"2005-11-20T21:00:00Z","modified":"2026-06-16T22:16:46Z","exploits":[{"source":"exploitdb","id":"EDB-1300","title":"Operator Shell (OSH) 1.7-14 - Local Privilege Escalation","type":"local","platform":"linux","date":"2005-11-09","verified":true,"url":"https://www.exploit-db.com/exploits/1300"}],"affected":[{"source":"osv","ecosystem":"Debian:3.0","package":"osh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7-11woody2"}]}],"versions":["1.7-11woody1"],"bundled":2},{"source":"osv","ecosystem":"Debian:3.1","package":"osh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7-13sarge1"}]}],"versions":["1.7-13"],"bundled":2}],"products":[{"vendor":"osh","product":"osh"}],"references":[{"url":"http://www.osvdb.org/20720","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/23091","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://secunia.com/advisories/17967","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338312","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.debian.org/security/2005/dsa-918","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"http://www.securityfocus.com/bid/15370","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://secunia.com/advisories/17527","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://pulltheplug.org/users/core/files/x_osh3.sh","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2005/2378","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-3346"},{"url":"https://github.com/advisories/GHSA-rv45-fc47-3rhr"}],"sources":{"cve":[{"id":"CVE-2005-3346","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.","status":"published","published":"2005-11-20T21:00:00Z","modified":"2024-08-07T23:10:08.459Z","updated_at":"2026-11-02T14:33:38.906611Z"}],"euvd":[{"id":"EUVD-2005-3345","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.","status":"published","published":"2005-11-20T21:00:00Z","modified":"2024-08-07T23:10:08Z","updated_at":"2026-11-03T01:15:27.244831Z"}],"ghsa":[{"id":"GHSA-rv45-fc47-3rhr","title":"Buffer overflow in the environment variable substitution code in main.c in OSH 1.7-14 allows...","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.","status":"published","published":"2022-05-01T02:17:06Z","modified":"2023-01-30T05:07:23Z","updated_at":"2026-11-02T14:47:41.27839Z"}],"nvd":[{"id":"CVE-2005-3346","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.","status":"published","published":"2005-11-20T21:03:00Z","modified":"2026-06-16T22:16:46.257Z","cvss":[{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:00:57.365803Z"}],"osv":[{"id":"DSA-918-1","title":"osh - programming error","status":"published","published":"2005-12-09T00:00:00Z","modified":"2026-03-09T02:11:04.594984Z","updated_at":"2026-11-02T15:46:18.716547Z"}]}}
