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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-02-02 · Modified: 2025-05-05
- Aliases: UBUNTU-CVE-2022-21724, DEBIAN-CVE-2022-21724, DLA-3018-1, CGA-296m-53mx-cvf2, CGA-2v68-x4r6-wcr6, CGA-2vgq-wgqf-2fgq, CGA-3cwg-q477-5f96, CGA-3frh-2qcr-4r6p, CGA-42gm-xh69-472g, CGA-46f7-xg2p-fp6h, CGA-4c64-42vq-vw28, CGA-4h49-mc87-xg42, CGA-594q-xg74-q2mh, CGA-636q-4x6w-2c96, CGA-6hrc-cv7g-pjh6, CGA-6m8j-5j98-2wvq, CGA-7p9q-wvx2-pvc7, CGA-84vj-f8qx-c7p6, CGA-9mr8-w8ch-c389, CGA-c69q-557m-v2hj, CGA-c8f8-grcw-hr9m, CGA-cgf5-gcm7-9w7j, CGA-cqpg-fr9m-pxcr, CGA-f4gq-cc8v-v772, CGA-fggr-vhpj-25qc, CGA-fr72-5p9h-6f39, CGA-gvp3-2x54-h2gx, CGA-hpwm-83jc-mx7j, CGA-j34p-p737-58qv, CGA-j3fq-5cxx-76gj, CGA-jxv3-2h97-7h94, CGA-m5gm-9qxq-5fpm, CGA-mm3p-rvp4-hgf9, CGA-p52c-c7vf-w9fx, CGA-p786-29v2-g427, CGA-pr65-fxwr-wf8v, CGA-q7fx-4hqq-pwhm, CGA-qgqg-vw2q-rc2h, CGA-qj54-hrp8-8phr, CGA-rcc3-2523-xq7v, CGA-rrrq-f6w7-rm6r, CGA-v844-xxjr-vq68, CGA-vc3p-c84w-vr7r, CGA-w5wm-839r-g5p6, CGA-wcm5-qw48-h282, CGA-x2hq-wwvm-2m22, CGA-x6v2-5x7f-79jf, CGA-xhh4-9vcg-wcfr, CGA-xrv5-vqrc-h3vr, CGA-xrx2-9v73-7q8x, CGA-xx55-3w52-7cqq, CGA-63j7-vh89-wc5p, BIT-postgresql-jdbc-driver-2022-21724, GHSA-v7wg-cpwc-24m4, CGA-7vcg-j3m7-2pw3, CGA-fwh8-gqrr-h8fg, ALPINE-CVE-2022-21724
- Record: https://cvemate.com/vulnerability/CVE-2022-21724 · JSON: https://cvemate.com/vulnerability/CVE-2022-21724/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 3.203%, percentile 88.547%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 57)

- alpine java-postgresql-jdbc (Alpine Linux): \< 42.2.25-r0
- chainguard mariadb-10.11 (Chainguard): \< 10.11.8-r2
- chainguard mariadb-10.11-backup (Chainguard): \< 10.11.8-r2
- chainguard mariadb-10.11-bench (Chainguard): \< 10.11.8-r2
- chainguard mariadb-10.11-client (Chainguard): \< 10.11.8-r2
- chainguard mariadb-10.11-dev (Chainguard): \< 10.11.8-r2
- chainguard mariadb-10.11-doc (Chainguard): \< 10.11.8-r2
- chainguard mariadb-10.11-embedded (Chainguard): \< 10.11.8-r2
- chainguard mariadb-10.11-oci-entrypoint (Chainguard): \< 10.11.8-r2
- chainguard mariadb-10.6 (Chainguard): \< 10.6.18-r2
- chainguard mariadb-10.6-backup (Chainguard): \< 10.6.18-r2
- chainguard mariadb-10.6-bench (Chainguard): \< 10.6.18-r2
- chainguard mariadb-10.6-client (Chainguard): \< 10.6.18-r2
- chainguard mariadb-10.6-dev (Chainguard): \< 10.6.18-r2
- chainguard mariadb-10.6-doc (Chainguard): \< 10.6.18-r2
- chainguard mariadb-10.6-embedded (Chainguard): \< 10.6.18-r2
- chainguard mariadb-10.6-oci-entrypoint (Chainguard): \< 10.6.18-r2
- chainguard mariadb-10.6-test (Chainguard): \< 10.6.18-r2
- chainguard mariadb-11.2 (Chainguard): \< 11.2.3-r2
- chainguard mariadb-11.2-backup (Chainguard): \< 11.2.3-r2

## References

- <https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4>
- <https://github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813>
- <https://security.netapp.com/advisory/ntap-20220311-0005/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BVEO7BEFXPBVHSPYL3YKQWZI6DYXQLFS/>
- <https://lists.debian.org/debian-lts-announce/2022/05/msg00027.html>
- <https://www.debian.org/security/2022/dsa-5196>
- <https://ubuntu.com/security/CVE-2022-21724>
- <https://www.cve.org/CVERecord?id=CVE-2022-21724>
- <https://security-tracker.debian.org/tracker/CVE-2022-21724>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21724.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21724>
- <https://github.com/pgjdbc/pgjdbc>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BVEO7BEFXPBVHSPYL3YKQWZI6DYXQLFS>
- <https://security.netapp.com/advisory/ntap-20220311-0005>
- <https://security.alpinelinux.org/vuln/CVE-2022-21724>

---

Data as of 2026-12-05T05:10:39.742Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
