{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-26520","id":"CVE-2022-26520","title":"pgjdbc Arbitrary File Write Vulnerability","description":"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 vul","descriptionLong":"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","published":"2022-03-07T17:00:37.000Z","updated":"2026-10-28T02:30:49.613415628Z","reserved":"2022-03-06T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.postgresql:postgresql","purl":"pkg:maven/org.postgresql/postgresql","ranges":[">=42.1.0 <42.3.3"],"fixed":["42.3.3"],"advisory":"GHSA-673j-qm5f-xpv8"}],"cwes":[],"aliases":["BIT-postgresql-jdbc-driver-2022-26520","GHSA-673j-qm5f-xpv8","GHSA-727h-hrw8-jg8q"],"references":[{"url":"https://jdbc.postgresql.org/documentation/changelog.html#version_42.3.3","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","web"]},{"url":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/pgjdbc/pgjdbc/pull/2454/commits/017b929977b4f85795f9ad2fa5de6e80978b8ccc","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","web"]},{"url":"https://jdbc.postgresql.org/documentation/head/tomcat.html","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","web"]},{"url":"https://www.debian.org/security/2022/dsa-5196","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/26xxx/CVE-2022-26520.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26520","tags":["advisory"]},{"url":"https://github.com/pgjdbc/pgjdbc/commit/f6d47034a4ce292e1a659fa00963f6f713117064","tags":["web"]},{"url":"https://github.com/pgjdbc/pgjdbc","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02999,"epssPercentile":0.87646,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-26520","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26520","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-26520","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-673j-qm5f-xpv8","ok":true,"note":"GHSA-673j-qm5f-xpv8"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-727h-hrw8-jg8q","ok":true,"note":"GHSA-727h-hrw8-jg8q"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-26520","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["postgresql"],"critical":["CVSS 9.8 in a widely used technology"],"attention":null}