CVE-2022-21724

CRITICALCVSS 9.8/10EPSS 3.01%

Last modified

CVE-2022-21724 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. pgjdbc is the offical PostgreSQL JDBC Driver. A security hole was found in the jdbc driver for postgresql database while doing security research. EPSS estimates a 3.01% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
9.8/10

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

EPSS Probability
3.01%

85.7th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersionsUpdate
PostgresqlPostgresql Jdbc Driver< 42.2.25
PostgresqlPostgresql Jdbc Driver>= 42.3.0, < 42.3.2
PostgresqlPostgresql Jdbc Driver42.3.2Rc1
FedoraprojectFedora35
QuarkusQuarkus< 2.7.2
DebianDebian Linux9.0
DebianDebian Linux10.0
DebianDebian Linux11.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2022-21724?
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.
How severe is CVE-2022-21724?
CVE-2022-21724 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 3.01% probability of exploitation in the next 30 days.
How do I fix CVE-2022-21724?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-21724?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST