External Control of File Name or Path in Postgresql JDBC Driver - #VU159533

 

External Control of File Name or Path in Postgresql JDBC Driver - #VU159533

Published: February 15, 2022 / Updated: November 6, 2026


Vulnerability identifier: #VU159533
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-73
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an unauthenticated remote attacker to write arbitrary files and potentially execute code remotely.

The vulnerability exists due to an application exposing complete JDBC URLs or connection properties without validation, allowing PostgreSQL JDBC Driver logging to use an attacker-controlled loggerFile path with loggerLevel set to DEBUG rather than an inherent security defect in the driver itself. An unauthenticated remote attacker can submit a crafted JDBC URL containing a chosen filename and JSP code to create a valid JSP file, potentially achieving remote code execution if the file is written to a writable location where a server processes it as JSP.


Affected software

Postgresql JDBC Driver

Remediation

Install security update from vendor's website.

Postgresql JDBC Driver - update to 42.3.3

External References

Related Security Bulletins