CVE-2022-21724
libpgjava - security update
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.
How to fix CVE-2022-21724
To remediate CVE-2022-21724, upgrade the affected package to a fixed version below.
- —upgrade to 42.2.25 or later
- —upgrade to 42.2.15-1+deb11u1 or later
- —upgrade to 9.4.1212-1+deb9u1 or later
- —upgrade to 42.2.5-2+deb10u1 or later
- —upgrade to 42.2.25 or later
Is CVE-2022-21724 being exploited?
Low — EPSS is 3.1%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0, < 42.2.25, >= 42.3.0, < 42.3.2
- from 0, < 42.2.15-1+deb11u1
- from 0, < 9.4.1212-1+deb9u1
- from 0, < 42.2.5-2+deb10u1
- >= 9.4.1208, < 42.2.25
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |