CVE-2022-26520

CRITICAL9.8EPSS 1.3%

Path traversal in org.postgresql:postgresql

Published: 2/16/2022Modified: 3/16/2026
Also known as:GHSA-673j-qm5f-xpv8GHSA-727h-hrw8-jg8qBIT-postgresql-jdbc-driver-2022-26520

Description

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.

Affected packages (4)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1CRITICAL9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References (9)