# CVE-2022-26520: pgjdbc Arbitrary File Write Vulnerability

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.00%, higher than 87% of CVEs (2026-12-01)
- Published: 2022-02-16T00:08:18.000Z
- Modified: 2026-09-10T03:49:16.897Z
- Also known as: GHSA-673j-qm5f-xpv8, BIT-POSTGRESQL-JDBC-DRIVER-2022-26520, GHSA-727h-hrw8-jg8q
- Assigned by: mitre

## 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 vulnerability for any application to use the pgjdbc driver with untrusted connection properties

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- org.postgresql:postgresql (Maven): from 42.1.0 before 42.3.3
- postgresql postgresql_jdbc_driver: from 42.1.0 up to 42.1.4; from 42.3.0 before 42.3.3
- debian debian_linux: 10.0; 11.0
- postgresql-jdbc-driver (Bitnami): from 42.1.0 before 42.1.5; from 42.3.0 before 42.3.3

## Every score

- GitHub: rating Medium
- GitHub: rating Low
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://jdbc.postgresql.org/documentation/changelog.html#version_42.3.3> (advisory, release-notes, vendor-advisory, web)
- <https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8> (advisory, third-party-advisory, web)
- <https://github.com/pgjdbc/pgjdbc/pull/2454/commits/017b929977b4f85795f9ad2fa5de6e80978b8ccc> (advisory, patch, third-party-advisory, web)
- <https://jdbc.postgresql.org/documentation/head/tomcat.html> (advisory, vendor-advisory, web)
- <https://www.debian.org/security/2022/dsa-5196> (advisory, third-party-advisory, vendor-advisory, web)
- <https://github.com/pgjdbc/pgjdbc/commit/f6d47034a4ce292e1a659fa00963f6f713117064> (web)
- <https://github.com/pgjdbc/pgjdbc> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-26520> (advisory, web)

## Sources

- CVE List: [CVE-2022-26520](https://www.cve.org/CVERecord?id=CVE-2022-26520), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-673j-qm5f-xpv8](https://github.com/advisories/GHSA-673j-qm5f-xpv8), CC-BY-4.0, modified 2026-09-10
- GitHub Advisory Database: [GHSA-727h-hrw8-jg8q](https://github.com/advisories/GHSA-727h-hrw8-jg8q), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-26520](https://nvd.nist.gov/vuln/detail/CVE-2022-26520), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-JDBC-DRIVER-2022-26520](https://osv.dev/vulnerability/BIT-POSTGRESQL-JDBC-DRIVER-2022-26520), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-26520 · Whole record: https://cve.day/CVE-2022-26520.json · Rebuilt by cve.day 2026-11-25T22:58:10.026Z
