CVE-2022-26520Postgresql Jdbc Driver
Critical 9.8 No auth needed
Follow: this CVE · Postgresql · Postgresql Jdbc Driver We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.7% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Mar 10, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
In pgjdbc before 42.3.3, an attacker (who controls the jdbc URL or properties) can call java.util.logging.FileHandler to write to arbitrary files through the loggerFile and loggerLevel connection properties. An example situation is that an attacker could create an executable JSP file under a Tomcat web root. NOTE: the vendor's position is that there is no pgjdbc vulnerability; instead, it is a vulnerability for any application to use the pgjdbc driver with untrusted connection properties
What to do
- Apply the vendor's security update for Postgresql Jdbc Driver.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.postgresql:postgresql |
≥ 42.1.0 < 42.3.3 |
42.3.3 |
— |
| Maven | org.postgresql:postgresql |
≥ 42.1.0 < 42.3.3 |
42.3.3 |
— |
Per OSV / GitHub Advisories (GHSA-673j-qm5f-xpv8, GHSA-727h-hrw8-jg8q). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| postgresql | postgresql_jdbc_driver | ≥ 42.1.0 ≤ 42.1.4 |
| postgresql | postgresql_jdbc_driver | ≥ 42.3.0 < 42.3.3 |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- jdbc.postgresql.org Release Notes Vendor Advisory
- jdbc.postgresql.org Vendor Advisory
- www.debian.org Third Party Advisory