Skip to content

Path traversal in org.postgresql:postgresql

Low severity GitHub Reviewed Published Mar 11, 2022 to the GitHub Advisory Database • Updated Aug 3, 2023

Package

maven org.postgresql:postgresql (Maven)

Affected versions

>= 42.1.0, < 42.3.3

Patched versions

42.3.3

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.

References

Published by the National Vulnerability Database Mar 10, 2022
Published to the GitHub Advisory Database Mar 11, 2022
Reviewed Sep 8, 2022
Last updated Aug 3, 2023

Severity

Low

EPSS score

0.334%
(72nd percentile)

Weaknesses

No CWEs

CVE ID

CVE-2022-26520

GHSA ID

GHSA-727h-hrw8-jg8q

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.