CVEfocus › CVE database › CVE-2022-21724

CVE-2022-21724Unchecked Class Instantiation when providing Plugin Classes

CVSS 7.0 HighEPSS 3.0% (higher than 88% of CVEs)Published 2022-02-02Updated 2025-05-05Assigner: GitHub_M

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-665

What to do

Fixed builds are available from Alpine, Debian, Maven: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

13Fixed
4Fix pending
5Will not fix
179Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libpgjavaNot affected
vulnerable_code_not_present
Ubuntu 25.10libpgjavaNot affected
vulnerable_code_not_present
Ubuntu 24.04libpgjavaNot affected
vulnerable_code_not_present
Ubuntu 22.04libpgjavaNot affected
vulnerable_code_not_present
Ubuntu 20.04libpgjavaFix pendingUBUNTU-CVE-2022-21724
Ubuntu 18.04libpgjavaFix pendingUBUNTU-CVE-2022-21724
Ubuntu 16.04libpgjavaFix pendingUBUNTU-CVE-2022-21724
Ubuntu 14.04libpgjavaFix pendingUBUNTU-CVE-2022-21724
Debian 14libpgjavaFixed42.3.2-1DEBIAN-CVE-2022-21724
Debian 13libpgjavaFixed42.3.2-1DEBIAN-CVE-2022-21724
Debian 12libpgjavaFixed42.3.2-1DEBIAN-CVE-2022-21724
Red Hat Enterprise Linux 9postgresql-jdbcNot affected
Red Hat Enterprise Linux 8autocorr-afNot affected
Red Hat Enterprise Linux 8autocorr-bgNot affected
Red Hat Enterprise Linux 8autocorr-caNot affected
Red Hat Enterprise Linux 8autocorr-csNot affected
Red Hat Enterprise Linux 8autocorr-daNot affected
Red Hat Enterprise Linux 8autocorr-deNot affected
Red Hat Enterprise Linux 8autocorr-elNot affected
Red Hat Enterprise Linux 8autocorr-enNot affected
Red Hat Enterprise Linux 8autocorr-esNot affected
Red Hat Enterprise Linux 8autocorr-faNot affected
Red Hat Enterprise Linux 8autocorr-fiNot affected
Red Hat Enterprise Linux 8autocorr-frNot affected
Red Hat Enterprise Linux 8autocorr-gaNot affected
Red Hat Enterprise Linux 8autocorr-hrNot affected
Red Hat Enterprise Linux 8autocorr-huNot affected
Red Hat Enterprise Linux 8autocorr-isNot affected
Red Hat Enterprise Linux 8autocorr-itNot affected
Red Hat Enterprise Linux 8autocorr-jaNot affected
Red Hat Enterprise Linux 8autocorr-koNot affected
Red Hat Enterprise Linux 8autocorr-lbNot affected
Red Hat Enterprise Linux 8autocorr-ltNot affected
Red Hat Enterprise Linux 8autocorr-mnNot affected
Red Hat Enterprise Linux 8autocorr-nlNot affected
Red Hat Enterprise Linux 8autocorr-plNot affected
Red Hat Enterprise Linux 8autocorr-ptNot affected
Red Hat Enterprise Linux 8autocorr-roNot affected
Red Hat Enterprise Linux 8autocorr-ruNot affected
Red Hat Enterprise Linux 8autocorr-skNot affected
Red Hat Enterprise Linux 8autocorr-slNot affected
Red Hat Enterprise Linux 8autocorr-srNot affected
Red Hat Enterprise Linux 8autocorr-svNot affected
Red Hat Enterprise Linux 8autocorr-trNot affected
Red Hat Enterprise Linux 8autocorr-viNot affected
Red Hat Enterprise Linux 8autocorr-zhNot affected
Red Hat Enterprise Linux 8libreofficeNot affected
Red Hat Enterprise Linux 8libreoffice-baseNot affected
Red Hat Enterprise Linux 8libreoffice-calcNot affected
Red Hat Enterprise Linux 8libreoffice-coreNot affected
Red Hat Enterprise Linux 8libreoffice-dataNot affected
Red Hat Enterprise Linux 8libreoffice-drawNot affected
Red Hat Enterprise Linux 8libreoffice-emailmergeNot affected
Red Hat Enterprise Linux 8libreoffice-filtersNot affected
Red Hat Enterprise Linux 8libreoffice-gdb-debug-supportNot affected
Red Hat Enterprise Linux 8libreoffice-graphicfilterNot affected
Red Hat Enterprise Linux 8libreoffice-gtk2Not affected
Red Hat Enterprise Linux 8libreoffice-gtk3Not affected
Red Hat Enterprise Linux 8libreoffice-help-arNot affected
Red Hat Enterprise Linux 8libreoffice-help-bgNot affected
Red Hat Enterprise Linux 8libreoffice-help-bnNot affected
Red Hat Enterprise Linux 8libreoffice-help-caNot affected
Red Hat Enterprise Linux 8libreoffice-help-csNot affected
Red Hat Enterprise Linux 8libreoffice-help-daNot affected
Red Hat Enterprise Linux 8libreoffice-help-deNot affected
Red Hat Enterprise Linux 8libreoffice-help-dzNot affected
Red Hat Enterprise Linux 8libreoffice-help-elNot affected
Red Hat Enterprise Linux 8libreoffice-help-enNot affected
Red Hat Enterprise Linux 8libreoffice-help-esNot affected
Red Hat Enterprise Linux 8libreoffice-help-etNot affected
Red Hat Enterprise Linux 8libreoffice-help-euNot affected
Red Hat Enterprise Linux 8libreoffice-help-fiNot affected
Red Hat Enterprise Linux 8libreoffice-help-frNot affected
Red Hat Enterprise Linux 8libreoffice-help-glNot affected
Red Hat Enterprise Linux 8libreoffice-help-guNot affected
Red Hat Enterprise Linux 8libreoffice-help-heNot affected
Red Hat Enterprise Linux 8libreoffice-help-hiNot affected
Red Hat Enterprise Linux 8libreoffice-help-hrNot affected
Red Hat Enterprise Linux 8libreoffice-help-huNot affected
Red Hat Enterprise Linux 8libreoffice-help-idNot affected
Red Hat Enterprise Linux 8libreoffice-help-itNot affected
Red Hat Enterprise Linux 8libreoffice-help-jaNot affected
Red Hat Enterprise Linux 8libreoffice-help-koNot affected
Red Hat Enterprise Linux 8libreoffice-help-ltNot affected
Red Hat Enterprise Linux 8libreoffice-help-lvNot affected
Red Hat Enterprise Linux 8libreoffice-help-nbNot affected
Red Hat Enterprise Linux 8libreoffice-help-nlNot affected
Red Hat Enterprise Linux 8libreoffice-help-nnNot affected
Red Hat Enterprise Linux 8libreoffice-help-plNot affected
Red Hat Enterprise Linux 8libreoffice-help-pt-BRNot affected
Red Hat Enterprise Linux 8libreoffice-help-pt-PTNot affected
Red Hat Enterprise Linux 8libreoffice-help-roNot affected
Red Hat Enterprise Linux 8libreoffice-help-ruNot affected
Red Hat Enterprise Linux 8libreoffice-help-siNot affected
Red Hat Enterprise Linux 8libreoffice-help-skNot affected
Red Hat Enterprise Linux 8libreoffice-help-slNot affected
Red Hat Enterprise Linux 8libreoffice-help-svNot affected
Red Hat Enterprise Linux 8libreoffice-help-taNot affected
Red Hat Enterprise Linux 8libreoffice-help-trNot affected
Red Hat Enterprise Linux 8libreoffice-help-ukNot affected
Red Hat Enterprise Linux 8libreoffice-help-zh-HansNot affected
Red Hat Enterprise Linux 8libreoffice-help-zh-HantNot affected
Red Hat Enterprise Linux 8libreoffice-impressNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-afNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-arNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-asNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-bgNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-bnNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-brNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-caNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-csNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-cyNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-daNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-deNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-dzNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-elNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-enNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-esNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-etNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-euNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-faNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-fiNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-frNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-gaNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-glNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-guNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-heNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-hiNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-hrNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-huNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-idNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-itNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-jaNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-kkNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-knNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-koNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-ltNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-lvNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-maiNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-mlNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-mrNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-nbNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-nlNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-nnNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-nrNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-nsoNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-orNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-paNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-plNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-pt-BRNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-pt-PTNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-roNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-ruNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-siNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-skNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-slNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-srNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-ssNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-stNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-svNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-taNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-teNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-thNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-tnNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-trNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-tsNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-ukNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-veNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-xhNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-zh-HansNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-zh-HantNot affected
Red Hat Enterprise Linux 8libreoffice-langpack-zuNot affected
Red Hat Enterprise Linux 8libreoffice-mathNot affected
Red Hat Enterprise Linux 8libreoffice-ogltransNot affected
Red Hat Enterprise Linux 8libreoffice-opensymbol-fontsNot affected
Red Hat Enterprise Linux 8libreoffice-pdfimportNot affected
Red Hat Enterprise Linux 8libreoffice-pyunoNot affected
Red Hat Enterprise Linux 8libreoffice-sdkNot affected
Red Hat Enterprise Linux 8libreoffice-sdk-docNot affected
Red Hat Enterprise Linux 8libreoffice-ureNot affected
Red Hat Enterprise Linux 8libreoffice-ure-commonNot affected
Red Hat Enterprise Linux 8libreoffice-wiki-publisherNot affected
Red Hat Enterprise Linux 8libreoffice-writerNot affected
Red Hat Enterprise Linux 8libreoffice-x11Not affected
Red Hat Enterprise Linux 8libreoffice-xsltfilterNot affected
Red Hat Enterprise Linux 8libreofficekitNot affected
Red Hat Enterprise Linux 8postgresql-jdbcWill not fix
Will not fix
Red Hat Enterprise Linux 8postgresql-jdbc-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-jdbcWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-jdbc-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-jdbcWill not fix
Out of support scope
Alpine Linux 3.24java-postgresql-jdbcFixed42.2.25-r0ALPINE-CVE-2022-21724
Alpine Linux 3.23java-postgresql-jdbcFixed42.2.25-r0ALPINE-CVE-2022-21724
Alpine Linux 3.22java-postgresql-jdbcFixed42.2.25-r0ALPINE-CVE-2022-21724
Alpine Linux 3.21java-postgresql-jdbcFixed42.2.25-r0ALPINE-CVE-2022-21724
Alpine Linux 3.20java-postgresql-jdbcFixed42.2.25-r0ALPINE-CVE-2022-21724
Alpine Linux 3.19java-postgresql-jdbcFixed42.2.25-r0ALPINE-CVE-2022-21724
Alpine Linux 3.18java-postgresql-jdbcFixed42.2.25-r0ALPINE-CVE-2022-21724
Alpine Linux 3.17java-postgresql-jdbcFixed42.2.25-r0ALPINE-CVE-2022-21724
Alpine Linux 3.16java-postgresql-jdbcFixed42.2.25-r0ALPINE-CVE-2022-21724
Maven libraryorg.postgresql:postgresqlFixed42.3.2GHSA-v7wg-cpwc-24m4

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.