nday
CVE-2019-9193

PostgreSQL : command injectionTitre composé par nday ; la fiche CVE n’en comporte pas.

Preuve de concept publique parue 37 jours après la divulgation. nday n’a encore aucune trace de correctif ; cela ne veut pas dire qu’il n’en existe pas. Cette vulnérabilité figure dans 3 des 4 sources de PoC : exploitdb, metasploit et nuclei. Aucune inscription au catalogue KEV de la CISA à ce jour.

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
étape actuelle
POC
divulgation
délai avant PoC
T+37d POC : date seule
CVSS
pas encore de score

Cycle de vie

Axe en UTC ; point = minute exacte, barre large = date seule, creux = inconnue ou déduite.
date inconnue
DISdivulguée
2019-04-01T00:00Z
PATcorrectif
aucune donnée
ANAanalyse
aucune donnée
POCPoC
2019-05-08, date seule +2 autres
metasploit, nuclei
ITWexploitée
aucune donnée
KEVKEV
aucune donnée

Résumé

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.

Journal des événements

+DISdivulgation

Fiche CVE publiée par mitre.

source cvelist · importé en masse par nday le · brut
{
  "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 seule, selon la source
+POCPoC publique

Exploit-DB recense un code d’exploitation public : « PostgreSQL 9.3 - COPY FROM PROGRAM Command Execution (Metasploit) » (EDB-46813). Code vérifié par Exploit-DB.

source exploitdb 46813 · importé en masse par nday le · brut
{
  "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 seule, selon la source
+POCPoC publique

Exploit-DB recense un code d’exploitation public : « PostgreSQL 9.3-11.7 - Authenticated Remote Code Execution (RCE) » (EDB-50847).

source exploitdb 50847 · observé en direct par nday le · brut
{
  "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 seule, selon la source
+POCPoC publique

Exploit-DB recense un code d’exploitation public : « PostgreSQL 9.6.1 - Authenticated Remote Code Execution (RCE) » (EDB-51247).

source exploitdb 51247 · observé en direct par nday le · brut
{
  "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"
  }
}
date inconnuela source ne donne aucune date
+POCPoC publique

Metasploit propose le module exploit/multi/postgres/postgres_copy_from_program_cmd_exec (« PostgreSQL COPY FROM PROGRAM Command Execution »). La source n’indique pas la date de publication du module.

source metasploit exploit/multi/postgres/postgres_copy_from_program_cmd_exec · importé en masse par nday le · brut
{
  "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"
  }
}
date inconnuela source ne donne aucune date
+POCPoC publique

Nuclei propose le modèle de détection CVE-2019-9193 (« PostgreSQL 9.3-12.3 Authenticated Remote Code Execution »). La source n’indique pas la date de publication du modèle.

source nuclei · importé en masse par nday le · brut
{
  "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.

Échanges entre chercheurs

0 chercheur en a parlé ces 7 derniers jours

Publications sur X de chercheurs suivis par nday citant cette CVE, telles que publiées. nday ne les vérifie pas.

nday n’a encore recueilli aucune publication sur X d’un chercheur de sa liste citant cette CVE.

Discussion

0 comments

No comments yet.