BreachSpiderVerified, not vibes

CVE-2019-9193 in Postgresql

High 7.2 Public exploit reported

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

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.07.2
EPSS92.3%
EPSS percentile100th
FixUnknown

Remotely exploitable over the network, low complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Postgresql Postgresql ≥ 9.3, ≤ 11.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · reference

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2019-9193
BreachSpider IDBS-2019-GLOBAL-230597-H
CVSS vectorCVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Published2019-04-01
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-78: OS Command Injection

Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.

Related attack patterns (CAPEC)

CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-78

CAPEC-108 Command Line Execution through SQL Injection via CWE-78

CAPEC-6 Argument Injection via CWE-78

CAPEC-15 Command Delimiters via CWE-78

CAPEC-88 OS Command Injection via CWE-78

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2019-9193 in PostgreSQL 9.3 through 11.2 allows superusers and users in the 'pg_execute_server_program' group to execute arbitrary code via the 'COPY TO/FROM PROGRAM' function, which can lead to system compromise.

The vulnerability is exploited by using the 'COPY TO/FROM PROGRAM' function to execute arbitrary operating system commands. This can be done by superusers or users in the 'pg_execute_server_program' group, who have the necessary permissions to use this function.

Questions

What is CVE-2019-9193?

CVE-2019-9193 in PostgreSQL 9.3 through 11.2 allows superusers and users in the 'pg_execute_server_program' group to execute arbitrary code via the 'COPY TO/FROM PROGRAM' function, which can lead to system compromise.

What is the CVSS score for CVE-2019-9193?

CVE-2019-9193 has CVSS 7.2 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. EPSS: 92.3%.

Is CVE-2019-9193 actively exploited?

Public exploit available for CVE-2019-9193. Exploitation risk elevated.

How do I remediate CVE-2019-9193?

Priority: IMMEDIATE.

What systems are affected by CVE-2019-9193?

CVE-2019-9193 affects Postgresql Postgresql.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Postgresql","product":"Postgresql","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.