SB2022050206 - Multiple vulnerabilities in Postgresql JDBC Driver
Published: May 2, 2022 Updated: November 6, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 2 vulnerabilities.
1) Input validation error (CVE-ID: CVE-2022-26520)
CWE-ID: CWE-20 - Improper input validation
CVSSv4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to create arbitrary files on the system.
The vulnerability exists due to insufficient validation of user-supplied input when handling jdbc URL or its properties. A remote attacker can call java.util.logging.FileHandler to write to arbitrary files through the loggerFile and loggerLevel connection properties.
Successful exploitation of the vulnerability may allow an attacker to create and executable arbitraru JSP file under a Tomcat web root.
2) External Control of File Name or Path (CVE-ID: N/A)
CWE-ID: CWE-73 - External Control of File Name or Path
CVSSv4: 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]
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.
Remediation
Install update from vendor's website.