CVE-2009-4146 EXPLOIT
7.2
HIGH · CVSS 2.0 · EPSS 3.9% (pctl 90)
Patch early
A public exploit exists.
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.
Scoring
| CVSS | 7.2 (HIGH, v2.0) |
|---|---|
| Vector | AV:L/AC:L/Au:N/C:C/I:C/A:C |
| EPSS | 3.9% — more likely to be exploited than 90% of all CVEs |
| Weakness | CWE-264 |
| On CISA KEV | no |
| Public exploit | yes |
| Published | 2009-12-02 |
| Last modified | 2026-06-16 |
Affected (1)
| Vendor | Product |
|---|---|
| freebsd | freebsd |
Public exploits
| Source | Title | Date |
|---|---|---|
| exploit-db | FreeBSD 8.0 Run-Time Link-Editor (RTLD) - Local Privilege Escalation | 2009-11-30 |
References
- http://packetstormsecurity.com/files/152997/FreeBSD-rtld-execl-Privilege-Escalation.html
- http://people.freebsd.org/~cperciva/rtld.patch
- http://secunia.com/advisories/37517
- http://www.securityfocus.com/archive/1/508142/100/0/threaded
- http://www.securityfocus.com/archive/1/508146/100/0/threaded
- http://www.securityfocus.com/archive/1/508168/100/0/threaded
- http://www.securityfocus.com/bid/37154
- http://www.securitytracker.com/id?1023250
- http://packetstormsecurity.com/files/152997/FreeBSD-rtld-execl-Privilege-Escalation.html
- http://people.freebsd.org/~cperciva/rtld.patch
- http://secunia.com/advisories/37517
- http://www.securityfocus.com/archive/1/508142/100/0/threaded
- http://www.securityfocus.com/archive/1/508146/100/0/threaded
- http://www.securityfocus.com/archive/1/508168/100/0/threaded
- http://www.securityfocus.com/bid/37154
- http://www.securitytracker.com/id?1023250
→ the Explorer · watch your stack · NVD