S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Network Vulnerabilities·Updated Oct 8, 2024

CVE-2019-9193 Scanner

Detects 'Remote Code Execution (RCE)' vulnerability in PostgreSQL affects v. 9.3 through 11.2. This scanner identifies unauthorized command execution risks, ensuring database security.

Est. Time~1 minutes
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
2.4k
Times Used
continuous scan runs
4.7k
Continuously Checked
assets under CS
3
Vulnerabilities Found
confirmed findings
References
CVECVE-2019-9193
7.2
CVSS

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

Attack Vector
-
Privileges Req.
-
User Interaction
-
Affected
n/aby n/a
n/a
Updated Aug 21, 2026View on NVD →
Detail

PostgreSQL is an open-source, powerful, and highly extensible relational database management system. It is widely used by enterprises and developers across various industries for managing data and building robust applications. Its feature-rich platform is known for its advanced architecture and high standards of performance and security. PostgreSQL allows users to operate on large datasets efficiently and provides extensive analytical processing capabilities. The software is highly valued for its compliance with SQL standards and ability to handle complex queries with ease, making it a popular choice for backend databases. Typically, it is employed in environments where high-availability, fault-tolerance, and scalability are crucial.

The Remote Code Execution (RCE) vulnerability detected in PostgreSQL is a high-severity issue that allows threat actors to execute arbitrary commands. This vulnerability arises from the misuse of the "COPY TO/FROM PROGRAM" function, which is intended to facilitate specific database operations. Malicious users, especially those with superuser privileges, can exploit this functionality to run unauthorized commands on the server. Not only does this pose a direct threat to the server's integrity, but it also highlights potential gaps in access control. Although it is a feature functioning as intended, it challenges the security boundaries expected in sensitive environments.

Technical details of this vulnerability involve the exploitation of the "COPY TO/FROM PROGRAM" function. This function typically allows a superuser to copy data from or to a program specified by the user. When misused, it grants attackers the ability to execute system-level commands on the server's host operating system, from within the database environment. By creating specific queries, attackers can gain unauthorized access to system resources, thus compromising both the confidentiality and the availability of data. This vulnerability affects PostgreSQL installations in environments with insufficient access control or misconfigured user permissions.

Exploiting this vulnerability can have severe consequences. Potentially, it allows attackers to manipulate data or disrupt database services by running unauthorized commands at the operating system level. This could lead to data breaches, loss of service, or unauthorized data modification. Organizations unaware of this risk might find themselves facing substantial downtime, information theft, and even legal implications if sensitive data is exposed. Mitigation of this vulnerability is critical for maintaining the overall security and trustworthiness of systems relying on PostgreSQL.

REFERENCES

Solution Advice
  • Restrict the use of the "COPY TO/FROM PROGRAM" function to trusted users only.
  • Implement role-based access control to limit exposure to powerful database functionality.
  • Ensure database services are running with the least privilege necessary.
  • Regularly monitor and audit database logs for suspicious activity.
  • Update PostgreSQL installations to the latest version where applicable.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

CVE-2019-9193 Scanner - Remote Code Execution vulnerability in PostgreSQL | S4E