CVE-2019-9193

postgresql: Command injection via "COPY TO/FROM PROGRAM" function

Published Apr 1, 2019 CVSS 3.0 · 7.2 High EPSS 91.7% KEV · Not listed
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’.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 15, 2024, 3:13 PM
Reserved
Feb 26, 2019, 12:00 AM
Status
Modified
Published
Apr 1, 2019, 9:30 PM
Modified
Jun 17, 2026, 2:43 AM
Severity
Public date
Mar 20, 2019, 12:00 AM