cve.bz

CVE-2022-21724

9.8 criticalEPSS 3.1%

Critical (9.8). EPSS 3.1% chance of exploitation in the next 30 days. Fixed in org.postgresql:postgresql 42.2.25, 42.3.2.

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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.1% chance of exploitation in the next 30 days; higher than 87% of CVEs (scores of 2026-10-31)
CWE
CWE-665
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v7wg-cpwc-24m4Mavenorg.postgresql:postgresql>=9.4.1208 <42.2.2542.2.25
GHSA-v7wg-cpwc-24m4Mavenorg.postgresql:postgresql>=42.3.0 <42.3.242.3.2

References

Check your stackJSON