CVE-2022-21724
published high CVSS 3.1 · 7.0Unchecked Class Instantiation when providing Plugin Classes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | java-postgresql-jdbc | Fixed | 42.2.25-r0 | Package fix record |
| Debian | bullseye | libpgjava | Advisory build | 42.2.15-1+deb11u1 | DSA-5196-1 |
| Alpine Linux | v3.16 | java-postgresql-jdbc | Fixed | 42.2.25-r0 | Package fix record |
| Alpine Linux | v3.17 | java-postgresql-jdbc | Fixed | 42.2.25-r0 | Package fix record |
| Alpine Linux | v3.18 | java-postgresql-jdbc | Fixed | 42.2.25-r0 | Package fix record |
| Alpine Linux | v3.19 | java-postgresql-jdbc | Fixed | 42.2.25-r0 | Package fix record |
| Alpine Linux | v3.20 | java-postgresql-jdbc | Fixed | 42.2.25-r0 | Package fix record |
Show 6 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.21 | java-postgresql-jdbc | Fixed | 42.2.25-r0 | Package fix record |
| Alpine Linux | v3.22 | java-postgresql-jdbc | Fixed | 42.2.25-r0 | Package fix record |
| Alpine Linux | v3.23 | java-postgresql-jdbc | Fixed | 42.2.25-r0 | Package fix record |
| Alpine Linux | v3.24 | java-postgresql-jdbc | Fixed | 42.2.25-r0 | Package fix record |
| Debian | buster | libpgjava | Advisory build | 42.2.5-2+deb10u1 | DSA-5196-1 |
| Debian | stretch | libpgjava | Advisory build | 9.4.1212-1+deb9u1 | DLA-3018-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | GitHub_M · cna |
Weaknesses
2- n/a
- CWE-665 CWE-665 Improper Initialization
References
6- https://github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4
- [debian-lts-announce] 20220520 [SECURITY] [DLA 3018-1] libpgjava security update https://lists.debian.org/debian-lts-announce/2022/05/msg00027.html
- FEDORA-2022-1151f65e9a https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BVEO7BEFXPBVHSPYL3YKQWZI6DYXQLFS/
- https://security.netapp.com/advisory/ntap-20220311-0005/
- DSA-5196 https://www.debian.org/security/2022/dsa-5196
Provider assertions
3GitHub_M · cna
Unchecked Class Instantiation when providing Plugin Classes
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ad232af95a17a754b8c748ac9d00b9fbfb7e17d22c323a8fe96da081e44ab25d
- Ingested
- 23 Sep 2026, 07:58:18 UTC
- Source record
- Official CVE record