Home / Postgresql / Postgresql / CVE-2019-9193
CVE-2019-9193: is it exploited, and which versions of Postgresql are affected and fixed?
CVE-2019-9193 is an OS command injection vulnerability in Postgresql. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:38 UTC). Affected: postgresql from 9.3 through 11.2 (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.2, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:24 UTC.
Disputed: a party (often the vendor) disputes that this is a vulnerability. The record is kept as published.
What is CVE-2019-9193?
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’.
From the CVE record by mitre, last updated November 15, 2024, 15:13 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| postgresql | postgresql | from 9.3 through 11.2 | application |
NVD analysis (status Modified), last modified June 17, 2026, 02:43 UTC.
How severe is CVE-2019-9193?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.2 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 9.0 | CVSS 2.0 | AV:N/AC:L/Au:S/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2019-9193 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, April 24, 2024)
- EPSS
- 92.3% probability of exploitation activity in the next 30 days, percentile 99.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Where are the vendor advisories and references?
- https://paquier.xyz/postgresql-2/postgres-9-3-feature-highlight-copy-tofrom-program/
- https://medium.com/greenwolf-security/authenticated-arbitrary-command-execution-on-postgresql-9-3-latest-cd18945914d5
- https://blog.hagander.net/when-a-vulnerability-is-not-a-vulnerability-244/
- https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/authenticated-arbitrary-command-execution-on-postgresql-9-3/
- https://security.netapp.com/advisory/ntap-20190502-0003/
- http://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command-Execution.html
- http://packetstormsecurity.com/files/166540/PostgreSQL-11.7-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/171722/PostgreSQL-9.6.1-Remote-Code-Execution.html
When was it published, and where is the official record?
- Reserved
- February 26, 2019
- Published
- April 1, 2019, 00:00 UTC
- CVE record updated
- November 15, 2024, 15:13 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 02:43 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:24 UTC; KEV December 3, 2026, 09:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Postgresql?
- Nov 12, 2026CVE-2026-6460 PostgreSQL: type confusion
- Nov 12, 2026CVE-2026-6467 PostgreSQL: uncontrolled search path (DLL or library hijacking)
- Nov 12, 2026CVE-2026-16240 PostgreSQL: format string flaw
- Nov 12, 2026CVE-2026-18447 PostgreSQL: type confusion
- Nov 12, 2026CVE-2026-14661 PostgreSQL: external Control of File Name or Path
- Nov 12, 2026CVE-2026-16237 PostgreSQL: improper Protection of Alternate Path
- Nov 12, 2026CVE-2026-120154 PostgreSQL: improper Protection of Alternate Path
- Nov 12, 2026CVE-2026-120153 PostgreSQL: SQL injection
Questions about CVE-2019-9193
Is CVE-2019-9193 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:38 UTC. FIRST's EPSS gives it a 92.3% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Postgresql are affected by CVE-2019-9193?
postgresql from 9.3 through 11.2, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2019-9193?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2019-9193?
High (7.2, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2019-9193?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.