Debian dla-3218 : libpostgresql-jdbc-java - security update

medium Nessus Plugin ID 168385

Synopsis

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

Description

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

- ----------------------------------------------------------------------- Debian LTS Advisory DLA-3218-1 [email protected] https://www.debian.org/lts/security/ Utkarsh Gupta December 03, 2022 https://wiki.debian.org/LTS
- -----------------------------------------------------------------------

Package : libpgjava Version : 42.2.5-2+deb10u3 CVE ID : CVE-2022-41946

pgjdbc is an open source postgresql JDBC Driver. In affected versions a prepared statement using either `PreparedStatement.setText(int, InputStream)` or `PreparedStatemet.setBytea(int, InputStream)` will create a temporary file if the InputStream is larger than 2k. This will create a temporary file which is readable by other users on Unix like systems, but not MacOS. On Unix like systems, the system's temporary directory is shared between all users on that system. Because of this, when files and directories are written into this directory they are, by default, readable by other users on that same system.

For Debian 10 buster, this problem has been fixed in version 42.2.5-2+deb10u3.

We recommend that you upgrade your libpgjava packages.

For the detailed security status of libpgjava please refer to its security tracker page at:
https://security-tracker.debian.org/tracker/libpgjava

Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: https://wiki.debian.org/LTS

Tenable has extracted the preceding description block directly from the Debian security advisory.

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 libpostgresql-jdbc-java packages.

See Also

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

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

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

Plugin Details

Severity: Medium

ID: 168385

File Name: debian_DLA-3218.nasl

Version: 1.4

Type: local

Agent: unix

Published: 12/3/2022

Updated: 1/22/2025

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Temporal Score: 3.6

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

CVSS Score Source: CVE-2022-41946

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 5

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

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

Vulnerability Information

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

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/3/2022

Vulnerability Publication Date: 11/23/2022

Reference Information

CVE: CVE-2022-41946