Live threats

All CVEs / Postgresql

CVE-2022-26520Postgresql Jdbc Driver

Critical 9.8 No auth needed

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Postgresql Jdbc Driver.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
postgresqlpostgresql_jdbc_driver≥ 42.1.0 ≤ 42.1.4
postgresqlpostgresql_jdbc_driver≥ 42.3.0 < 42.3.3
debiandebian_linux10.0
debiandebian_linux11.0

Official sources

References

Links published by the sources. Open them with care.