CVE-2022-21724
jdbc-postgresql: Unchecked Class Instantiation when providing Plugin Classes
Severidad por fuente
La etiqueta propia de Trivy es CRITICAL. Crítica según NVD, Bitnami. Más baja según GHSA (alta), Red Hat (media).
Descripción
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.
Paquetes afectados y versiones corregidas
| Fuente | Paquete | Corregido 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 y 2 más |
Mostrar las 30 entradas de 23 fuentes
| Fuente | Paquete | Corregido 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 | sin corrección indicada |
| Red Hat | postgresql-jdbc-javadoc | sin corrección indicada |
| wolfi | mariadb-10.11 | 10.11.8-r2 |
| wolfi | mariadb-10.6 | 10.6.18-r2 |
| wolfi | mariadb-11.2 | 11.2.3-r2 |
Referencias
- 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/