CVE-2022-21724
CVSS v3
9.8
CRITICAL
EPSS Score
3.1 %
exploit probability, as of 2026-10-19
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for postgresql.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- org.postgresql:postgresqlMavenfrom 42.3.0 · fixed in 42.3.2
- postgresql-jdbc-driverBitnamiall versions · fixed in 42.2.25
Vendor advisories
jdbc-postgresql: Unchecked Class Instantiation when providing Plugin Classes
postgresql-jdbc as a component of Red Hat Enterprise Linux 6 · postgresql-jdbc.src as a component of Red Hat Enterprise Linux 6 · postgresql-jdbc as a component of Red Hat Enterprise Linux 7
Red Hat Security Advisory: Service Registry (container images) release and security update [2.3.0.GA]
Red Hat Security Advisory: Red Hat Process Automation Manager 7.13.1 security update
Red Hat Security Advisory: Red Hat Fuse 7.11.0 release and security update
Red Hat Security Advisory: Red Hat build of Quarkus 2.7.5 release and security update
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.
Technical details
- Published
- 2022-02-02
Frequently asked questions
What is CVE-2022-21724?
Is CVE-2022-21724 actively exploited?
What is the CVSS score for CVE-2022-21724?
Running postgresql? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.