PostgreSQL 9.3.x < 9.3.25 / 9.4.x < 9.4.20 / 9.5.x < 9.5.15 / 9.6.x < 9.6.11 / 10.x < 10.6 / 11.x < 11.1 SQL injection

critical Nessus Plugin ID 118936

Synopsis

The remote database server is affected by an SQL injection vulnerability.

Description

The version of PostgreSQL installed on the remote host is 9.3.x prior to 9.3.25, 9.4.x prior to 9.4.20, 9.5.x prior to 9.5.15, 9.6.x prior to 9.6.11, 10.x prior to 10.6, or 11.x prior to 11.1.
It is, therefore, affected by following vulnerability:

- An SQL injection (SQLi) vulnerability exists in pg_upgrade and pg_dump via CREATE TRIGGER ... REFERENCING. An authenticated, remote attacker can exploit this to execute arbitrary SQL statements with superuser privileges.

Solution

Upgrade to PostgreSQL version 9.3.25 / 9.4.20 / 9.5.15 / 9.6.11 / 10.6 / 11.1 or later.

See Also

https://www.postgresql.org/about/news/1905/

https://www.postgresql.org/docs/current/release-9-3-25.html

https://www.postgresql.org/docs/current/release-9-4-20.html

https://www.postgresql.org/docs/current/release-9-5-15.html

https://www.postgresql.org/docs/current/release-9-6-11.html

https://www.postgresql.org/docs/current/release-10-6.html

https://www.postgresql.org/docs/current/release-11-1.html

Plugin Details

Severity: Critical

ID: 118936

File Name: postgresql_20181108.nasl

Version: 1.15

Type: local

Agent: windows, macosx, unix

Family: Databases

Published: 11/14/2018

Updated: 10/23/2024

Configuration: Enable thorough checks

Supported Sensors: Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2018-16850

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:postgresql:postgresql

Exploit Ease: No known exploits are available

Patch Publication Date: 11/8/2018

Vulnerability Publication Date: 11/8/2018

Reference Information

CVE: CVE-2018-16850

BID: 105923