CVE-2019-9193
highpriority · attend · 71EPSS 0.917 · 100 %ileexploit · weaponizedEUUSEPSS · scored 2026-10-27
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’.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (11)
Public proof-of-concept and weaponised exploit code.
- EDB-46813PostgreSQL 9.3 - COPY FROM PROGRAM Command Execution (Metasploit)functional · exploit_db
- corsisechero/CVE-2019-9193byVulHubcorsisechero/CVE-2019-9193byVulHubPoC · poc_in_github
affected products (2)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (34)
External citations — patches, advisories, analysis.
- http://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command-Execution.htmlcnnvd
- http://www.nsfocus.net/vulndb/43052cnnvd
- https://blog.hagander.net/when-a-vulnerability-is-not-a-vulnerability-244/cnnvd
- https://medium.com/greenwolf-security/authenticated-arbitrary-command-execution-on-postgresql-9-3-latest-cd18945914d5cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2019-9193cnnvd
- https://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command-Execution.htmlcnnvd
- https://packetstormsecurity.com/files/166540/PostgreSQL-11.7-Remote-Code-Execution.htmlcnnvd
- https://packetstormsecurity.com/files/171722/PostgreSQL-9.6.1-Remote-Code-Execution.htmlcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan