{"cve":"CVE-2022-21724","nvd":{"published":"2022-02-02T12:15:08.390","modified":"2026-06-17T04:26:51.687","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-665"],"references":["https://github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813","https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4","https://lists.debian.org/debian-lts-announce/2022/05/msg00027.html","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BVEO7BEFXPBVHSPYL3YKQWZI6DYXQLFS/","https://security.netapp.com/advisory/ntap-20220311-0005/"],"products":["debian:debian_linux","fedoraproject:fedora","postgresql:postgresql_jdbc_driver","quarkus:quarkus"],"source":"nvd","synced_at":"2026-10-19T21:27:20.926095847+00:00"},"epss":{"cve":"CVE-2022-21724","score":0.03094,"percentile":0.87731,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-v7wg-cpwc-24m4","url":"https://osv.dev/vulnerability/GHSA-v7wg-cpwc-24m4","summary":"pgjdbc Does Not Check Class Instantiation when providing Plugin Classes","modified":"2026-09-10T03:49:12.996698719Z","packages":[{"ecosystem":"Maven","name":"org.postgresql:postgresql","purl":"pkg:maven/org.postgresql/postgresql","ranges":[">=9.4.1208 <42.2.25"],"fixed":["42.2.25"]},{"ecosystem":"Maven","name":"org.postgresql:postgresql","purl":"pkg:maven/org.postgresql/postgresql","ranges":[">=42.3.0 <42.3.2"],"fixed":["42.3.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}