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’.
CVE-2019-9193
Score elevated to 9.0 because EPSS predicts 92% probability of exploitation within the next 30 days (99th percentile of EPSS-scored CVEs). NVD baseline CVSS 7.2 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 92%
- Public exploit code is available (Metasploit, Exploit-DB (verified), epss top5pct, epss high, public exploit)
No fix is confirmed yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for the fix.
- CVSS v3
- 7.2
- EG Score
- 9.0CRITICALhigh confidence
- EG Risk
- 77EG Risk 77/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity90% × 45%Exploitation92% × 40%Automatability0% × 15%CISA SSVC: Track at low or medium mission impact; Track* at high (mission-essential systems).Action: No fix is confirmed yet. Restrict network exposure of the affected system or apply the vendor's mitigation within your standard update timelines, and watch the vendor's advisory for the fix. - EPSS PROB
- 92%
- EPSS %ILE
- 99th
- KEV
- Not listed
CISA SSVCTrack at low or medium mission impact; Track* at high (mission-essential systems).
No fix is confirmed yet. Restrict network exposure of the affected system or apply the vendor's mitigation within your standard update timelines, and watch the vendor's advisory for the fix.
Exploitation none (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
April 1, 2019
Last Modified
November 21, 2024
References (16)
- cve@mitrehttp://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command-Execution.html
- cve@mitrehttp://packetstormsecurity.com/files/166540/PostgreSQL-11.7-Remote-Code-Execution.html
- cve@mitrehttp://packetstormsecurity.com/files/171722/PostgreSQL-9.6.1-Remote-Code-Execution.html
- cve@mitrehttps://blog.hagander.net/when-a-vulnerability-is-not-a-vulnerability-244/
- cve@mitrehttps://medium.com/greenwolf-security/authenticated-arbitrary-command-execution-on-postgresql-9-3-latest-cd18945914d5
- cve@mitrehttps://paquier.xyz/postgresql-2/postgres-9-3-feature-highlight-copy-tofrom-program/
- cve@mitrehttps://security.netapp.com/advisory/ntap-20190502-0003/
- cve@mitrehttps://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/authenticated-arbitrary-command-execution-on-postgresql-9-3/
- af854a3a-2127-422b-91ae-364da2661108http://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command-Execution.html
- af854a3a-2127-422b-91ae-364da2661108http://packetstormsecurity.com/files/166540/PostgreSQL-11.7-Remote-Code-Execution.html
- af854a3a-2127-422b-91ae-364da2661108http://packetstormsecurity.com/files/171722/PostgreSQL-9.6.1-Remote-Code-Execution.html
- af854a3a-2127-422b-91ae-364da2661108https://blog.hagander.net/when-a-vulnerability-is-not-a-vulnerability-244/
- af854a3a-2127-422b-91ae-364da2661108https://medium.com/greenwolf-security/authenticated-arbitrary-command-execution-on-postgresql-9-3-latest-cd18945914d5
- af854a3a-2127-422b-91ae-364da2661108https://paquier.xyz/postgresql-2/postgres-9-3-feature-highlight-copy-tofrom-program/
- af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20190502-0003/
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 2× in last 7d / 9× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-10-09 20:03 UTCEPSS rescore
- 2026-10-08 16:37 UTCEPSS rescore
- 2026-10-03 14:22 UTCEPSS rescore
- 2026-09-30 10:29 UTCEG score recompute
- 2026-09-24 13:59 UTCEPSS rescore
- 2026-09-22 14:43 UTCEPSS rescore
- 2026-09-21 20:28 UTCEPSS rescore
- 2026-09-17 19:22 UTCEPSS rescore
- 2026-09-15 03:06 UTCEPSS rescore
- 2026-09-06 13:44 UTCEPSS rescore
- 2026-09-05 15:24 UTCEPSS rescore
- 2026-08-27 14:21 UTCEPSS rescore
- 2026-08-19 17:00 UTCEPSS rescore
- 2026-08-18 13:44 UTCEPSS rescore
- 2026-08-12 13:47 UTCEPSS rescore
- 2026-07-30 16:24 UTCEPSS rescore
- 2026-07-28 15:32 UTCEPSS rescore
- 2026-07-24 14:14 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 01:47 UTCEG score recompute
- 2026-07-22 22:30 UTCEG score recompute
- 2026-07-22 14:05 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-07 13:43 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
Show 19 moreShow fewer
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-10 13:19 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-27 21:12 UTCEG score recompute
- 2026-05-27 21:12 UTCGHSA enrichment
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:38 UTCEPSS rescore
- 2026-05-25 08:16 UTCOSV refresh
Publicly available exploits
(6 references)Public exploit code is referenced for this CVE (1 Metasploit module, 1 Exploit-DB entry, 3 GitHub PoCs), as is 1 Nuclei detection template. A detection template checks whether a system is affected; it is not necessarily exploit code. Defenders should treat patch urgency accordingly.
- Exploit-DBEDB-46813✓ verifiedPublished May 8, 2019
PostgreSQL 9.3 - COPY FROM PROGRAM Command Execution (Metasploit)
Open source ↗ - Metasploitexploit/multi/postgres/postgres_copy_from_program_cmd_exec✓ verifiedPublished May 7, 2019
PostgreSQL COPY FROM PROGRAM Command Execution
Open source ↗ - GitHub PoCgeniuszly/CVE-2019-9193Published Oct 6, 2024
is a PoC tool designed to exploit an authenticated Remote Code Execution (RCE) vulnerability in specific versions of PostgreSQL (9.3 - 11.7)
Open source ↗ - Nucleijavascript/cves/2019/CVE-2019-9193.yamlPublished Apr 5, 2024
PostgreSQL 9.3-12.3 Authenticated Remote Code Execution
Open source ↗ - GitHub PoCb4keSn4ke/CVE-2019-9193Published Mar 29, 2022
CVE-2019–9193 - PostgreSQL 9.3-12.3 Authenticated Remote Code Execution
Open source ↗ - GitHub PoCwkjung0624/cve-2019-9193Published Feb 12, 2020
PostgreSQL Remote Code Executuon
Open source ↗
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2019-9193?
When was CVE-2019-9193 disclosed?
Is CVE-2019-9193 actively exploited?
What is the CVSS score of CVE-2019-9193?
How do I remediate CVE-2019-9193?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2019-9193
Is Your Infrastructure Affected by CVE-2019-9193?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.