TROYANOSYVIRUS
Back to CVEs

CVE-2022-21724

HIGH
7.0

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.

CVE Details

CVSS v3.1 Score7.0
SeverityHIGH
CVSS VectorCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack VectorLOCAL
ComplexityHIGH
Privileges RequiredLOW
User InteractionNONE
Published2/2/2022
Last Modified5/5/2025
Sourcenvd
Honeypot Sightings0

Affected Products

debian:debian_linuxfedoraproject:fedorapostgresql:postgresql_jdbc_driverquarkus:quarkus

Weaknesses (CWE)

CWE-665CWE-665

IOC Correlations

No correlations recorded

This product uses data from the NVD API but is not endorsed or certified by the NVD.