{"id":"CVE-2009-4146","published":"2009-12-02T18:00:00Z","modified":"2024-08-07T06:54:09Z","title":"The _rtld function in the Run-Time Link-Editor (rtld) in libexec/rtld-elf/rtld.c in FreeBSD 7.1, 7.2, and 8.0 does not…","vendor":null,"product":null,"tier":"tail","description":{"text":"The _rtld function in the Run-Time Link-Editor (rtld) in libexec/rtld-elf/rtld.c in FreeBSD 7.1, 7.2, and 8.0 does not clear the LD_PRELOAD environment variable, which allows local users to gain privileges by executing a setuid or setguid program with a modified LD_PRELOAD variable containing an untrusted search path that points to a Trojan horse library, a different vector than CVE-2009-4147.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03903,"percentile":0.90522,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.securityfocus.com/bid/37154","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.securityfocus.com/archive/1/508146/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://secunia.com/advisories/37517","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://people.freebsd.org/~cperciva/rtld.patch","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/archive/1/508142/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://www.securitytracker.com/id?1023250","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://www.securityfocus.com/archive/1/508168/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://packetstormsecurity.com/files/152997/FreeBSD-rtld-execl-Privilege-Escalation.html","tags":["x_refsource_MISC"]}],"priority":{"score":23.1,"factors":[{"name":"EPSS percentile","points":18.1},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2009-11-30"},"metasploit":[{"name":"FreeBSD rtld execl() Privilege Escalation","module":"exploit/freebsd/local/rtld_execl_priv_esc","type":"exploit","disclosureDate":"2009-11-30","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/freebsd/local/rtld_execl_priv_esc.rb"}],"first":{"date":"2009-11-30","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/10255"},"provenance":"source"},"summary":{"text":"The run-time link-editor (rtld) in libexec/rtld-elf/rtld.c in FreeBSD 7.1, 7.2, and 8.0 fails to clear the LD_PRELOAD environment variable before executing setuid or setgid programs. A local user can exploit this by running such a program with a modified LD_PRELOAD that points to an attacker-controlled library, gaining privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:07Z"},"euvd":{"id":"EUVD-2009-4116","exploited":false,"provenance":"source"},"exploits":[{"id":10255,"url":"https://www.exploit-db.com/exploits/10255","title":"FreeBSD 8.0 Run-Time Link-Editor (RTLD) - Local Privilege Escalation","date":"2009-11-30","verified":true,"provenance":"source"}],"exploitRefs":["http://packetstormsecurity.com/files/152997/FreeBSD-rtld-execl-Privilege-Escalation.html"]}