External Control of File Name or Path in Postgresql JDBC Driver - #VU159533
Published: February 15, 2022 / Updated: November 6, 2026
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.