CVE-2018-16850

Description

postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ... REFERENCING. Using a purpose-crafted trigger definition, an attacker can cause arbitrary SQL statements to run, with superuser privileges.

Category

9.8
CVSS
Severity: Critical
CVSS 3.1 •
CVSS 3.0 •
CVSS 2.0 •
EPSS 2.80% Top 15%
Vendor Advisory ubuntu.com Vendor Advisory redhat.com Vendor Advisory gentoo.org Vendor Advisory postgresql.org
Affected: The PostgreSQL Project postgresql
Published at:
Updated at:

References

Link Tags
https://usn.ubuntu.com/3818-1/ third party advisory vendor advisory
https://access.redhat.com/errata/RHSA-2018:3757 third party advisory vendor advisory
https://www.postgresql.org/about/news/1905/ release notes vendor advisory
http://www.securitytracker.com/id/1042144 third party advisory vdb entry
https://security.gentoo.org/glsa/201811-24 vendor advisory mitigation third party advisory
http://www.securityfocus.com/bid/105923 third party advisory vdb entry
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850 patch third party advisory issue tracking

Frequently Asked Questions

What is the severity of CVE-2018-16850?
CVE-2018-16850 has been scored as a critical severity vulnerability.
How to fix CVE-2018-16850?
To fix CVE-2018-16850, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2018-16850 being actively exploited in the wild?
It is possible that CVE-2018-16850 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~3% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2018-16850?
CVE-2018-16850 affects The PostgreSQL Project postgresql.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.