{"uuid": "651cc17f-854b-4361-8f5f-fadfb19be09e", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2009-4146", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/freebsd/local/rtld_execl_priv_esc.rb", "content": "{\"actions\": [], \"aliases\": [], \"arch\": \"x86, x64, armle, aarch64, ppc, mipsle, mipsbe\", \"author\": [\"Kingcope\", \"stealth\", \"bcoles \"], \"autofilter_ports\": [], \"autofilter_services\": [], \"check\": true, \"default_credential\": false, \"description\": \"This module exploits a vulnerability in the FreeBSD\\n          run-time link-editor (rtld).\\n\\n          The rtld `unsetenv()` function fails to remove `LD_*`\\n          environment variables if `__findenv()` fails.\\n\\n          This can be abused to load arbitrary shared objects using\\n          `LD_PRELOAD`, resulting in privileged code execution.\\n\\n          This module has been tested successfully on:\\n\\n          FreeBSD 7.2-RELEASE (amd64); and\\n          FreeBSD 8.0-RELEASE (amd64).\", \"disclosure_date\": \"2009-11-30\", \"fullname\": \"exploit/freebsd/local/rtld_execl_priv_esc\", \"is_install_path\": true, \"mod_time\": \"2026-04-22 11:59:31 +0000\", \"name\": \"FreeBSD rtld execl() Privilege Escalation\", \"needs_cleanup\": true, \"notes\": {\"Reliability\": [\"repeatable-session\"], \"SideEffects\": [\"artifacts-on-disk\"], \"Stability\": [\"crash-safe\"]}, \"path\": \"/modules/exploits/freebsd/local/rtld_execl_priv_esc.rb\", \"platform\": \"BSD\", \"post_auth\": false, \"rank\": 600, \"ref_name\": \"freebsd/local/rtld_execl_priv_esc\", \"references\": [\"BID-37154\", \"CVE-2009-4146\", \"CVE-2009-4147\", \"SOUNDTRACK-https://www.youtube.com/watch?v=dDnhthI27Fg\", \"URL-https://seclists.org/fulldisclosure/2009/Nov/371\", \"URL-https://c-skills.blogspot.com/2009/11/always-check-return-value.html\", \"URL-https://lists.freebsd.org/pipermail/freebsd-announce/2009-December/001286.html\", \"URL-https://xorl.wordpress.com/2009/12/01/freebsd-ld_preload-security-bypass/\", \"URL-https://securitytracker.com/id/1023250\"], \"rport\": null, \"session_types\": [\"shell\"], \"targets\": [\"Automatic\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:48:18.825524Z"}