CVE-2019-9193: OS Command Injection

Published Apr 1, 2019
·
Updated

DISPUTED In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pgexecuteserverprogram' 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’.

Other sources

PostgreSQL could allow a local authenticated attacker to execute arbitrary code on the system, caused by a flaw in the COPY TO/FROM PROGRAM function. By sending a specially-crafted request, an attacker could exploit this vulnerability to execute arbitrary code in the context of the database's operating system user.

Affected Software

2 affected components
PostgreSQL postgresql>=9.3<=11.2
IBM Security Verify Governance<=10.0

Event History

Apr 1, 2019
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Disputed
09:30 PM
Data Sourced
via NVD·09:30 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2019-9193?

CVE-2019-9193 is a vulnerability in PostgreSQL where the "COPY TO/FROM PROGRAM" function allows authenticated attackers to execute arbitrary code on the system.

2

How severe is CVE-2019-9193?

CVE-2019-9193 has a severity score of 7.2 (critical).

3

Which software versions are affected by CVE-2019-9193?

PostgreSQL versions 9.3 through 11.2 are affected by CVE-2019-9193. Additionally, IBM Security Verify Governance version 10.0 is also affected.

4

How can an attacker exploit CVE-2019-9193?

By using the "COPY TO/FROM PROGRAM" function, superusers and users in the 'pg_execute_server_program' group can execute arbitrary code in the context of the database's operating system user.

5

Are there any references for CVE-2019-9193?

Yes, you can find references for CVE-2019-9193 at the following links: [1](http://packetstormsecurity.com/files/152757/PostgreSQL-COPY-FROM-PROGRAM-Command-Execution.html), [2](http://packetstormsecurity.com/files/166540/PostgreSQL-11.7-Remote-Code-Execution.html), [3](http://packetstormsecurity.com/files/171722/PostgreSQL-9.6.1-Remote-Code-Execution.html)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203