CVE-2022-21724
jdbc-postgresql: Unchecked Class Instantiation when providing Plugin Classes
Sévérité par source
Le label propre à Trivy est CRITICAL. Critique selon NVD, Bitnami. Plus basse selon GHSA (élevée), Red Hat (moyenne).
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.
Paquets affectés et versions corrigées
| Source | Paquet | Corrigé en |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | postgresql-jdbc-driver | 42.2.25, 42.3.2 |
| alpine 3.16 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.17 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.18 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.19 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.20 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.21 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.22 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.23 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.24 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine edge | java-postgresql-jdbc | 42.2.25-r0 |
| chainguard | mariadb-10.11, mariadb-10.6, mariadb-11.2 | 10.11.8-r2 et 2 autres |
Afficher les 30 entrées de 23 sources
| Source | Paquet | Corrigé en |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | postgresql-jdbc-driver | 42.2.25, 42.3.2 |
| alpine 3.16 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.17 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.18 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.19 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.20 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.21 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.22 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.23 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine 3.24 | java-postgresql-jdbc | 42.2.25-r0 |
| alpine edge | java-postgresql-jdbc | 42.2.25-r0 |
| chainguard | mariadb-10.11 | 10.11.8-r2 |
| chainguard | mariadb-10.6 | 10.6.18-r2 |
| chainguard | mariadb-11.2 | 11.2.3-r2 |
| debian 10 | libpgjava | 42.2.5-2+deb10u1 |
| debian 11 | libpgjava | 42.2.15-1+deb11u1 |
| debian 12 | libpgjava | 42.3.2-1 |
| debian 13 | libpgjava | 42.3.2-1 |
| debian 14 | libpgjava | 42.3.2-1 |
| debian 9 | libpgjava | 9.4.1212-1+deb9u1 |
| echo | libpgjava | 42.3.2-1 |
| maven::GitHub Security Advisory Maven | org.postgresql:postgresql | 42.2.25, 42.3.2 |
| minimos | mariadb-10.11 | 10.11.11-r1 |
| minimos | mariadb-10.5 | 10.5.28-r1 |
| minimos | mariadb-10.6 | 10.6.21-r1 |
| Red Hat | postgresql-jdbc | pas de correctif indiqué |
| Red Hat | postgresql-jdbc-javadoc | pas de correctif indiqué |
| wolfi | mariadb-10.11 | 10.11.8-r2 |
| wolfi | mariadb-10.6 | 10.6.18-r2 |
| wolfi | mariadb-11.2 | 11.2.3-r2 |
Références
- https://access.redhat.com/security/cve/CVE-2022-21724
- https://github.com/advisories/GHSA-v7wg-cpwc-24m4
- https://github.com/pgjdbc/pgjdbc
- https://github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4
- https://lists.debian.org/debian-lts-announce/2022/05/msg00027.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BVEO7BEFXPBVHSPYL3YKQWZI6DYXQLFS
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BVEO7BEFXPBVHSPYL3YKQWZI6DYXQLFS/