{"id":"CVE-2009-4146","aliases":["EUVD-2009-4116","GHSA-q9qx-32qq-p7r3"],"status":"published","title":"The _rtld function in the Run-Time Link-Editor (rtld) in libexec/rtld-elf/rtld.c in FreeBSD 7.1,...","description":"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.","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.03903,"percentile":0.90343,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-264"],"published":"2009-12-02T18:00:00Z","modified":"2026-06-16T23:13:07Z","exploits":[{"source":"exploitdb","id":"EDB-10255","title":"FreeBSD 8.0 Run-Time Link-Editor (RTLD) - Local Privilege Escalation","type":"local","platform":"bsd","date":"2009-11-30","verified":true,"url":"https://www.exploit-db.com/exploits/10255"},{"source":"metasploit","id":"exploit/freebsd/local/rtld_execl_priv_esc","title":"FreeBSD rtld execl() Privilege Escalation","type":"exploit","platform":"BSD","date":"2009-11-30","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/freebsd/local/rtld_execl_priv_esc"}],"products":[{"vendor":"freebsd","product":"freebsd"}],"references":[{"url":"http://www.securityfocus.com/bid/37154","tags":["vdb-entry","x_refsource_BID","x_transferred","Exploit"]},{"url":"http://www.securityfocus.com/archive/1/508146/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://secunia.com/advisories/37517","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://people.freebsd.org/~cperciva/rtld.patch","tags":["x_refsource_CONFIRM","x_transferred","Exploit"]},{"url":"http://www.securityfocus.com/archive/1/508142/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.securitytracker.com/id?1023250","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/508168/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://packetstormsecurity.com/files/152997/FreeBSD-rtld-execl-Privilege-Escalation.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-4146"},{"url":"https://github.com/advisories/GHSA-q9qx-32qq-p7r3"}],"sources":{"cve":[{"id":"CVE-2009-4146","description":"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.","status":"published","published":"2009-12-02T18:00:00Z","modified":"2024-08-07T06:54:09.989Z","updated_at":"2026-11-02T14:33:24.451733Z"}],"euvd":[{"id":"EUVD-2009-4116","description":"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.","status":"published","published":"2009-12-02T18:00:00Z","modified":"2024-08-07T06:54:09Z","updated_at":"2026-11-03T01:39:11.214145Z"}],"ghsa":[{"id":"GHSA-q9qx-32qq-p7r3","title":"The _rtld function in the Run-Time Link-Editor (rtld) in libexec/rtld-elf/rtld.c in FreeBSD 7.1,...","description":"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.","status":"published","published":"2022-05-02T03:51:56Z","modified":"2023-01-31T05:08:33Z","updated_at":"2026-11-02T14:49:25.206701Z"}],"nvd":[{"id":"CVE-2009-4146","description":"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.","status":"published","published":"2009-12-02T18:30:00.297Z","modified":"2026-06-16T23:13:07.67Z","cvss":[{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-264"],"updated_at":"2026-11-02T14:01:37.939838Z"}]}}
