PT-2022-1602

CVE-2022-21724

·

Published

2022-02-02

·

Updated

2026-10-08

Description by

CVSS 2.0
10
Critical
MetricsAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions pgjdbc versions prior to the fixed version
Description A security issue was found in the pgjdbc driver for PostgreSQL databases. The driver instantiates plugin instances based on class names provided via authenticationPluginClassName, sslhostnameverifier, socketFactory, sslfactory, sslpasswordcallback connection properties. However, it does not verify if the class implements the expected interface before instantiating it, which can lead to code execution loaded via arbitrary classes. This can be exploited when an attacker controls the JDBC URL or properties.
Recommendations For pgjdbc, upgrade to a version that includes the fix for this issue. As a temporary workaround, consider restricting the use of the vulnerable connection properties authenticationPluginClassName, sslhostnameverifier, socketFactory, sslfactory, sslpasswordcallback until a patch is available. Avoid using plugins that may instantiate arbitrary classes via these properties until the issue is resolved.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-V7WG-CPWC-24M4
ALT-PU-2023-8458
ALT-PU-2023-8462
ALT-PU-2023-8463
ALT-PU-2024-16562
BIT-POSTGRESQL-JDBC-DRIVER-2022-21724
CLEANSTART-2026-ZQ49670
DLA-3018-1
DSA-5196-1
OESA-2022-1535
SUSE-SU-2022:2143-1
SUSE-SU-2022:2145-1
Found an issue in the description? Have something to add? Feel free to write us 👾