HomePostgresqlCVE-2022-21724

CVE-2022-21724

HIGH
7.0CVSS
Published: 2022-02-02
Updated: 2025-05-05
AI Analysis

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 Metrics

Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector
local
Complexity
high
Privileges
low
User Action
none
Scope
unchanged
Confidentiality
high
Integrity
high
Availability
high
Weaknesses
CWE-665CWE-665

Metadata

Primary Vendor
POSTGRESQL
Published
2/2/2022
Last Modified
5/5/2025
Source
NIST NVD
Note: Verify all details with official vendor sources before applying patches.

Affected Products

postgresql : postgresql_jdbc_driverpostgresql : postgresql_jdbc_driverpostgresql : postgresql_jdbc_driverfedoraproject : fedoraquarkus : quarkusdebian : debian_linuxdebian : debian_linuxdebian : debian_linux

AI-Powered Remediation

Generate remediation guidance or a C-suite brief for this vulnerability.

Executive Intelligence Brief

CVE-CVE-2022-21724 | HIGH Severity | CVEDatabase.com | CVEDatabase.com