{"uuid": "ae9c4621-d93c-4aaf-8b7a-a5c318e727fd", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2019-9193", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/postgres/postgres_copy_from_program_cmd_exec.rb", "content": "{\"actions\": [], \"aliases\": [], \"arch\": \"cmd\", \"author\": [\"Jacob Wilkin\"], \"autofilter_ports\": [5432], \"autofilter_services\": [\"postgres\"], \"check\": true, \"default_credential\": false, \"description\": \"Installations running Postgres 9.3 and above have functionality which allows for the superuser\\n          and users with 'pg_execute_server_program' to pipe to and from an external program using COPY.\\n          This allows arbitrary command execution as though you have console access.\\n\\n          This module attempts to create a new table, then execute system commands in the context of\\n          copying the command output into the table.\\n\\n          This module should work on all Postgres systems running version 9.3 and above.\\n\\n          For Linux &amp; OSX systems, target 1 is used with cmd payloads such as: cmd/unix/reverse_perl\\n\\n          For Windows Systems, target 2 is used with powershell payloads such as: cmd/windows/powershell_reverse_tcp\\n          Alternativly target 3 can be used to execute generic commands, such as a web_delivery meterpreter powershell payload\\n          or other customised command.\", \"disclosure_date\": \"2019-03-20\", \"fullname\": \"exploit/multi/postgres/postgres_copy_from_program_cmd_exec\", \"is_install_path\": true, \"mod_time\": \"2026-04-22 11:58:09 +0000\", \"name\": \"PostgreSQL COPY FROM PROGRAM Command Execution\", \"needs_cleanup\": null, \"notes\": {\"Reliability\": [\"unknown-reliability\"], \"SideEffects\": [\"unknown-side-effects\"], \"Stability\": [\"unknown-stability\"]}, \"path\": \"/modules/exploits/multi/postgres/postgres_copy_from_program_cmd_exec.rb\", \"platform\": \"Linux,OSX,Unix,Windows,Windows\", \"post_auth\": false, \"rank\": 600, \"ref_name\": \"multi/postgres/postgres_copy_from_program_cmd_exec\", \"references\": [\"CVE-2019-9193\", \"URL-https://medium.com/greenwolf-security/authenticated-arbitrary-command-execution-on-postgresql-9-3-latest-cd18945914d5\", \"URL-https://www.postgresql.org/docs/9.3/release-9-3.html\"], \"rport\": 5432, \"session_types\": [\"postgresql\"], \"targets\": [\"Automatic\", \"Unix/OSX/Linux\", \"Windows - PowerShell (In-Memory)\", \"Windows (CMD)\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:50:28.073261Z"}