CVE-2022-21724

High

Description

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.

SeverityHigh
CVSS7.0
Exploit probability88. percentile3.1%
ProductPostgresql Jdbc Driver
PublishedFeb 2, 2022
First seenFeb 2, 2022
Weakness typeCWE-665CWE-665

How to fix

Update
  • postgresql postgresql_jdbc_driver42.2.25, 42.3.2 or later
  • quarkus quarkus2.7.2 or later
  • org.postgresql:postgresql42.2.25, 42.3.2 or later

Affected products

ProductAffected versionsFixed in
postgresql postgresql_jdbc_driverv < 42.2.25, 42.3.0 ≤ v < 42.3.2, 42.3.242.2.25, 42.3.2
fedoraproject fedora35—
quarkus quarkusv < 2.7.22.7.2
debian debian_linux9.0, 10.0, 11.0—
org.postgresql:postgresqlMaven9.4.1208 ≤ v < 42.2.25, 42.3.0 ≤ v < 42.3.242.2.25, 42.3.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.