CVE-2019-9193: PostgreSQL COPY PROGRAM Command Execution (Disputed)
- Vendor
- Postgresql
CVE-2019-9193 identifies disputed command-execution behavior in PostgreSQL 9.3 through 11.2 involving COPY TO/FROM PROGRAM. This feature intentionally permits database superusers and users with the pg_execute_server_program role, where available, to execute operating-system commands as the account running the database server on Windows, Linux, and macOS. PostgreSQL maintainers consider the CVE erroneous because these privileges explicitly authorize server-side command execution, and database superusers already have equivalent capabilities through other mechanisms. The behavior does not bypass authentication or cross an intended security boundary. The pg_read_server_files and pg_write_server_files roles alone do not authorize COPY PROGRAM.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Abuse of an appropriately privileged database session permits arbitrary command execution with the operating-system permissions of the PostgreSQL service account. Potential consequences include access to or modification of resources available to that account, data exfiltration, malware deployment, and service disruption. Observed abuse includes cryptominer deployment and system-information collection. This behavior does not inherently grant operating-system administrator or root privileges, and PostgreSQL is designed not to run as an operating-system superuser.
Mitigation
If you can’t patch tonight, do this now.
Restrict database network access to authorized clients, enforce secure authentication, and never grant superuser access to remote or otherwise untrusted users. Apply least privilege to application database roles and restrict unnecessary network access from database servers. Monitor PostgreSQL spawning unexpected shells, interpreters, or network utilities, while baselining legitimate administrative and extension-related activity.
Remediation
Patch, then assume compromise.
No upstream PostgreSQL security fix is identified because maintainers consider this intended privileged functionality rather than a vulnerability. Correct excessive database privileges by removing superuser status and unnecessary pg_execute_server_program membership from application accounts and untrusted users. Do not treat upgrading beyond PostgreSQL 11.2 as disabling or fixing COPY PROGRAM.
Exploits
9 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2019-9193 exploited in the wild?
- Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2019-9193?
- Yes. Mallory tracks 9 public exploits or proofs of concept for CVE-2019-9193, the earliest disclosed Mar 20, 2019.
- Is there a patch for CVE-2019-9193?
- No upstream PostgreSQL security fix is identified because maintainers consider this intended privileged functionality rather than a vulnerability. Correct excessive database privileges by removing superuser status and unnecessary pg_execute_server_program membership from application accounts and untrusted users.
- What products are affected by CVE-2019-9193?
- Postgresql.
- How severe is CVE-2019-9193?
- CVE-2019-9193 has a CVSS v3 score of 7.2 (High) and an EPSS score of 92.3% (100th percentile) as of Nov 19, 2026.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.