Code executionin CVE-2019-9193.
Weaponized: a Metasploit exploit is public.
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group to execute arbitrary code in the context of the database's operating system user. This functionality is enabled by default and can be abused to run arbitrary operating system commands on Windows, Linux, and macOS. NOTE: Third parties claim/state this is not an issue because PostgreSQL functionality for ‘COPY TO/FROM PROGRAM’ is acting as intended. References state that in PostgreSQL, a superuser can execute commands as the server user without using the ‘COPY FROM PROGRAM’.
- No source names a fix yet. Watch this page or the product for updates; we never guess a fixed version.
Not confirmed by any source yet: affected versions not confirmed; fixed version not confirmed; severity not scored yet. We show these as not confirmed instead of guessing.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 26 Feb 2019CVE ID reserved by mitre.
- 20 Mar 2019Metasploit module: PostgreSQL COPY FROM PROGRAM Command Execution.
- 1 Apr 2019Published in the CVE List.
- 12 Feb 2020First public proof of concept on GitHub.
- 15 Nov 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation none.
10 proof of concept repositories on GitHub. No fix or workaround is known yet, so we count them but do not link to them.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
- paquier.xyz
- medium.com
- blog.hagander.net
- www.trustwave.com
- security.netapp.com
- packetstormsecurity.com
- packetstormsecurity.com
- packetstormsecurity.com
Patchminder. CVE-2019-9193: Code execution in CVE-2019-9193. https://patchminder.com/cve/cve-2019-9193/ (accessed 5 December 2026).