Patchfirst
CVE-2019-9193 Public exploit EPSS 91.7%

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the…

No fixed version listed yet.Check the vendor advisory. References ↓

Summary

The COPY TO/FROM PROGRAM function in PostgreSQL 9.3 through 11.2 lets superusers and members of the pg_execute_server_program group run arbitrary code as the database's operating system user, and it is enabled by default. An attacker who holds one of those database roles can use it to run arbitrary operating system commands on Windows, Linux, or macOS, with no further conditions required.

Official description · CVE.org

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’.

Breakdown
61.3 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 22 months after disclosure. Public exploit code (Metasploit) was available 12 days before disclosure.

  1. Public exploit codeMetasploit12 days before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+22 mo
↑ ↓ chooseEnter openEsc close