CVE-2019-9193
A public proof of concept exists; no exploitation attested.
- Published2019-04-01
- WeaknessCWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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’.
Timeline
dates in UTC- 2019-04-0121:30CVE publishedNVD
- 2019-05-08Exploit-DB entryExploit-DB
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2019-9193?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2019-9193?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 11.2 | ≥ 9.3, ≤ 11.2 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Vendor advisories
- CVE-2019-9193 Red Hat Product Security
postgresql: Command injection via "COPY TO/FROM PROGRAM" function
Fix
No fix published by the sources we read yet. NVD record
Detection
read 2026-11-02 22:42 UTC- Nuclei template
- available ProjectDiscovery
- Proof-of-concept repositories
- 9 repositories, unverifiedwkjung0624/cve-2019-9193b4keSn4ke/CVE-2019-9193paulotrindadec/CVE-2019-9193geniuszly/CVE-2019-9193jhnhnck/CVE-2019-9193 PoC-in-GitHub
- Metasploit modules
- 1 moduleexploit/multi/postgres/postgres_copy_from_program_cmd_execrank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2024-04-24
- OpenCVESSVC decisionnone—
- NVDCVSS 3.07.2read 2026-10-23
- NVDCVSS 2.09read 2026-10-23
- NVDweakness (CWE)CWE-78read 2026-10-23
- FIRST EPSSEPSS score91.7 %read 2026-11-02
- PoC-in-GitHubproof of concept9read 2026-11-02
- Exploit-DBdetectionread 2026-11-02
- ProjectDiscoverydetectionread 2026-11-02
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2019-18570same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-j83j-hfqj-cf5psame flawGitHub Advisory Database · CC-BY-4.0
- exploit/multi/postgres/postgres_copy_from_program_cmd_execexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
Technical details
- CVSS v3 Vector
- CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Published
- 2019-04-01
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-j83j-hfqj-cf5p
Frequently asked questions
What is CVE-2019-9193?
Is CVE-2019-9193 actively exploited?
What is the CVSS score for CVE-2019-9193?
Running PostgreSQL? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-j83j-hfqj-cf5p
- Metasploit Framework · BSD-3-Clause
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0