Debian DLA-2478-1 : postgresql-9.6 security update

high Nessus Plugin ID 143461


The remote Debian host is missing a security update.


Several vulnerabilities have been found in the PostgreSQL database system.


Peter Eisentraut found that database reconnections may drop options from the original connection, such as encryption, which could lead to information disclosure or a man-in-the-middle attack.


Etienne Stalmans reported that a user with permissions to create non-temporary objects in an schema can execute arbitrary SQL functions as a superuser.


Nick Cleaton found that the \gset command modified variables that control the psql behaviour, which could result in a compromised or malicious server executing arbitrary code in the user session.

For Debian 9 stretch, these problems have been fixed in version 9.6.20-0+deb9u1.

We recommend that you upgrade your postgresql-9.6 packages.

For the detailed security status of postgresql-9.6 please refer to its security tracker page at:

NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.


Upgrade the affected packages.

See Also

Plugin Details

Severity: High

ID: 143461

File Name: debian_DLA-2478.nasl

Version: 1.8

Type: local

Agent: unix

Published: 12/3/2020

Updated: 5/12/2022

Supported Sensors: Frictionless Assessment Agent, Nessus Agent

Risk Information


Risk Factor: Medium

Score: 6.7


Risk Factor: High

Base Score: 7.6

Temporal Score: 5.6

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

Temporal Vector: CVSS2#E:U/RL:OF/RC:C

CVSS Score Source: CVE-2020-25696


Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/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:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:libecpg-compat3:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:libecpg-dev:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:libecpg6:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:libpgtypes3:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:libpq-dev:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:libpq5:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:postgresql-9.6:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:postgresql-9.6-dbg:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:postgresql-client-9.6:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:postgresql-contrib-9.6:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:postgresql-doc-9.6:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:postgresql-plperl-9.6:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:postgresql-plpython-9.6:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:postgresql-plpython3-9.6:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:postgresql-pltcl-9.6:*:*:*:*:*:*:*, p-cpe:2.3:a:debian:debian_linux:postgresql-server-dev-9.6:*:*:*:*:*:*:*

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 12/2/2020

Vulnerability Publication Date: 11/16/2020

Reference Information

CVE: CVE-2020-25695, CVE-2020-25694, CVE-2020-25696

IAVB: 2020-B-0069-S