First published: Tue Feb 01 2022(Updated: )
** DISPUTED ** 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.
Credit: cve@mitre.org cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
maven/org.postgresql:postgresql | >=42.1.0<42.3.3 | 42.3.3 |
debian/libpgjava | 42.2.5-2+deb10u1 42.2.5-2+deb10u3 42.2.15-1+deb11u1 42.5.4-1 42.6.0-2 | |
Postgresql Postgresql Jdbc Driver | >=42.1.0<=42.1.4 | |
Postgresql Postgresql Jdbc Driver | >=42.3.0<42.3.3 | |
Debian Debian Linux | =10.0 | |
Debian Debian Linux | =11.0 | |
>=42.1.0<=42.1.4 | ||
>=42.3.0<42.3.3 | ||
=10.0 | ||
=11.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2022-26520 is a vulnerability found in Postgres JDBC that allows an attacker to write to arbitrary files.
The vulnerability allows an attacker who controls the jdbc URL or properties to call java.util.logging.FileHandler to write to arbitrary files through the loggerFile and loggerLevel connection properties.
The severity of CVE-2022-26520 is critical with a CVSS score of 9.8.
Versions of Postgres JDBC prior to 42.3.3 and certain versions of libpgjava and PostgreSQL JDBC Driver are affected by CVE-2022-26520.
To fix the CVE-2022-26520 vulnerability, you should update your Postgres JDBC library to version 42.3.3 or later.