Debian DLA-3018-1 : libpgjava - LTS security update

critical Nessus Plugin ID 161433

Synopsis

The remote Debian host is missing a security-related update.

Description

The remote Debian 9 host has packages installed that are affected by a vulnerability as referenced in the dla-3018 advisory.

- pgjdbc is the offical PostgreSQL JDBC Driver. A security hole was found in the jdbc driver for postgresql database while doing security research. The system using the postgresql library will be attacked when attacker control the jdbc url or properties. pgjdbc instantiates plugin instances based on class names provided via `authenticationPluginClassName`, `sslhostnameverifier`, `socketFactory`, `sslfactory`, `sslpasswordcallback` connection properties. However, the driver did not verify if the class implements the expected interface before instantiating the class. This can lead to code execution loaded via arbitrary classes. Users using plugins are advised to upgrade. There are no known workarounds for this issue. (CVE-2022-21724)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade the libpgjava packages.

For Debian 9 stretch, this problem has been fixed in version 9.4.1212-1+deb9u1.

See Also

https://security-tracker.debian.org/tracker/source-package/libpgjava

https://www.debian.org/lts/security/2022/dla-3018

https://security-tracker.debian.org/tracker/CVE-2022-21724

https://packages.debian.org/source/stretch/libpgjava

Plugin Details

Severity: Critical

ID: 161433

File Name: debian_DLA-3018.nasl

Version: 1.2

Type: local

Agent: unix

Published: 5/23/2022

Updated: 5/23/2022

Supported Sensors: Frictionless Assessment Agent, Nessus Agent

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

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

CVSS Score Source: CVE-2022-21724

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: E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:libpostgresql-jdbc-java, p-cpe:/a:debian:debian_linux:libpostgresql-jdbc-java-doc, cpe:/o:debian:debian_linux:9.0

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

Exploit Ease: No known exploits are available

Patch Publication Date: 5/20/2022

Vulnerability Publication Date: 2/2/2022

Reference Information

CVE: CVE-2022-21724