SQL injection in PostgreSQL - CVE-2018-16850
Published: November 9, 2018 / Updated: November 12, 2018
Vulnerability details
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.
Affected software
Gentoo Linux
Red Hat Enterprise Linux for x86_64
Opensuse
Ubuntu
BIG-IQ
postgresql (Alpine package)
postgresql-10 (Ubuntu package)
How to mitigate CVE-2018-16850
postgresql (Alpine package) - update to 11.1-r0
postgresql-10 (Ubuntu package) - addressed in versions 10.6-0ubuntu0.18.04.1, 10.6-0ubuntu0.18.10.1
External References
Related Security Bulletins
- SQL injection in PostgreSQL
- OpenSUSE Linux update for postgresql10
- Gentoo update for PostgreSQL
- Red Hat update for postgresql
- OpenSUSE Linux update for postgresql10
- SQL injection in postgresql (Alpine package)
- SQL injection in F5 BIG-IQ Centralized Management PostgreSQL component
- Ubuntu update for postgresql-10