Skip to main content
← All vulnerabilities
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 to

Published
Last modified
published
Not listed in CISA KEV
1 on Exploit-DB, 1 Metasploit module, 9 proofs of concept on GitHub, 1 Nuclei template
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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

Timeline

  1. CVE published
  2. Public exploit on Exploit-DB

    EDB-46813

  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  4. Record last updated
  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

References 20

paquier.xyz

medium.com

blog.hagander.net

trustwave.com

security.netapp.com

packetstormsecurity.com

Exploit-DB

GitHub · rapid7/metasploit-framework

GitHub · projectdiscovery/nuclei-templates

GitHub · CyberCTF/vulhub-postgres-cve-2019-9193

GitHub · CybersRMUTL/CVE-2019-9193-Postgresql-RCE

GitHub · b4keSn4ke/CVE-2019-9193

GitHub · corsisechero/CVE-2019-9193byVulHub

GitHub · geniuszly/CVE-2019-9193

GitHub · jhnhnck/CVE-2019-9193

GitHub · netw0rk7/CVE-2019-9193-Home-Lab

GitHub · paulotrindadec/CVE-2019-9193

GitHub · wkjung0624/cve-2019-9193