Vulnerabilities

Vulnerability · CVE-2019-9193

postgresql postgresql Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Published Jan 22, 2021 · catalog updated Jan 22, 2021 · postgresql postgresql Improper Neutralization

Patch now

CVE-2019-9193 is in the CISA known-exploited catalog. Confirm postgresql postgresql Improper Neutralization against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Severity
Unknown—
Known exploitation
CISA KEV and VulnCheck KEV
EPSS
91.66%
Remediation
Remediation guidance
Affected products
vendor postgresql postgresql

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 Initial-access exploit intelligence.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • vendor postgresql postgresqlversion unspecified

How to fix CVE-2019-9193

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

CVE-2019-9193 is in the CISA known-exploited catalog. Confirm postgresql postgresql Improper Neutralization against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Which versions are affected?

Affected version ranges are not on this record. Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.

What should an analyst verify?

No weakness class is stored. EPSS 91.66%. The CISA KEV listing is the exploitation evidence. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Technology hubs

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Jan 22, 2021 · VulnCheck KEV

    Detected

    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 is

  2. Jan 22, 2021 · CISA KEV

    Known exploited

    Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.

Sources

  • CVE.orgVulnerability recordCVE-2019-9193

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2019-9193

    30-day exploitation probability 91.7%

    first.org
  • VulnCheck KEVConfirmed exploitationCVE-2019-9193

    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

    vulncheck.com

References

Freshness

Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.