{"api_version":"1","generated_at":"2026-07-23T10:06:50+00:00","cve":"CVE-2006-6164","urls":{"html":"https://cve.report/CVE-2006-6164","api":"https://cve.report/api/cve/CVE-2006-6164.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2006-6164","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2006-6164"},"summary":{"title":"CVE-2006-6164","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.","state":"PUBLISHED","assigner":"mitre","published_at":"2006-11-29 01:28:00","updated_at":"2026-04-23 00:35:47"},"problem_types":["NVD-CWE-Other","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"7.2","severity":"","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","data":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","baseScore":7.2,"accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"}}],"references":[{"url":"http://securitytracker.com/id?1017253","name":"http://securitytracker.com/id?1017253","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"SecurityTracker.com Archives - OpenBSD 'ld.so(1)' May Let Local Users Gain Elevated Privileges","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/22993","name":"http://secunia.com/advisories/22993","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"OpenBSD ELF ld.so Environment Cleaning Vulnerability - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.matasano.com/log/592/finger-79tcp-mcdonald-dowd-and-schuh-challenge-part-2/","name":"http://www.matasano.com/log/592/finger-79tcp-mcdonald-dowd-and-schuh-challenge-part-2/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Matasano Chargen » Finger 79/tcp # McDonald, Dowd and Schuh Challenge: Part 2","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/30441","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/30441","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openbsd.org/errata.html#ldso","name":"http://www.openbsd.org/errata.html#ldso","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"OpenBSD 4.0 errata","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/21188","name":"http://www.securityfocus.com/bid/21188","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"OpenBSD LD.SO Local Environment Variable Clearing Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://www.securityfocus.com/archive/1/452371/100/0/threaded","name":"http://www.securityfocus.com/archive/1/452371/100/0/threaded","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"SecurityFocus","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openbsd.org/errata39.html#ldso","name":"http://www.openbsd.org/errata39.html#ldso","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"OpenBSD 3.9 errata","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/archive/1/452428/100/0/threaded","name":"http://www.securityfocus.com/archive/1/452428/100/0/threaded","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"SecurityFocus","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-6164","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-6164","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2006","cve_id":"6164","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"openbsd","cpe5":"openbsd","cpe6":"3.9","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2006","cve_id":"6164","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"openbsd","cpe5":"openbsd","cpe6":"4.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-07T20:19:34.560Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"[3.9] 016: SECURITY FIX: November 19, 2006","tags":["vendor-advisory","x_refsource_OPENBSD","x_transferred"],"url":"http://www.openbsd.org/errata39.html#ldso"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://www.matasano.com/log/592/finger-79tcp-mcdonald-dowd-and-schuh-challenge-part-2/"},{"name":"20061123 Re: Lack of environment sanitization in the FreeBSD, OpenBSD, NetBSD dynamic loaders.","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"],"url":"http://www.securityfocus.com/archive/1/452428/100/0/threaded"},{"name":"22993","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/22993"},{"name":"21188","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/21188"},{"name":"[4.0] 005: SECURITY FIX: November 19, 2006","tags":["vendor-advisory","x_refsource_OPENBSD","x_transferred"],"url":"http://www.openbsd.org/errata.html#ldso"},{"name":"20061122 Lack of environment sanitization in the FreeBSD, OpenBSD, NetBSD dynamic loaders.","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"],"url":"http://www.securityfocus.com/archive/1/452371/100/0/threaded"},{"name":"1017253","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"],"url":"http://securitytracker.com/id?1017253"},{"name":"openbsd-elf-privilege-escalation(30441)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/30441"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2006-11-19T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2018-10-17T20:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"[3.9] 016: SECURITY FIX: November 19, 2006","tags":["vendor-advisory","x_refsource_OPENBSD"],"url":"http://www.openbsd.org/errata39.html#ldso"},{"tags":["x_refsource_MISC"],"url":"http://www.matasano.com/log/592/finger-79tcp-mcdonald-dowd-and-schuh-challenge-part-2/"},{"name":"20061123 Re: Lack of environment sanitization in the FreeBSD, OpenBSD, NetBSD dynamic loaders.","tags":["mailing-list","x_refsource_BUGTRAQ"],"url":"http://www.securityfocus.com/archive/1/452428/100/0/threaded"},{"name":"22993","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/22993"},{"name":"21188","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/21188"},{"name":"[4.0] 005: SECURITY FIX: November 19, 2006","tags":["vendor-advisory","x_refsource_OPENBSD"],"url":"http://www.openbsd.org/errata.html#ldso"},{"name":"20061122 Lack of environment sanitization in the FreeBSD, OpenBSD, NetBSD dynamic loaders.","tags":["mailing-list","x_refsource_BUGTRAQ"],"url":"http://www.securityfocus.com/archive/1/452371/100/0/threaded"},{"name":"1017253","tags":["vdb-entry","x_refsource_SECTRACK"],"url":"http://securitytracker.com/id?1017253"},{"name":"openbsd-elf-privilege-escalation(30441)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/30441"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2006-6164","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"[3.9] 016: SECURITY FIX: November 19, 2006","refsource":"OPENBSD","url":"http://www.openbsd.org/errata39.html#ldso"},{"name":"http://www.matasano.com/log/592/finger-79tcp-mcdonald-dowd-and-schuh-challenge-part-2/","refsource":"MISC","url":"http://www.matasano.com/log/592/finger-79tcp-mcdonald-dowd-and-schuh-challenge-part-2/"},{"name":"20061123 Re: Lack of environment sanitization in the FreeBSD, OpenBSD, NetBSD dynamic loaders.","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/452428/100/0/threaded"},{"name":"22993","refsource":"SECUNIA","url":"http://secunia.com/advisories/22993"},{"name":"21188","refsource":"BID","url":"http://www.securityfocus.com/bid/21188"},{"name":"[4.0] 005: SECURITY FIX: November 19, 2006","refsource":"OPENBSD","url":"http://www.openbsd.org/errata.html#ldso"},{"name":"20061122 Lack of environment sanitization in the FreeBSD, OpenBSD, NetBSD dynamic loaders.","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/452371/100/0/threaded"},{"name":"1017253","refsource":"SECTRACK","url":"http://securitytracker.com/id?1017253"},{"name":"openbsd-elf-privilege-escalation(30441)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/30441"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2006-6164","datePublished":"2006-11-29T01:00:00.000Z","dateReserved":"2006-11-28T00:00:00.000Z","dateUpdated":"2024-08-07T20:19:34.560Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2006-11-29 01:28:00","lastModifiedDate":"2026-04-23 00:35:47","problem_types":["NVD-CWE-Other","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","baseScore":7.2,"accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"HIGH","exploitabilityScore":3.9,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":true,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:openbsd:openbsd:3.9:*:*:*:*:*:*:*","matchCriteriaId":"F5BB6C5D-4C43-4BB8-B1CE-A70BBE650CA1"},{"vulnerable":true,"criteria":"cpe:2.3:o:openbsd:openbsd:4.0:*:*:*:*:*:*:*","matchCriteriaId":"CC77812C-D84E-493E-9D21-1BA6C2129E70"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2006","CveId":"6164","Ordinal":"1","Title":"CVE-2006-6164","CVE":"CVE-2006-6164","Year":"2006"},"notes":[{"CveYear":"2006","CveId":"6164","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2006-6164"},{"CveYear":"2006","CveId":"6164","Ordinal":"2","NoteData":"2006-11-28","Type":"Other","Title":"Published"},{"CveYear":"2006","CveId":"6164","Ordinal":"3","NoteData":"2018-10-17","Type":"Other","Title":"Modified"}]}}}