CVE-2022-21724
HIGH7.0EPSS 4.1%pgjdbc Does Not Check 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.
受影響套件(5)
- Bitnami/postgresql-jdbc-driverfrom 0, < 42.2.25, >= 42.3.0, < 42.3.2
- Debian/libpgjavafrom 0, < 42.2.15-1+deb11u1
- Debian/libpgjavafrom 0, < 9.4.1212-1+deb9u1
- Debian/libpgjavafrom 0, < 42.2.5-2+deb10u1
- Maven/org.postgresql:postgresql>= 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 |
參考連結(11)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-21724
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-21724
- PATCHhttps://github.com/pgjdbc/pgjdbc
- WEBhttps://github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813
- WEBhttps://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4
- WEBhttps://lists.debian.org/debian-lts-announce/2022/05/msg00027.html
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BVEO7BEFXPBVHSPYL3YKQWZI6DYXQLFS/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/BVEO7BEFXPBVHSPYL3YKQWZI6DYXQLFS
- WEBhttps://security.netapp.com/advisory/ntap-20220311-0005
- WEBhttps://security.netapp.com/advisory/ntap-20220311-0005/
- WEBhttps://www.debian.org/security/2022/dsa-5196