CVE-2022-21724
Last modified
CVE-2022-21724 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. pgjdbc is the offical PostgreSQL JDBC Driver. A security hole was found in the jdbc driver for postgresql database while doing security research. EPSS estimates a 3.01% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Postgresql | Postgresql Jdbc Driver | < 42.2.25 | — |
| Postgresql | Postgresql Jdbc Driver | >= 42.3.0, < 42.3.2 | — |
| Postgresql | Postgresql Jdbc Driver | 42.3.2 | Rc1 |
| Fedoraproject | Fedora | 35 | — |
| Quarkus | Quarkus | < 2.7.2 | — |
| Debian | Debian Linux | 9.0 | — |
| Debian | Debian Linux | 10.0 | — |
| Debian | Debian Linux | 11.0 | — |
References
- https://github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813Patch, Third Party Advisory
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4Exploit, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00027.htmlMailing List, Third Party Advisory
- 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/f4d0ed69c0b3aae8531d83d6af4c57f22312c813Patch, Third Party Advisory
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4Exploit, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00027.htmlMailing List, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220311-0005/Third Party Advisory
- https://www.debian.org/security/2022/dsa-5196Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-21724?
How severe is CVE-2022-21724?
How do I fix CVE-2022-21724?
Are you affected by CVE-2022-21724?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
