Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.postgresql/postgresql
  4. ›
  5. CVE-2022-21724

CVE-2022-21724: Remote code execution vulnerability using plugin features

February 2, 2022

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 does not verify if the class implements the expected interface before instantiating the class. This can lead to remote code execution loaded via arbitrary classes.

References

  • github.com/advisories/GHSA-v7wg-cpwc-24m4
  • github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813
  • github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4

Code Behaviors & Features

Detect and mitigate CVE-2022-21724 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 9.4.1208 before 42.2.25, all versions starting from 42.3.0 before 42.3.2

Fixed versions

  • 42.2.25
  • 42.3.2

Solution

Upgrade to versions 42.2.25, 42.3.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

maven/org.postgresql/postgresql/CVE-2022-21724.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:54 +0000.