{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2019-9193","id":"CVE-2019-9193","title":"In PostgreSQL 9.3 through 11.2, the \"COPY TO/FROM PROGRAM\" function allows superusers and users in the 'pg_execute_se…","description":"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 is","descriptionLong":"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’.","published":"2019-04-01T00:00:00.000Z","updated":"2026-06-17T02:43:19.763Z","reserved":"2019-02-26T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.0","score":7.2,"vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.0","score":7.2,"vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","rating":"critical","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-78"],"aliases":[],"references":[{"url":"https://paquier.xyz/postgresql-2/postgres-9-3-feature-highlight-copy-tofrom-program/","tags":["x_transferred","Third Party Advisory"]},{"url":"https://medium.com/greenwolf-security/authenticated-arbitrary-command-execution-on-postgresql-9-3-latest-cd18945914d5","tags":["x_transferred","Exploit","Third Party Advisory"]},{"url":"https://blog.hagander.net/when-a-vulnerability-is-not-a-vulnerability-244/","tags":["x_transferred","Third Party Advisory"]},{"url":"https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/authenticated-arbitrary-command-execution-on-postgresql-9-3/","tags":["x_transferred","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20190502-0003/","tags":["x_transferred","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command-Execution.html","tags":["x_transferred","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/166540/PostgreSQL-11.7-Remote-Code-Execution.html","tags":["x_transferred"]},{"url":"http://packetstormsecurity.com/files/171722/PostgreSQL-9.6.1-Remote-Code-Execution.html","tags":["x_transferred"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.91655,"epssPercentile":0.99818,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2019-9193","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-9193","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2019-9193","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-9193","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["postgresql"],"critical":["EPSS 92% with CVSS 7.2"],"attention":null}