CVE-2022-26520

postgresql-jdbc: Arbitrary File Write Vulnerability

Published Mar 7, 2022 CVSS 3.1 · 9.8 Critical EPSS 3.0% KEV · Not listed
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

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-5196-1 libpgjava security update
Github GHSA Github GHSA GHSA-727h-hrw8-jg8q Path traversal in org.postgresql:postgresql
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 5:03 AM
Reserved
Mar 6, 2022, 12:00 AM
Status
Modified
Published
Mar 10, 2022, 5:47 PM
Modified
Jun 17, 2026, 4:35 AM
Severity
Moderate
Public date
Feb 1, 2022, 12:00 AM