CVE-2022-21724
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.
How to fix
- 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
| Product | Affected versions | Fixed in |
|---|---|---|
| postgresql postgresql_jdbc_driver | v < 42.2.25, 42.3.0 ≤ v < 42.3.2, 42.3.2 | 42.2.25, 42.3.2 |
| fedoraproject fedora | 35 | — |
| quarkus quarkus | v < 2.7.2 | 2.7.2 |
| debian debian_linux | 9.0, 10.0, 11.0 | — |
| org.postgresql:postgresqlMaven | 9.4.1208 ≤ v < 42.2.25, 42.3.0 ≤ v < 42.3.2 | 42.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.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.