{"api_version":"1","generated_at":"2026-07-23T10:22:23+00:00","cve":"CVE-2019-9193","urls":{"html":"https://cve.report/CVE-2019-9193","api":"https://cve.report/api/cve/CVE-2019-9193.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-9193","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-9193"},"summary":{"title":"CVE-2019-9193","description":"** DISPUTED ** 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’.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2019-04-01 21:30:00","updated_at":"2023-11-07 03:13:00"},"problem_types":["CWE-78"],"metrics":[],"references":[{"url":"http://packetstormsecurity.com/files/166540/PostgreSQL-11.7-Remote-Code-Execution.html","name":"http://packetstormsecurity.com/files/166540/PostgreSQL-11.7-Remote-Code-Execution.html","refsource":"MISC","tags":[],"title":"Internet Archive: Scheduled Maintenance","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/authenticated-arbitrary-command-execution-on-postgresql-9-3/","name":"https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/authenticated-arbitrary-command-execution-on-postgresql-9-3/","refsource":"MISC","tags":["Third Party Advisory"],"title":"Authenticated Arbitrary Command Execution on PostgreSQL 9.3 > Latest | Trustwave","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://paquier.xyz/postgresql-2/postgres-9-3-feature-highlight-copy-tofrom-program/","name":"https://paquier.xyz/postgresql-2/postgres-9-3-feature-highlight-copy-tofrom-program/","refsource":"MISC","tags":["Third Party Advisory"],"title":"Postgres 9.3 feature highlight - COPY TO/FROM PROGRAM","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://blog.hagander.net/when-a-vulnerability-is-not-a-vulnerability-244/","name":"https://blog.hagander.net/when-a-vulnerability-is-not-a-vulnerability-244/","refsource":"MISC","tags":["Third Party Advisory"],"title":"When a vulnerability is not a vulnerability - Magnus Hagander's blog","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command-Execution.html","name":"http://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command-Execution.html","refsource":"MISC","tags":["Third Party Advisory"],"title":"PostgreSQL COPY FROM PROGRAM Command Execution ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://medium.com/greenwolf-security/authenticated-arbitrary-command-execution-on-postgresql-9-3-latest-cd18945914d5","name":"https://medium.com/greenwolf-security/authenticated-arbitrary-command-execution-on-postgresql-9-3-latest-cd18945914d5","refsource":"MISC","tags":["Exploit","Third Party Advisory"],"title":"Authenticated Arbitrary Command Execution on PostgreSQL 9.3 > Latest","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://packetstormsecurity.com/files/171722/PostgreSQL-9.6.1-Remote-Code-Execution.html","name":"http://packetstormsecurity.com/files/171722/PostgreSQL-9.6.1-Remote-Code-Execution.html","refsource":"MISC","tags":[],"title":"PostgreSQL 9.6.1 Remote Code Execution ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.netapp.com/advisory/ntap-20190502-0003/","name":"https://security.netapp.com/advisory/ntap-20190502-0003/","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"CVE-2019-9193 PostgreSQL in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-9193","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-9193","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2019","cve_id":"9193","vulnerable":"1","versionEndIncluding":"11.2","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2019-9193","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"** DISPUTED ** 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’."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://paquier.xyz/postgresql-2/postgres-9-3-feature-highlight-copy-tofrom-program/","refsource":"MISC","name":"https://paquier.xyz/postgresql-2/postgres-9-3-feature-highlight-copy-tofrom-program/"},{"url":"https://medium.com/greenwolf-security/authenticated-arbitrary-command-execution-on-postgresql-9-3-latest-cd18945914d5","refsource":"MISC","name":"https://medium.com/greenwolf-security/authenticated-arbitrary-command-execution-on-postgresql-9-3-latest-cd18945914d5"},{"refsource":"MISC","name":"https://blog.hagander.net/when-a-vulnerability-is-not-a-vulnerability-244/","url":"https://blog.hagander.net/when-a-vulnerability-is-not-a-vulnerability-244/"},{"refsource":"MISC","name":"https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/authenticated-arbitrary-command-execution-on-postgresql-9-3/","url":"https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/authenticated-arbitrary-command-execution-on-postgresql-9-3/"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20190502-0003/","url":"https://security.netapp.com/advisory/ntap-20190502-0003/"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command-Execution.html","url":"http://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command-Execution.html"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/166540/PostgreSQL-11.7-Remote-Code-Execution.html","url":"http://packetstormsecurity.com/files/166540/PostgreSQL-11.7-Remote-Code-Execution.html"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/171722/PostgreSQL-9.6.1-Remote-Code-Execution.html","url":"http://packetstormsecurity.com/files/171722/PostgreSQL-9.6.1-Remote-Code-Execution.html"}]}},"nvd":{"publishedDate":"2019-04-01 21:30:00","lastModifiedDate":"2023-11-07 03:13:00","problem_types":["CWE-78"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.2,"baseSeverity":"HIGH"},"exploitabilityScore":1.2,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:C/I:C/A:C","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":9},"severity":"HIGH","exploitabilityScore":8,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"9.3","versionEndIncluding":"11.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2019","CveId":"9193","Ordinal":"147056","Title":"CVE-2019-9193","CVE":"CVE-2019-9193","Year":"2019"},"notes":[{"CveYear":"2019","CveId":"9193","Ordinal":"1","NoteData":"** DISPUTED ** 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’.","Type":"Description","Title":null},{"CveYear":"2019","CveId":"9193","Ordinal":"2","NoteData":"2019-04-01","Type":"Other","Title":"Published"},{"CveYear":"2019","CveId":"9193","Ordinal":"3","NoteData":"2019-08-26","Type":"Other","Title":"Modified"}]}}}