{"uuid": "0a04cd39-d328-45b4-b6d1-a60c62f843c1", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2016-5425", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/tomcat_rhel_based_temp_priv_esc.rb", "content": "{\"actions\": [], \"aliases\": [], \"arch\": \"x86, x64\", \"author\": [\"h00die\", \"Dawid Golunski \"], \"autofilter_ports\": [], \"autofilter_services\": [], \"check\": true, \"default_credential\": false, \"description\": \"This module exploits a vulnerability in RedHat based systems where\\n          improper file permissions are applied to /usr/lib/tmpfiles.d/tomcat.conf\\n          for Apache Tomcat versions before 7.0.54-8.  This may also work against\\n\\n          The configuration files in tmpfiles.d are used by systemd-tmpfiles to manage\\n          temporary files including their creation.\\n\\n          With this weak permission, we're able to inject commands into systemd-tmpfiles\\n          service to write a cron job to execute our payload.\\n\\n          systemd-tmpfiles is executed by default on boot on RedHat-based systems\\n          through systemd-tmpfiles-setup.service. Depending on the system in use,\\n          the execution of systemd-tmpfiles could also be triggered by other\\n          services, cronjobs, startup scripts etc.\\n\\n          This module was tested against Tomcat 7.0.54-3 on Fedora 21.\", \"disclosure_date\": \"2016-10-10\", \"fullname\": \"exploit/linux/local/tomcat_rhel_based_temp_priv_esc\", \"is_install_path\": true, \"mod_time\": \"2023-03-13 14:42:26 +0000\", \"name\": \"Apache Tomcat on RedHat Based Systems Insecure Temp Config Privilege Escalation\", \"needs_cleanup\": true, \"notes\": {\"Reliability\": [\"repeatable-session\"], \"SideEffects\": [\"artifacts-on-disk\", \"config-changes\", \"ioc-in-logs\"], \"Stability\": [\"crash-safe\"]}, \"path\": \"/modules/exploits/linux/local/tomcat_rhel_based_temp_priv_esc.rb\", \"platform\": \"Linux\", \"post_auth\": false, \"rank\": 0, \"ref_name\": \"linux/local/tomcat_rhel_based_temp_priv_esc\", \"references\": [\"EDB-40488\", \"URL-https://access.redhat.com/security/cve/CVE-2016-5425\", \"URL-http://legalhackers.com/advisories/Tomcat-RedHat-Pkgs-Root-PrivEsc-Exploit-CVE-2016-5425.html\", \"URL-https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html\", \"CVE-2016-5425\"], \"rport\": null, \"session_types\": [\"shell\", \"meterpreter\"], \"targets\": [\"Auto\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:49:12.913177Z"}