CVE-2022-21724

Unchecked Class Instantiation when providing Plugin Classes

High · published February 2, 2022

CVSS v3.1
7.0
EPSS
3%
Percentile
87.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.0 · HIGH
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03094 · 87.6th percentile
Published
2022-02-02T11:48Z
EPSS history
Timeline
  • 02 FEB 11:48Z
    Unchecked Class Instantiation when providing Plugin Classes
    cvelistv5