Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2022-41946

Опубликовано: 23 нояб. 2022
Источник: redhat
CVSS3: 5.5
EPSS Низкий

Описание

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. Because certain JDK file system APIs were only added in JDK 1.7, this this fix is dependent upon the version of the JDK you are using. Java 1.7 and higher users: this vulnerability is fixed in 4.5.0. Java 1.6 and lower users: no patch is available. If you are unable to patch, or are stuck running on Java 1.6, specifying the java.io.tmpdir system environment variable to a directory that is exclusively owned by the executing user will mitigate this vulnerability.

A flaw was found in org.postgresql. This issue allows the creation of a temporary file when using PreparedStatement.setText(int, InputStream) and PreparedStatemet.setBytea(int, InputStream). This could allow a user to create an unexpected file available to all users, which could end in unexpected behavior.

Отчет

Red Hat Satellite ships a PostgreSQL JDBC Driver for Hibernate ORM framework, which is embeds into Candlepin. Although Candlepin itself doesn't make direct use of the PreparedStatement methods from the PostgreSQL JDBC Driver, Hibernate ORM does utilize these methods, potentially making framework affected. Satellite server operating in an environment with untrusted users while the driver is running are vulnerable to the flaw, however, deployments without untrusted users are considered safe. A future Satellite update should address this issue.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat build of Apicurio Registry 2jdbc-postgresqlNot affected
Red Hat Enterprise Linux 6postgresql-jdbcOut of support scope
Red Hat Enterprise Linux 7postgresql-jdbcOut of support scope
Red Hat Enterprise Linux 8libreoffice:flatpak/postgresql-jdbcWill not fix
Red Hat Enterprise Linux 9libreoffice:flatpak/postgresql-jdbcAffected
Red Hat Process Automation 7jdbc-postgresqlOut of support scope
Red Hat Virtualization 4postgresql-jdbcFix deferred
CEQ 2.13.2-1jdbc-postgresqlFixedRHSA-2023:088821.02.2023
Red Hat build of QuarkusFixedRHSA-2023:075814.02.2023
Red Hat build of Quarkus 2.7.7jdbc-postgresqlFixedRHSA-2023:100608.03.2023

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-200
Дефект:
CWE-377
https://bugzilla.redhat.com/show_bug.cgi?id=2153399postgresql-jdbc: Information leak of prepared statement data due to insecure temporary file permissions

EPSS

Процентиль: 13%
0.00044
Низкий

5.5 Medium

CVSS3

Связанные уязвимости

CVSS3: 4.7
ubuntu
больше 2 лет назад

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. Because certain JDK file system APIs were only added in JDK 1.7, this this fix is dependent upon the version of the JDK you are using. Java 1.7 and higher users: this vulnerability is fixed in 4.5.0. Java 1.6 and lower users: ...

CVSS3: 4.7
nvd
больше 2 лет назад

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. Because certain JDK file system APIs were only added in JDK 1.7, this this fix is dependent upon the version of the JDK you are using. Java 1.7 and higher users: this vulnerability is fixed in 4.5.0. Java 1.6 and lower users: no

CVSS3: 4.7
debian
больше 2 лет назад

pgjdbc is an open source postgresql JDBC Driver. In affected versions ...

suse-cvrf
больше 2 лет назад

Security update for postgresql-jdbc

suse-cvrf
больше 2 лет назад

Security update for postgresql-jdbc

EPSS

Процентиль: 13%
0.00044
Низкий

5.5 Medium

CVSS3