# CVE-2006-6164: The dlunsetenv function in loader.c in the ELF ld.so in OpenBSD 3.9 and 4.0 does not properly remove duplicate environment variables, which…

- Severity: High 7.2 (CVSS:2.0, scored by NVD) `AV:L/AC:L/Au:N/C:C/I:C/A:C`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2006-11-29T01:00:00.000Z
- Modified: 2026-06-16T22:32:35.703Z
- Assigned by: mitre

## Description

The _dl_unsetenv function in loader.c in the ELF ld.so in OpenBSD 3.9 and 4.0 does not properly remove duplicate environment variables, which allows local users to pass dangerous variables such as LD_PRELOAD to loading processes, which might be leveraged to gain privileges.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- openbsd openbsd: 3.9; 4.0

## References

- <http://www.openbsd.org/errata39.html#ldso> (patch, vendor-advisory)
- <http://www.matasano.com/log/592/finger-79tcp-mcdonald-dowd-and-schuh-challenge-part-2/>
- <http://www.securityfocus.com/archive/1/452428/100/0/threaded> (mailing-list)
- <http://secunia.com/advisories/22993> (third-party-advisory)
- <http://www.securityfocus.com/bid/21188> (vdb-entry)
- <http://www.openbsd.org/errata.html#ldso> (patch, vendor-advisory)
- <http://www.securityfocus.com/archive/1/452371/100/0/threaded> (mailing-list)
- <http://securitytracker.com/id?1017253> (patch, vdb-entry)
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/30441> (vdb-entry)

## Sources

- CVE List: [CVE-2006-6164](https://www.cve.org/CVERecord?id=CVE-2006-6164), CVE Terms of Use, modified 2024-08-07
- NVD: [CVE-2006-6164](https://nvd.nist.gov/vuln/detail/CVE-2006-6164), Public domain, modified 2026-06-16

---

Page: https://cve.day/CVE-2006-6164 · Whole record: https://cve.day/CVE-2006-6164.json · Rebuilt by cve.day 2026-11-25T22:56:58.721Z
