SQL injection in PostgreSQL

Published: 2018-11-12
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2018-16850
Exploitation vector Network
Public exploit N/A
Vulnerable software
Server applications / Database software

Vendor PostgreSQL Global Development Group

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) SQL injection

EUVDB-ID: #VU15796

Risk: Low


CVE-ID: CVE-2018-16850


Exploit availability:


The vulnerability allows a remote authenticated attacker to execute arbitrary SQL commands in web application database.

The vulnerability exists due to insufficient sanitization of statements involving CREATE TRIGGER REFERENCING. A remote attacker can send a specially crafted HTTP request to vulnerable script and execute arbitrary SQL commands in web application database when running the pg_upgrade utility on the database or during a pg_dump utility dump/restore cycle.

Successful exploitation of the vulnerability may allow an attacker to gain administrative access to vulnerable web application.


The vulnerability has been fixed in the versions 10.6, 11.1.

Vulnerable software versions

PostgreSQL: 10.0 - 11.0

Fixed software versions

CPE2.3 External links


Q & A

Can this vulnerability be exploited remotely?

How the attacker can exploit this vulnerability?

Is there known malware, which exploits this vulnerability?