nday
CVE-2019-9193

PostgreSQL: command injectionTitle composed by nday; the CVE record has none.

A public PoC appeared 37 days after disclosure. nday has no fix record for it yet; that does not mean no patch exists. Listed by 3 of 4 PoC sources: exploitdb, metasploit, and nuclei. Not in CISA KEV.

tags weakness typecommand injection accessnetworkno user interaction exploitationMetasploitExploit-DBnuclei productPostgreSQL product typedatabase
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

command injection
CWE-78, stated by NVD's analysts
network
AV:N in CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H (CVSS 3.0) from NVD's analysts
no user interaction
UI:N in CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H (CVSS 3.0) from NVD's analysts
Metasploit
Metasploit modules exploit/multi/postgres/postgres_copy_from_program_cmd_exec
Exploit-DB
Exploit-DB entries 46813, 50847, 51247
nuclei
nuclei templates CVE-2019-9193
PostgreSQL
CPE names NVD's analysts give as vulnerable: a:postgresql:postgresql
database
CPE names NVD's analysts give as vulnerable: a:postgresql:postgresqlthe product type of PostgreSQL in nday's product registry
stage
POC
disclosed
disclosure → PoC
T+37d POC is date-only
cvss
no score yet

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2019-04-01T00:00Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2019-05-08, date only +2 more
metasploit, nuclei
ITWexploited
no record yet
KEVKEV
no record yet

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

Original text of the CVE record (cvelist), shown as published.

Event log

+DISdisclosed

CVE record published by mitre.

src cvelist · nday , bulk import · raw
{
  "id": 64117,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2019-9193",
  "occurred_at": "2019-04-01T00:00:00Z",
  "observed_at": "2026-11-12T21:04:12.541754Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "ssvc": {
      "timestamp": "2024-04-24T17:12:53.867918Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2019-04-01T00:00:00.000Z",
    "assigner_short_name": "mitre"
  }
}
2019-05-08date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “PostgreSQL 9.3 - COPY FROM PROGRAM Command Execution (Metasploit)” (EDB-46813). Verified by Exploit-DB.

src exploitdb 46813 · nday , bulk import · raw
{
  "id": 27357,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/46813",
  "occurred_at": "2019-05-08T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "46813",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/46813",
    "file": "exploits/multiple/remote/46813.rb",
    "kind": "exploit",
    "tags": [
      "Metasploit Framework (MSF)"
    ],
    "type": "remote",
    "title": "PostgreSQL 9.3 - COPY FROM PROGRAM Command Execution (Metasploit)",
    "author": "Metasploit",
    "edb_id": 46813,
    "cve_ids": [
      "CVE-2019-9193"
    ],
    "platform": "multiple",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2019-05-08",
    "date_updated": "2019-05-08",
    "date_published": "2019-05-08"
  }
}
2022-03-30date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “PostgreSQL 9.3-11.7 - Authenticated Remote Code Execution (RCE)” (EDB-50847).

src exploitdb 50847 · nday , observed live · raw
{
  "id": 500275,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/50847",
  "occurred_at": "2022-03-30T00:00:00Z",
  "observed_at": "2026-11-23T11:01:06.82903Z",
  "is_backfill": false,
  "dedupe_key": "50847",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/50847",
    "file": "exploits/multiple/remote/50847.py",
    "kind": "exploit",
    "tags": [],
    "type": "remote",
    "title": "PostgreSQL 9.3-11.7 - Authenticated Remote Code Execution (RCE)",
    "author": "b4keSn4ke",
    "edb_id": 50847,
    "cve_ids": [
      "CVE-2019-9193"
    ],
    "platform": "multiple",
    "verified": false,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2022-03-30",
    "date_updated": "2022-03-30",
    "date_published": "2022-03-30"
  }
}
2023-04-05date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “PostgreSQL 9.6.1 - Authenticated Remote Code Execution (RCE)” (EDB-51247).

src exploitdb 51247 · nday , observed live · raw
{
  "id": 500276,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/51247",
  "occurred_at": "2023-04-05T00:00:00Z",
  "observed_at": "2026-11-23T11:01:06.82903Z",
  "is_backfill": false,
  "dedupe_key": "51247",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/51247",
    "file": "exploits/multiple/remote/51247.py",
    "kind": "exploit",
    "tags": [],
    "type": "remote",
    "title": "PostgreSQL 9.6.1 - Authenticated Remote Code Execution (RCE)",
    "author": "Paulo Trindade",
    "edb_id": 51247,
    "cve_ids": [
      "CVE-2019-9193"
    ],
    "platform": "multiple",
    "verified": false,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2023-04-05",
    "date_updated": "2023-04-05",
    "date_published": "2023-04-05"
  }
}
time unknownsource gave no time
+POCpublic PoC

Metasploit has module exploit/multi/postgres/postgres_copy_from_program_cmd_exec (PostgreSQL COPY FROM PROGRAM Command Execution). The source gives no release time for the module.

src metasploit exploit/multi/postgres/postgres_copy_from_program_cmd_exec · nday , bulk import · raw
{
  "id": 51576,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/postgres/postgres_copy_from_program_cmd_exec.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/multi/postgres/postgres_copy_from_program_cmd_exec",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/postgres/postgres_copy_from_program_cmd_exec.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/multi/postgres/postgres_copy_from_program_cmd_exec.rb",
    "rank": 600,
    "check": true,
    "title": "PostgreSQL COPY FROM PROGRAM Command Execution",
    "cve_ids": [
      "CVE-2019-9193"
    ],
    "fullname": "exploit/multi/postgres/postgres_copy_from_program_cmd_exec",
    "rank_name": "excellent",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2026-04-22 11:58:09 +0000",
    "vuln_disclosure_date": "2019-03-20"
  }
}
time unknownsource gave no time
+POCpublic PoC

Nuclei has detection template CVE-2019-9193 (PostgreSQL 9.3-12.3 Authenticated Remote Code Execution). The source gives no release time for the template.

src nuclei · nday , bulk import · raw
{
  "id": 57633,
  "type": "poc_published",
  "source": "nuclei",
  "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/javascript/cves/2019/CVE-2019-9193.yaml",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:53.738369Z",
  "is_backfill": true,
  "dedupe_key": "CVE-2019-9193",
  "detail": {
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/javascript/cves/2019/CVE-2019-9193.yaml",
    "kind": "detection_template",
    "title": "PostgreSQL 9.3-12.3 Authenticated Remote Code Execution",
    "severity": "high",
    "confidence": "curated",
    "cvss_score": "N/A",
    "template_id": "CVE-2019-9193",
    "template_path": "javascript/cves/2019/CVE-2019-9193.yaml"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.