{"id":"CVE-2009-4147","aliases":["EUVD-2009-4117","GHSA-fp7j-g85q-5q4q"],"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 and 8.0 does not clear the (1) LD_LIBMAP, (2) LD_LIBRARY_PATH, (3) LD_LIBMAP_DISABLE, (4) LD_DEBUG, and (5) LD_ELF_HINTS_PATH environment variables, which allows local users to gain privileges by executing a setuid or setguid program with a modified variable containing an untrusted search path that points to a Trojan horse library, different vectors than CVE-2009-4146.","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-07","score":0.03709,"percentile":0.89821,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-264"],"published":"2009-12-02T19: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","Patch"]},{"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","Patch"]},{"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-4147"},{"url":"https://github.com/advisories/GHSA-fp7j-g85q-5q4q"}],"sources":{"cve":[{"id":"CVE-2009-4147","description":"The _rtld function in the Run-Time Link-Editor (rtld) in libexec/rtld-elf/rtld.c in FreeBSD 7.1 and 8.0 does not clear the (1) LD_LIBMAP, (2) LD_LIBRARY_PATH, (3) LD_LIBMAP_DISABLE, (4) LD_DEBUG, and (5) LD_ELF_HINTS_PATH environment variables, which allows local users to gain privileges by executing a setuid or setguid program with a modified variable containing an untrusted search path that points to a Trojan horse library, different vectors than CVE-2009-4146.","status":"published","published":"2009-12-02T19:00:00Z","modified":"2024-08-07T06:54:09.729Z","updated_at":"2026-11-02T14:33:24.782697Z"}],"euvd":[{"id":"EUVD-2009-4117","description":"The _rtld function in the Run-Time Link-Editor (rtld) in libexec/rtld-elf/rtld.c in FreeBSD 7.1 and 8.0 does not clear the (1) LD_LIBMAP, (2) LD_LIBRARY_PATH, (3) LD_LIBMAP_DISABLE, (4) LD_DEBUG, and (5) LD_ELF_HINTS_PATH environment variables, which allows local users to gain privileges by executing a setuid or setguid program with a modified variable containing an untrusted search path that points to a Trojan horse library, different vectors than CVE-2009-4146.","status":"published","published":"2009-12-02T19:00:00Z","modified":"2024-08-07T06:54:09Z","updated_at":"2026-11-03T01:39:11.214145Z"}],"ghsa":[{"id":"GHSA-fp7j-g85q-5q4q","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 and 8.0 does not clear the (1) LD_LIBMAP, (2) LD_LIBRARY_PATH, (3) LD_LIBMAP_DISABLE, (4) LD_DEBUG, and (5) LD_ELF_HINTS_PATH environment variables, which allows local users to gain privileges by executing a setuid or setguid program with a modified variable containing an untrusted search path that points to a Trojan horse library, different vectors than CVE-2009-4146.","status":"published","published":"2022-05-02T03:51:55Z","modified":"2023-01-31T05:08:07Z","updated_at":"2026-11-02T14:49:20.355285Z"}],"nvd":[{"id":"CVE-2009-4147","description":"The _rtld function in the Run-Time Link-Editor (rtld) in libexec/rtld-elf/rtld.c in FreeBSD 7.1 and 8.0 does not clear the (1) LD_LIBMAP, (2) LD_LIBRARY_PATH, (3) LD_LIBMAP_DISABLE, (4) LD_DEBUG, and (5) LD_ELF_HINTS_PATH environment variables, which allows local users to gain privileges by executing a setuid or setguid program with a modified variable containing an untrusted search path that points to a Trojan horse library, different vectors than CVE-2009-4146.","status":"published","published":"2009-12-02T19:30:00.217Z","modified":"2026-06-16T23:13:07.797Z","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"}]}}
