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 (top 0.2% of all CVEs). NVD baseline CVSS 7.2 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 92%
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.2
- EG Score
- 9.0(high)
- EG Risk
- 77(Track)EG Risk 77/100SSVC: Track
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%Action: Routine — remediate on your standard cadence. - EPSS
- 99.8%
- KEV
- Not listed
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 4× in last 7d / 11× 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-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
- 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
Show 1 moreShow fewer
- 2026-05-25 08:16 UTCOSV refresh
Publicly available exploits
(6 references)Working exploit code is in the public domain (1 Metasploit module) (3 GitHub PoCs) (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCgeniuszly/CVE-2019-9193First seen 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 ↗ - GitHub PoCb4keSn4ke/CVE-2019-9193First seen Mar 29, 2022
CVE-2019–9193 - PostgreSQL 9.3-12.3 Authenticated Remote Code Execution
Open source ↗ - GitHub PoCwkjung0624/cve-2019-9193First seen Feb 12, 2020
PostgreSQL Remote Code Executuon
Open source ↗ - Exploit-DBEDB-46813✓ verifiedFirst seen May 8, 2019
PostgreSQL 9.3 - COPY FROM PROGRAM Command Execution (Metasploit)
Open source ↗ - Metasploitexploit/multi/postgres/postgres_copy_from_program_cmd_exec✓ verifiedFirst seen Mar 20, 2019
PostgreSQL COPY FROM PROGRAM Command Execution
Open source ↗ - Nucleijavascript/cves/2019/CVE-2019-9193.yamlFirst seen Jan 1, 2019
PostgreSQL 9.3-12.3 Authenticated Remote Code Execution
Open source ↗
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.