CVE-2009-4147 json
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, (…
published 2009-12-02 16 y ago modified 2026-06-16 4 mo ago also EUVD-2009-4117
- cvss
- 7.2
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.7%
- EPSS 3.7% chance of exploitation in 30 days, percentile 89%
- public exploits
- 2
- Metasploit, Exploit-DB
Summary
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.
Patch / fix
Timeline
- First public exploit (Metasploit exploit/freebsd/local/rtld_execl_priv_esc)
- Published
Exploit prediction
3.71% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Metasploit exploit/freebsd/local/rtld_execl_priv_esc FreeBSD rtld execl() Privilege Escalation metasploit exploit, excellent rank, 2009-11-30
- EDB-10255 FreeBSD 8.0 Run-Time Link-Editor (RTLD) - Local Privilege Escalation local, 2009-11-30
- securityfocus.com http://www.securityfocus.com/bid/37154 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.2 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-264 Permissions, Privileges, and Access Controls
References
-
people.freebsd.org
/~cperciva/rtld.patch
patch
-
securitytracker.com
/id?1023250
vdb-entry, patch
-
securityfocus.com
/bid/37154
vdb-entry, exploit
-
secunia.com
/advisories/37517
third-party-advisory, vendor-advisory
-
securityfocus.com
/archive/1/508146/100/0/threaded
mailing-list
-
securityfocus.com
/archive/1/508142/100/0/threaded
mailing-list
- packetstormsecurity.com /files/152997/FreeBSD-rtld-execl-Privilege-Escalation.html
Sources
- CVE List CVE-2009-4147
- NVD CVE-2009-4147
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.