CVE-2022-21724
A public proof of concept exists; no exploitation attested.
- Published2022-02-02
- Fixed in42.3.2 · 42.2.25
- WeaknessCWE-665
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2022-02-0212:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 42.3 | ≥ 42.3.0, < 42.3.2 | 42.3.2 | NVD · OSV |
| 42.2 | < 42.2.25 | 42.2.25 | NVD · OSV |
| 42.2 | ≥ 9.4.1208, < 42.2.25 | 42.2.25 | OSV |
| 42.3 | = 42.3.2 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 9.0 | = 9.0 | no fix published | NVD |
| 10.0 | = 10.0 | no fix published | NVD |
| 11.0 | = 11.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 35.x | = 35 | no fix published | NVD |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- apache-hiveCleanStartall versions · fixed in 3.1.3-r3
- golang-github-lusitaniae-apache_exporterSUSE:Manager Server Module 4.1all versions · fixed in 0.7.0-150200.2.6.2
- golang-github-prometheus-node_exporterSUSE:Manager Server Module 4.1all versions · fixed in 1.3.0-150200.3.9.3
- golang-github-QubitProducts-exporter_exporterSUSE:Manager Server Module 4.1all versions · fixed in 0.4.0-150200.6.12.2
- java-postgresql-jdbcCleanStartall versions · fixed in 42.2.25-r0
- java-postgresql-jdbcAlpine:v3.25all versions · fixed in 42.2.25-r0
- java-postgresql-jdbcAlpine:v3.24all versions · fixed in 42.2.25-r0
- java-postgresql-jdbcAlpine:v3.23all versions · fixed in 42.2.25-r0
54 more package ranges on OSV.dev
Vendor advisories
jdbc-postgresql: Unchecked Class Instantiation when providing Plugin Classes
postgresql-jdbc as a component of Red Hat Enterprise Linux 6 · postgresql-jdbc.src as a component of Red Hat Enterprise Linux 6 · postgresql-jdbc as a component of Red Hat Enterprise Linux 7 · +8 more
Red Hat Security Advisory: Service Registry (container images) release and security update [2.3.0.GA]
Red Hat Security Advisory: Red Hat Process Automation Manager 7.13.1 security update
Red Hat Security Advisory: Red Hat Fuse 7.11.0 release and security update
Red Hat Security Advisory: Red Hat build of Quarkus 2.7.5 release and security update
Fix
- Update Postgresql postgresql jdbc driver to 42.3.2 · 42.2.25
- Vendor fix Red Hat Product Security RHSA-2022:6835 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2022:6813 · 1 productFor on-premise installations, before applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. Red Hat recommends that you halt the server by stopping the JBoss Application Server process before installing …
- Vendor fix Red Hat Product Security RHSA-2022:5532 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. Installation instructions are available from the Fuse 7.11.0 product documentation page: https://access.redhat.com/documentation/en-us/red_ha…
- Vendor fix Red Hat Product Security RHSA-2022:4623 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link for the update. You must be logged in to download the update.
- No fix available, says the vendor Red Hat Product Security CVE-2022-21724 · 2 productsAffected
- No fix planned, says the vendor Red Hat Product Security CVE-2022-21724 · 2 productsOut of support scope
Advisories and patches
- github.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2025-04-25
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2025-04-25
- CNACVSS 3.17known since 2026-10-23
- NVDCVSS 3.19.8read 2026-10-23
- NVDCVSS 2.07.5read 2026-10-23
- CISA-ADPweakness (CWE)CWE-6652025-05-05
- NVDweakness (CWE)CWE-665read 2026-10-23
- FIRST EPSSEPSS score3.2 %2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHigh2022-02-01
Identifiers
- BIT-postgresql-jdbc-driver-2022-21724same flawBitnami · Apache-2.0
- CGA-296m-53mx-cvf2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2v68-x4r6-wcr6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2vgq-wgqf-2fgqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3cwg-q477-5f96same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3frh-2qcr-4r6psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-42gm-xh69-472gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-46f7-xg2p-fp6hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4c64-42vq-vw28same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4h49-mc87-xg42same flawChainguard · CC-BY-NC-ND-4.0
- CGA-594q-xg74-q2mhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-636q-4x6w-2c96same flawChainguard · CC-BY-NC-ND-4.0
- CGA-6hrc-cv7g-pjh6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-6m8j-5j98-2wvqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7p9q-wvx2-pvc7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7vcg-j3m7-2pw3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-84vj-f8qx-c7p6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-9mr8-w8ch-c389same flawChainguard · CC-BY-NC-ND-4.0
- CGA-c69q-557m-v2hjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-c8f8-grcw-hr9msame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cgf5-gcm7-9w7jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cqpg-fr9m-pxcrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-f4gq-cc8v-v772same flawChainguard · CC-BY-NC-ND-4.0
- CGA-fggr-vhpj-25qcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-fr72-5p9h-6f39same flawChainguard · CC-BY-NC-ND-4.0
- CGA-fwh8-gqrr-h8fgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-gvp3-2x54-h2gxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hpwm-83jc-mx7jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-j34p-p737-58qvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-j3fq-5cxx-76gjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-jxv3-2h97-7h94same flawChainguard · CC-BY-NC-ND-4.0
- CGA-m5gm-9qxq-5fpmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-mm3p-rvp4-hgf9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-p52c-c7vf-w9fxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-p786-29v2-g427same flawChainguard · CC-BY-NC-ND-4.0
- CGA-pr65-fxwr-wf8vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-q7fx-4hqq-pwhmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-qgqg-vw2q-rc2hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-qj54-hrp8-8phrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-rcc3-2523-xq7vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-rrrq-f6w7-rm6rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-v844-xxjr-vq68same flawChainguard · CC-BY-NC-ND-4.0
- CGA-vc3p-c84w-vr7rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-w5wm-839r-g5p6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-wcm5-qw48-h282same flawChainguard · CC-BY-NC-ND-4.0
- CGA-x2hq-wwvm-2m22same flawChainguard · CC-BY-NC-ND-4.0
- CGA-x6v2-5x7f-79jfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-xhh4-9vcg-wcfrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-xrv5-vqrc-h3vrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-xrx2-9v73-7q8xsame flawChainguard · CC-BY-NC-ND-4.0
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2022-02-02
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-v7wg-cpwc-24m4
Frequently asked questions
What is CVE-2022-21724?
Is CVE-2022-21724 actively exploited?
What is the CVSS score for CVE-2022-21724?
Running PostgreSQL? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2024-1597same product
- CVE-2026-42198same product
- CVE-2022-26520same product
- CVE-2018-10936same product
- CVE-2022-31197same product
- CVE-2022-47015same product
- CVE-2026-134842same productpgjdbc simple query mode quotes parameters for the wrong standard_conforming_strings value
- CVE-2026-134841same productpgjdbc parses quoted text as SQL in JDBC escapes, dollar quotes and E strings
Sources for this record
- CVE Program · CVE Program Terms of Use
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-v7wg-cpwc-24m4
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0