Ubuntu 4.10 / 5.04 : postgresql vulnerabilities (USN-118-1)

high Nessus Plugin ID 20506

Synopsis

The remote Ubuntu host is missing one or more security-related patches.

Description

It was discovered that unprivileged users were allowed to call internal character conversion functions. However, since these functions were not designed to be safe against malicious choices of argument values, this could potentially be exploited to execute arbitrary code with the privileges of the PostgreSQL server (user 'postgres'). (CAN-2005-1409)

Another vulnerability was found in the 'tsearch2' module of postgresql-contrib. This module declared several functions as internal, although they did not accept any internal argument; this breaks the type safety of 'internal' by allowing users to construct SQL commands that invoke other functions accepting 'internal' arguments. This could eventually be exploited to crash the server, or possibly even execute arbitrary code with the privileges of the PostgreSQL server. (CAN-2005-1410)

These vulnerabilities must also be fixed in all existing databases when upgrading. The post-installation script of the updated package attempts to do this automatically; if the package installs without any error, all existing databases have been updated to be safe against above vulnerabilities. Should the installation fail, please contact the Ubuntu security team ([email protected]) immediately.

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

Solution

Update the affected packages.

Plugin Details

Severity: High

ID: 20506

File Name: ubuntu_USN-118-1.nasl

Version: 1.14

Type: local

Agent: unix

Published: 1/15/2006

Updated: 1/19/2021

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

Risk Information

VPR

Risk Factor: Medium

Score: 5.8

CVSS v2

Risk Factor: High

Base Score: 7.5

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

Vulnerability Information

CPE: p-cpe:/a:canonical:ubuntu_linux:libecpg-dev, p-cpe:/a:canonical:ubuntu_linux:libecpg4, p-cpe:/a:canonical:ubuntu_linux:libpgtcl, p-cpe:/a:canonical:ubuntu_linux:libpgtcl-dev, p-cpe:/a:canonical:ubuntu_linux:libpq3, p-cpe:/a:canonical:ubuntu_linux:postgresql, p-cpe:/a:canonical:ubuntu_linux:postgresql-client, p-cpe:/a:canonical:ubuntu_linux:postgresql-contrib, p-cpe:/a:canonical:ubuntu_linux:postgresql-dev, p-cpe:/a:canonical:ubuntu_linux:postgresql-doc, cpe:/o:canonical:ubuntu_linux:4.10, cpe:/o:canonical:ubuntu_linux:5.04

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

Patch Publication Date: 5/4/2005

Reference Information

CVE: CVE-2005-1409, CVE-2005-1410

USN: 118-1