CVE-2022-21724

Summary

CVECVE-2022-21724
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-02-02 12:15:00 UTC
Updated2023-11-07 03:43:00 UTC
Descriptionpgjdbc 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.

Risk And Classification

Problem Types: CWE-665

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 10.0 All All All
Operating System Debian Debian Linux 11.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Fedoraproject Fedora 35 All All All
Application Postgresql Pgjdbc All All All All
Application Postgresql Postgresql Jdbc Driver All All All All
Application Postgresql Postgresql Jdbc Driver 42.3.2 rc1 All All
Application Quarkus Quarkus All All All All

References

ReferenceSourceLinkTags
[SECURITY] Fedora 35 Update: postgresql-jdbc-42.2.25-1.fc35 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Debian -- Security Information -- DSA-5196-1 libpgjava DEBIAN www.debian.org
[SECURITY] Fedora 35 Update: postgresql-jdbc-42.2.25-1.fc35 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
Merge pull request from GHSA-v7wg-cpwc-24m4 · pgjdbc/pgjdbc@f4d0ed6 · GitHub MISC github.com
CVE-2022-21724 PostgreSQL JDBC Driver Vulnerability in NetApp Products | NetApp Product Security CONFIRM security.netapp.com
Remote code execution vulnerability using plugin features · Advisory · pgjdbc/pgjdbc · GitHub CONFIRM github.com
[SECURITY] [DLA 3018-1] libpgjava security update MLIST lists.debian.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 179310 Debian Security Update for libpgjava (DLA 3018-1)
  • 180905 Debian Security Update for libpgjava (DSA 5196-1)
  • 182896 Debian Security Update for libpgjava (CVE-2022-21724)
  • 282586 Fedora Security Update for postgresql (FEDORA-2022-1151f65e9a)
  • 502489 Alpine Linux Security Update for java-postgresql-jdbc
  • 504955 Alpine Linux Security Update for java-postgresql-jdbc
  • 671898 EulerOS Security Update for postgresql-jdbc (EulerOS-SA-2022-1946)
  • 730578 Atlassian Jira Server and Data Center PostgresSQL Vulnerability (JRASERVER-73738)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report