HIGH · 7.0

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 attack...

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

7.0

HIGH

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector
LOCAL
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH

Affected Products

VendorProductVersions
PostgresqlPostgresql Jdbc Driver< 42.2.25
FedoraprojectFedora35
QuarkusQuarkus< 2.7.2
DebianDebian Linux9.0

Related Weaknesses (CWE)

References

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.