Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Postgresql | Postgresql Jdbc Driver | < 42.2.25 |
| Fedoraproject | Fedora | 35 |
| Quarkus | Quarkus | < 2.7.2 |
| Debian | Debian Linux | 9.0 |
Related Weaknesses (CWE)
References
- https://github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813PatchThird Party Advisory
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4ExploitThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00027.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://security.netapp.com/advisory/ntap-20220311-0005/Third Party Advisory
- https://www.debian.org/security/2022/dsa-5196Third Party Advisory
- https://github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813PatchThird Party Advisory
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4ExploitThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00027.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://security.netapp.com/advisory/ntap-20220311-0005/Third Party Advisory
- https://www.debian.org/security/2022/dsa-5196Third Party Advisory
FAQ
What is CVE-2022-21724?
CVE-2022-21724 is a vulnerability with a CVSS score of 7.0 (HIGH). 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 attack...
How severe is CVE-2022-21724?
CVE-2022-21724 has been rated HIGH with a CVSS base score of 7.0/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-21724?
Check the references section above for vendor advisories and patch information. Affected products include: Postgresql Postgresql Jdbc Driver, Fedoraproject Fedora, Quarkus Quarkus, Debian Debian Linux.