Skip to content
On CISA KEVHigh

CVE-2019-9193Postgresql OS Command Injection

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.

Published Apr 1, 2019 · Updated Nov 21, 2024

Key Facts

Patch immediately
  • CVE-2019-9193 is a high-severity vulnerability (CVSS 7.2 v3) affecting Postgresql, postgresql10-devel (photon), postgresql10 (photon) and 1 more product.
  • It is exploited in the wild, listed in Industry KEV feed since Jan 22, 2021. Public exploit code is available.
  • EPSS estimates a 92% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Postgresql NA, Postgresql <=11.2, postgresql10 NA.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

Scores

CVSS v3

7.2

CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

92%

Higher than 99.8% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

81/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Jan 22, 2021

662 days after publication

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

4

Proof-of-concept links

In-the-wild evidence

5

Reports of active use

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

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
Industry KEV feedJan 22, 2021n/aNot reported

Affected Products

7 affected entries in total
ProductAffected versionsFixed in
PostgresqlPostgresqlSee advisory11.2
postgresql10-develphotonSee advisoryNA
postgresql10photonSee advisoryNA
postgresql10-libsphotonSee advisoryNA

Patched Releases

Postgresql

NA, <=11.2

postgresql10

NA

postgresql10-devel

NA

postgresql10-libs

NA

Timeline

  1. Publicly disclosed

    Apr 1, 2019

  2. Added to Industry KEV feed

    Jan 22, 2021

  3. Last updated

    Nov 21, 2024

Weakness Type

  • CWE-20 Improper Input Validation
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

FAQ

Common Questions.

Is CVE-2019-9193 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 2, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.