Unchecked Class Instantiation when providing Plugin Classes

Patch this weekFull system takeover over the network, no login needed.
9.8CRITICAL

CVE-2022-21724

Key Information:

Vendor

Postgresql

CVE ID
CVE ID:
CVE-2022-21724
Vendor
CVE Published:
2 February 2022

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Yes: Works over the network, no login needed
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Patch this week

Exploitation is likely. Prioritise the fix.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory β†—
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Postgresql Jdbc Driver. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Patch this week"
  • It can be exploited remotely without credentials.
  • Its CVSS severity is critical (9.8).

What is CVE-2022-21724?

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.

References

Type Confusion Vulnerability in PostgreSQL Database Software

CVE-2026-6460
PostgreSQLPostgresqlπŸ˜„πŸ‘Ύ8.8HIGH

Type Confusion Vulnerability in PostgreSQL Database Management System

CVE-2026-116331
PostgreSQLPostgresqlπŸ˜„πŸ‘Ύ8.8HIGH

Integer Wraparound Vulnerability in PostgreSQL Database Management System

CVE-2026-116328
PostgreSQLPostgresql8.8HIGH
View more Postgresql vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged
.