OpenBSD LD.SO Local Environment Variable Clearing Vulnerability

BID:21188

Info

OpenBSD LD.SO Local Environment Variable Clearing Vulnerability

Bugtraq ID: 21188
Class: Design Error
CVE: CVE-2006-6164
Remote: No
Local: Yes
Published: Nov 20 2006 12:00AM
Updated: Jul 06 2016 02:40PM
Credit: Mark Dowd, John McDonald, and Justin Schuh are credited with discovering this issue.
Vulnerable: OpenBSD OpenBSD 4.0
OpenBSD OpenBSD 3.9
Not Vulnerable:

Discussion

OpenBSD LD.SO Local Environment Variable Clearing Vulnerability

OpenBSD is prone to a local vulnerability that may allow attackers to pass malicious environment variables to applications, bypassing expected security restrictions.

Attackers may be able to exploit this issue to execute arbitrary code with elevated privileges.

This issue affects OpenBSD 3.9 and 4.0; prior versions may also be affected.

Exploit / POC

OpenBSD LD.SO Local Environment Variable Clearing Vulnerability

The following proo-of-concept example is available:

Solution / Fix

OpenBSD LD.SO Local Environment Variable Clearing Vulnerability

Solution:
OpenBSD has released source-code patches to address this issue. Please see the references for more information.


OpenBSD OpenBSD 4.0

OpenBSD OpenBSD 3.9

References

OpenBSD LD.SO Local Environment Variable Clearing Vulnerability

References:
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report