cve.bz

CVE-2022-21724 Improper Initialization

9.8 criticalExploit referenceEPSS 3.1%Fix available

Critical (9.8). EPSS 3.1% estimated probability of exploitation activity in the next 30 days. Fixed in org.postgresql:postgresql 42.2.25, 42.3.2.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.1% (unchanged from 3.1% a week ago; 3.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-04-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-665 Improper Initialization
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-21724 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-21724?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-21724?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-21724 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresql_jdbc_driverbefore 42.2.25
postgresql:postgresql_jdbc_driverfrom 42.3.0 before 42.3.2
postgresql:postgresql_jdbc_driver42.3.2:rc1
fedoraproject:fedora35
quarkus:quarkusbefore 2.7.2
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v7wg-cpwc-24m4Mavenorg.postgresql:postgresql>=9.4.1208 <42.2.2542.2.25
GHSA-v7wg-cpwc-24m4Mavenorg.postgresql:postgresql>=42.3.0 <42.3.242.3.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libpgjava9.4.1212-1+deb9u1DLA-3018-1
Debian10libpgjava42.2.5-2+deb10u1DSA-5196-1
Debian11libpgjava42.2.15-1+deb11u1DSA-5196-1
Debian12, 13, 14libpgjava42.3.2-1DEBIAN-CVE-2022-21724
Ubuntu14.04:LTS, 16.04:LTS, Pro:18.04:LTS and 1 morelibpgjavano fix listedUBUNTU-CVE-2022-21724
SUSEManager Proxy 4.1, Manager Retail Branch Server 4.1release-notes-susemanager-proxy4.1.15-150200.3.56.1SUSE-SU-2022:2143-1
SUSEManager Server 4.1release-notes-susemanager4.1.15-150200.3.80.1SUSE-SU-2022:2143-1
SUSEManager Server Module 4.1golang-github-QubitProducts-exporter_exporter0.4.0-150200.6.12.2SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1golang-github-lusitaniae-apache_exporter0.7.0-150200.2.6.2SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1golang-github-prometheus-node_exporter1.3.0-150200.3.9.3SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1patterns-suse-manager4.1-150200.6.12.2SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1postgresql-jdbc42.2.10-150200.3.8.2SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1prometheus-exporters-formula0.9.5-150200.3.31.2SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1prometheus-formula0.3.7-150200.3.21.2SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1py27-compat-salt3000.3-150200.6.24.2SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1spacecmd4.1.18-150200.4.39.3SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1spacewalk-backend4.1.31-150200.4.50.4SUSE-SU-2022:2145-1
10 more for SUSE in the JSON and on SUSE's page.
Alpinev3.16, v3.17, v3.18 and 6 morejava-postgresql-jdbc42.2.25-r0ALPINE-CVE-2022-21724

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

According to the patch upstream the scoring of this issue has been severely reduced and is no longer considered an RCE. Therefore, the flaw has been rated as having a security impact of Moderate, and is not currently planned to be addressed in future updates of Red Hat Enterprise Linux 6, 7 and 8.

ProductPackageStateAdvisory
Red Hat build of Quarkus 2.7.5postgresqlFixed 2022-05-18RHSA-2022:4623
Red Hat Fuse 7.11jdbc-postgresqlFixed 2022-07-07RHSA-2022:5532
RHINT Service Registry 2.3.0 GAquarkus-jdbc-postgresql-deploymentFixed 2022-10-06RHSA-2022:6835
RHPAM 7.13.1 asyncjdbc-postgresqlFixed 2022-10-05RHSA-2022:6813
Red Hat Enterprise Linux 6postgresql-jdbcOut of support scope
Red Hat Enterprise Linux 7postgresql-jdbcWill not fix
Red Hat Enterprise Linux 8libreoffice:flatpak/libreofficeNot affected
Red Hat Enterprise Linux 8postgresql-jdbcWill not fix
Red Hat Enterprise Linux 9postgresql-jdbcNot affected
Red Hat Integration Camel K 1quarkus-jdbc-postgresql-deploymentAffected
Red Hat Integration Camel Quarkus 1quarkus-jdbc-postgresql-deploymentWill not fix
Red Hat Integration Service Registryquarkus-jdbc-postgresql-deploymentAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-21724.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON