{"id":"CVE-2022-26520","published":"2022-03-07T17:00:37Z","modified":"2024-08-03T05:03:32Z","title":"In pgjdbc before 42.3.3, an attacker (who controls the jdbc URL or properties) can call java.util.logging.FileHandler…","vendor":null,"product":null,"tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02999,"percentile":0.87685,"provenance":"source"},"cwes":[],"references":[{"url":"https://jdbc.postgresql.org/documentation/changelog.html#version_42.3.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8","tags":["x_refsource_MISC"]},{"url":"https://github.com/pgjdbc/pgjdbc/pull/2454/commits/017b929977b4f85795f9ad2fa5de6e80978b8ccc","tags":["x_refsource_MISC"]},{"url":"https://jdbc.postgresql.org/documentation/head/tomcat.html","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2022/dsa-5196","tags":["vendor-advisory","x_refsource_DEBIAN"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":17.54}]},"affected":[{"ecosystem":"Maven","package":"org.postgresql:postgresql","vulnerableRanges":[">=42.1.0, <42.3.3"],"patched":["42.3.3"],"from":["GHSA-727h-hrw8-jg8q"],"provenance":"source"}],"summary":{"text":"The flaw is in the pgjdbc PostgreSQL JDBC driver, prior to version 42.3.3, where the loggerFile and loggerLevel connection properties cause java.util.logging.FileHandler to be invoked. An attacker who can control the JDBC URL or connection properties can use this to write to arbitrary files, for example creating an executable JSP file under a Tomcat web root. The vendor disputes this classification, stating that the issue lies in applications passing untrusted connection properties to the driver rather than in the driver itself.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:33Z"},"euvd":{"id":"EUVD-2022-1351","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-org-postgresql-postgresql-cve-2020-13692","parents":[{"from":"CVE-2020-13692","to":"CVE-2022-26520","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pgjdbc/src/main/java/org/postgresql/PGProperty.java","pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java"],"commits":["https://github.com/pgjdbc/pgjdbc/commit/14b62aca4764d496813f55a43d050b017e01eb65","https://github.com/pgjdbc/pgjdbc/commit/017b929977b4f85795f9ad2fa5de6e80978b8ccc","https://github.com/pgjdbc/pgjdbc/commit/f6d47034a4ce292e1a659fa00963f6f713117064"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2012-1618","published":"2012-10-06","fixed":"8.2","kev":false},{"cve":"CVE-2020-13692","published":"2020-06-04","fixed":"42.2.13","kev":false},{"cve":"CVE-2022-21724","published":"2022-02-02","fixed":"42.3.2","kev":false,"link":{"from":"CVE-2022-21724","to":"CVE-2022-26520","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.postgresql:postgresql","fromFixed":"42.3.2","toFixed":"42.3.3","daysApart":33}]}},{"cve":"CVE-2022-26520","published":"2022-03-07","fixed":"42.3.3","kev":false},{"cve":"CVE-2022-31197","published":"2022-08-03","fixed":"42.4.1","kev":false,"link":{"from":"CVE-2022-26520","to":"CVE-2022-31197","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.postgresql:postgresql","fromFixed":"42.3.3","toFixed":"42.3.7","daysApart":149}]}},{"cve":"CVE-2022-41946","published":"2022-11-23","fixed":"42.5.1","kev":false},{"cve":"CVE-2024-1597","published":"2024-02-19","fixed":"42.7.2","kev":false}],"package":"Maven:org.postgresql:postgresql"}}