CVE-2022-21724
Unchecked Class Instantiation when providing Plugin Classes
描述
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.
如何修補 CVE-2022-21724
要修補 CVE-2022-21724,請將受影響套件升級到下列已修補版本。
- —升級至 42.2.25 或更新版本
- —升級至 42.2.15-1+deb11u1 或更新版本
- —升級至 9.4.1212-1+deb9u1 或更新版本
- —升級至 42.2.5-2+deb10u1 或更新版本
- —升級至 42.2.25 或更新版本
CVE-2022-21724 正在被利用嗎?
低 — EPSS 為 3.0%,目前沒有觀察到大規模利用活動。
受影響套件(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 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| 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 |