Docker postgres version Vulnerability 

Issue date: 02-10-2024
Affects versions: 16.0, 15.6, 15.5, 15.4, 15.2, 15.1, 15.0, 14.7, 14.6, 14.5, 14.4, 14.3, 14.2, 14.1, 14.0

Security Issue ID

SECURITY-547

 

Affected Product Version(s)

15.6.0, 14.7.21, 16.0 (and previous patch releases)

 

Severity 

Medium

 

Description

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. This vulnerability does not allow other users to overwrite the contents of these directories or files. This is purely an information disclosure vulnerability.

CVSS v3 Base Score: 5.5

CWE-668: Exposure of Resource to Wrong Sphere

CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

CWE-377: Insecure Temporary File

Instructions

Customers are recommended to upgrade to the latest version. As of the time of writing, 14.7.22, 15.7.0, 16.1.