CVE-2022-21724

CRITICAL
Published Feb 2, 20224y ago · Modified Jun 17, 20261w ago
9.8 CVSS 3.1
Critical
Find Similar
Published Feb 2, 2022 4y ago
Last Modified Jun 17, 2026 1w ago

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 Details

Base Score
9.8
Exploitability
3.9
Impact
5.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 1

CWE-665

Affected Products 8

VendorProductVersionRange
postgresqlpostgresql_jdbc_driver* <42.2.25
postgresqlpostgresql_jdbc_driver*≥42.3.0  –  <42.3.2
postgresqlpostgresql_jdbc_driver42.3.2any
fedoraprojectfedora35any
quarkusquarkus* <2.7.2
debiandebian_linux9.0any
debiandebian_linux10.0any
debiandebian_linux11.0any

References 6

  • github.com https://github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813
    PatchThird Party Advisory
  • github.com https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4
    ExploitThird Party Advisory
  • lists.debian.org https://lists.debian.org/debian-lts-announce/2022/05/msg00027.html
    Mailing ListThird Party Advisory
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BVEO7BEFXPBVHSPYL3YKQWZI6DYXQLFS/
  • security.netapp.com https://security.netapp.com/advisory/ntap-20220311-0005/
    Third Party Advisory
  • debian.org https://www.debian.org/security/2022/dsa-5196
    Third Party Advisory

Remediation

  • github.com https://github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813
    PatchThird Party Advisory