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-01 21:30:45
Updated 2024-08-04 22:15:35
Source MITRE
View at NVD,   CVE.org
Vulnerability category: Execute code

Products affected by CVE-2019-9193

Threat overview for CVE-2019-9193

Top countries where our scanners detected CVE-2019-9193
Top open port discovered on systems with this issue 5432
IPs affected by CVE-2019-9193 240,347
Threat actors abusing to this issue? Yes
Find out if you* are affected by CVE-2019-9193!
*Directly or indirectly through your vendors, service providers and 3rd parties. Powered by attack surface intelligence from SecurityScorecard.

Exploit prediction scoring system (EPSS) score for CVE-2019-9193

97.38%
Probability of exploitation activity in the next 30 days EPSS Score History
~ 100 %
Percentile, the proportion of vulnerabilities that are scored at or less

Metasploit modules for CVE-2019-9193

  • PostgreSQL COPY FROM PROGRAM Command Execution
    Disclosure Date: 2019-03-20
    First seen: 2020-04-26
    exploit/multi/postgres/postgres_copy_from_program_cmd_exec
    Installations running Postgres 9.3 and above have functionality which allows for the superuser and users with 'pg_execute_server_program' to pipe to and from an external program using COPY. This allows arbitrary command execution as though you have console access. T

CVSS scores for CVE-2019-9193

Base Score Base Severity CVSS Vector Exploitability Score Impact Score Score Source First Seen
9.0
HIGH AV:N/AC:L/Au:S/C:C/I:C/A:C
8.0
10.0
NIST
7.2
HIGH CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
1.2
5.9
NIST

CWE ids for CVE-2019-9193

References for CVE-2019-9193

Jump to
This web site uses cookies for managing your session, storing preferences, website analytics and additional purposes described in our privacy policy.
By using this web site you are agreeing to CVEdetails.com terms of use!