WaratekVRT Sign in

CVE-2022-21724 PostgreSQL JDBC Driver

Affected softwarePostgreSQL JDBC Driver
Severity9.8 Critical CVSS 3.1 3 scores
Fixed in42.2.25, 42.3.2
WeaknessCWE-665
Published2 Feb 2022
Updated17 Jun 2026

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.

CWE-668CWE-74

Exploitation status

Proof of concept only

A proof of concept exists, but no reviewed exploit catalogue lists this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: poc CISA recorded that an exploit has been demonstrated. Automatable: no, technical impact: total.
  • Indexed PoC none indexed
  • EPSS 3.1% chance in 30 days

Waratek protection

Outside Waratek scope

A Java vulnerability, but not one Waratek protects. It affects only Java on a user's desktop (applets, Web Start, JavaFX, the installer), sits in a product the Waratek agent can't be installed into, or is in a package we don't expect in business applications. The decision below says which.

  • Protection none
  • Action not pursued none
  • Review human Researcher
  • Record active
Decided by Manual classification of this CVE in the legacy dataset
Finding A manual classification set this CVE's status to Outside Waratek scope, but the CVE names a tracked product.

CVSS

9.8 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 3.1 7.0 HIGH CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H security-advisories@github.com Secondary
CVSS 2.0 7.5 none AV:N/AC:L/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.postgresql:postgresql 9.4.1208 42.2.25 unbounded
org.postgresql:postgresql 42.3.0 42.3.2 unbounded

Products and versions

5 products, 10 version entries
SourceVendorProductSchemeAffected versions
nvd debian debian linux generic 9.0 · 10.0 · 11.0
nvd fedoraproject fedora generic 35
osv org.postgresql postgresql generic ≥ 9.4.1208 and < 42.2.25 · ≥ 42.3.0 and < 42.3.2
nvd postgresql postgresql jdbc driver generic < 42.2.25 · ≥ 42.3.0 and < 42.3.2 · 42.3.2:rc1
nvd quarkus quarkus generic < 2.7.2

References

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

Timeline

Published2022-02-02By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.