CVE-2019-9193
high-risk
Published 2019-04-01
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’.
Do I need to act?
!
93.5% chance of exploitation in next 30 days
EPSS score — higher than 7% of all CVEs
-
Not on CISA KEV list
No confirmed active exploitation reported to CISA
!
1 public exploit available
?
Patch status unknown
Check vendor advisories for fix availability and mitigation guidance
7
CVSS 7.2/10
High
NETWORK
/ LOW complexity
Affected Products (1)
Affected Vendors
References (16)
Third Party Advisory
http://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command...
Third Party Advisory
https://blog.hagander.net/when-a-vulnerability-is-not-a-vulnerability-244/
Third Party Advisory
https://paquier.xyz/postgresql-2/postgres-9-3-feature-highlight-copy-tofrom-prog...
Third Party Advisory
https://security.netapp.com/advisory/ntap-20190502-0003/
Third Party Advisory
https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/authenticated-ar...
Third Party Advisory
http://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command...
Third Party Advisory
https://blog.hagander.net/when-a-vulnerability-is-not-a-vulnerability-244/
Third Party Advisory
https://paquier.xyz/postgresql-2/postgres-9-3-feature-highlight-copy-tofrom-prog...
Third Party Advisory
https://security.netapp.com/advisory/ntap-20190502-0003/
Third Party Advisory
https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/authenticated-ar...
58
/ 100
high-risk
Severity
26/34 · High
Exploitability
27/34 · High
Exposure
5/34 · Minimal