CVE-2019-9193: In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group…

CVE-2019-9193 affects 87 listed versions of PostgreSQL in the Dawnsentry catalogue.

7.2CVSS high
Attack tool publicexploitation
92%EPSS (next 30 days)
1 April 2019published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PostgreSQL

87 of 250 listed versions are affected. No fixed release is named. The newest release, 19.0, is not affected.

11.2 11.1 11.0 10.23 10.22 10.21 10.20 10.19 10.18 10.17 10.16 10.15 10.14 10.13 10.12 10.11 10.10 10.9 10.8 10.7 10.6 10.5 10.4 10.3 10.2 10.1 10.0 9.6.24 9.6.23 9.6.22 9.6.21 9.6.20 9.6.19 9.6.18 9.6.17 9.6.16 9.6.15 9.6.14 9.6.13 9.6.12 9.6.11 9.6.10 9.5.25 9.5.24 9.5.23 9.5.22 9.5.21 9.5.20 9.5.19 9.5.18 9.5.17 9.5.16 9.5.15 9.5.14 9.5.13 9.5.12 9.5.11 9.4.26 9.4.25 9.4.24 and 27 more

What it is

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

CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by MITRE on 1 April 2019. Last changed 17 June 2026. Exploit code is public (Metasploit or Nuclei).

Sources

Check one version you run: look CVE-2019-9193 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.