patchminder
Weaponized · Metasploit CVE-2019-9193

Code executionin CVE-2019-9193.

Published 1 Apr 2019 · Updated 15 Nov 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
Not scored
No source has scored it yet
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 92.3% chance in 30 days · 4 Dec 2026
Fix
Not confirmed
No source names a fixed version yet
In plain words

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’.

What to do now
  • 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.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 26 Feb 2019
    CVE ID reserved by mitre.
  2. 20 Mar 2019
    Metasploit module: PostgreSQL COPY FROM PROGRAM Command Execution.
  3. 1 Apr 2019
    Published in the CVE List.
  4. 12 Feb 2020
    First public proof of concept on GitHub.
  5. 15 Nov 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation none.

Metasploit module
1 module
Nuclei scan template
Available
Exploit-DB
3 entries
GitHub proof of concepts
10 repositories
MetasploitPostgreSQL COPY FROM PROGRAM Command Executionrank excellentLinked once a fix or workaround is known.
NucleiPostgreSQL 9.3-12.3 Authenticated Remote Code Executiondetection templateLinked once a fix or workaround is known.
Exploit-DBEDB-ID 46813remote exploit for multiple, published 8 May 2019, verified by Exploit-DBLinked once a fix or workaround is known.
Exploit-DBEDB-ID 50847remote exploit for multiple, published 30 Mar 2022Linked once a fix or workaround is known.
Exploit-DBEDB-ID 51247remote exploit for multiple, published 5 Apr 2023Linked once a fix or workaround is known.

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.

References
Cite this page

Patchminder. CVE-2019-9193: Code execution in CVE-2019-9193. https://patchminder.com/cve/cve-2019-9193/ (accessed 5 December 2026).