9.8
CRITICAL
CVE-2018-16850
Postgresql SQL Injection Vulnerability
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.

INFO

Published Date :

Nov. 13, 2018, 3:29 p.m.

Last Modified :

Jan. 19, 2023, 8:11 p.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
Affected Products

The following products are affected by CVE-2018-16850 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Canonical ubuntu_linux
1 Redhat enterprise_linux
1 Postgresql postgresql
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2018-16850.

URL Resource
http://www.securityfocus.com/bid/105923 Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1042144 Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2018:3757 Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850 Issue Tracking Patch Third Party Advisory
https://security.gentoo.org/glsa/201811-24 Mitigation Third Party Advisory
https://usn.ubuntu.com/3818-1/ Third Party Advisory
https://www.postgresql.org/about/news/1905/ Release Notes Vendor Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2018-16850 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2018-16850 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Jan. 19, 2023

    Action Type Old Value New Value
    Removed CVSS V3 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed CPE Configuration OR *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 9.3.0 up to (excluding) 9.3.25 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 9.4.0 up to (excluding) 9.4.20 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 9.5.0 up to (excluding) 9.5.15 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 9.6.0 up to (excluding) 9.6.11 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 10.0 up to (excluding) 10.6 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 11.0 up to (excluding) 11.1 OR *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 10.0 up to (excluding) 10.6 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 11.0 up to (excluding) 11.1
  • CVE Modified by [email protected]

    Oct. 09, 2019

    Action Type Old Value New Value
    Added CVSS V3 Red Hat, Inc. AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
    Added CWE Red Hat, Inc. CWE-89
  • Initial Analysis by [email protected]

    Dec. 18, 2018

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:L/Au:N/C:P/I:P/A:P)
    Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://security.gentoo.org/glsa/201811-24 No Types Assigned https://security.gentoo.org/glsa/201811-24 Mitigation, Third Party Advisory
    Changed Reference Type http://www.securitytracker.com/id/1042144 No Types Assigned http://www.securitytracker.com/id/1042144 Third Party Advisory, VDB Entry
    Changed Reference Type https://access.redhat.com/errata/RHSA-2018:3757 No Types Assigned https://access.redhat.com/errata/RHSA-2018:3757 Third Party Advisory
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850 Issue Tracking, Patch, Third Party Advisory
    Changed Reference Type http://www.securityfocus.com/bid/105923 No Types Assigned http://www.securityfocus.com/bid/105923 Third Party Advisory, VDB Entry
    Changed Reference Type https://www.postgresql.org/about/news/1905/ No Types Assigned https://www.postgresql.org/about/news/1905/ Release Notes, Vendor Advisory
    Changed Reference Type https://usn.ubuntu.com/3818-1/ No Types Assigned https://usn.ubuntu.com/3818-1/ Third Party Advisory
    Added CWE CWE-89
    Added CPE Configuration OR *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 9.3.0 up to (excluding) 9.3.25 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 9.4.0 up to (excluding) 9.4.20 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 9.5.0 up to (excluding) 9.5.15 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 9.6.0 up to (excluding) 9.6.11 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 10.0 up to (excluding) 10.6 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 11.0 up to (excluding) 11.1
    Added CPE Configuration OR *cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux:7.5:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux:7.6:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Dec. 03, 2018

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/201811-24 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2018:3757 [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 15, 2018

    Action Type Old Value New Value
    Added Reference https://usn.ubuntu.com/3818-1/ [No Types Assigned]
    Added Reference http://www.securitytracker.com/id/1042144 [No Types Assigned]
    Added Reference http://www.securityfocus.com/bid/105923 [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2018-16850 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.40 }} -0.17%

score

0.74021

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability