CVE Tools

CVE-2019-9193

Published: Apr 1, 2019Updated: Nov 21, 2024 Sources: CVE List NVDCWE-78

Description

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

In plain language

AI Worth attention

CVE-2019-9193 is a PostgreSQL feature that can let highly privileged users run operating-system commands through “COPY TO/FROM PROGRAM”; if you don’t allow that level of database privilege, a typical small business is less likely to be affected, but the public exploit availability means you should still tighten access because there’s no known patch.

Executive summary

CVE-2019-9193 is an abuse of PostgreSQL’s “COPY TO/FROM PROGRAM” capability (COPY TO/FROM PROGRAM), where a superuser or a member of the pg_execute_server_program group can execute arbitrary operating-system commands as the database server user; public exploits exist, but no vendor patch was identified in the provided findings.

If affected, business impact
Server takeover via database roleData theft or data deletionService disruptionMalware execution on host

What to do now

  1. Confirm whether your PostgreSQL version is between 9.3 and 11.2.
  2. Check which database accounts are superusers.
  3. Check whether any accounts are members of the pg_execute_server_program group.
  4. Remove the pg_execute_server_program role membership from non-essential users (or revoke the capability from everyone except fully trusted admins).
  5. If you truly require this feature, limit it to a tightly controlled set of accounts and hosts; otherwise, avoid using “COPY TO/FROM PROGRAM”.
  6. Upgrade PostgreSQL to a version outside 9.3–11.2 if you can; since no patch is listed in the findings, upgrade and privilege tightening are the practical mitigations.
May need vendor / contractor work

CVSS Vector Breakdown

AV:NAC:LPR:HUI:NS:UC:HI:HA:H
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:HPrivileges Required
High
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

postgresql
oss-project·USaka postgres
and 1 more affected products View all →

Exploitability

3 exploit sources identified

Exploit details including PoC links, Metasploit modules, and scanner templates are available after registration.

View exploit details

Attack Graph

Products CVE Techniques Tactics

Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/ + scroll to zoom, or go fullscreen.

MITRE ATT&CK

1 technique
Execution
View detailed technique mapping

References

and 5 more references View all →

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2019-9193 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows