Improper Initialization Affecting libpgjava package, versions <9.4.1212-1+deb9u1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.95% (84th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN9-LIBPGJAVA-2404714
  • published18 Feb 2022
  • disclosed2 Feb 2022

Introduced: 2 Feb 2022

CVE-2022-21724  (opens in a new tab)
CWE-665  (opens in a new tab)

How to fix?

Upgrade Debian:9 libpgjava to version 9.4.1212-1+deb9u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libpgjava package and not the libpgjava package as distributed by Debian. See How to fix? for Debian:9 relevant fixed versions and status.

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.

CVSS Scores

version 3.1