Security advisory
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
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-26520
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 03:40 UTC · Revision 1
Source evidence
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
osv:CVE-2022-26520
Complete source record
{
"id": "f18b6697fe23e58d05a8d054968e8927fb22a4efbc441598012d2570d4fa1007",
"url": "https://osv.dev/vulnerability/CVE-2022-26520",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2022-26520",
"summary": "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",
"evidence": "osv:CVE-2022-26520",
"products": [],
"severity": "unknown",
"structured": {
"id": "CVE-2022-26520",
"aliases": [
"BIT-postgresql-jdbc-driver-2022-26520",
"CVE-2022-26520",
"GHSA-673j-qm5f-xpv8",
"GHSA-727h-hrw8-jg8q"
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/pgjdbc/pgjdbc",
"type": "GIT",
"events": [
{
"introduced": "95e06e744ea3b9f4ff7de856d227d64fba32e45e"
},
{
"last_affected": "32fb99e7a8a583e057a9f59e8e5bac1571701233"
},
{
"introduced": "6d93eb817f334b383d2c8716a50d8c1255e24236"
},
{
"fixed": "9effea487dca529dc5cb0e71600a8c6509819c56"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "42.1.0"
},
{
"last_affected": "42.1.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "42.3.0"
},
{
"fixed": "42.3.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"REL42.3.2-rc2",
"REL42.3.2",
"REL42.3.1-rc2",
"REL42.3.1",
"REL42.3.1-rc1",
"REL42.3.0-rc2",
"REL42.3.0",
"REL42.1.4",
"REL42.1.3",
"REL42.1.2",
"REL42.1.1",
"REL42.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-26520.json"
}
}
],
"modified": "2026-10-28T02:30:49.613415628Z",
"provider": "osv",
"references": [
"https://github.com/pgjdbc/pgjdbc/pull/2454/commits/017b929977b4f85795f9ad2fa5de6e80978b8ccc",
"https://jdbc.postgresql.org/documentation/changelog.html#version_42.3.3",
"https://jdbc.postgresql.org/documentation/head/tomcat.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/26xxx/CVE-2022-26520.json",
"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8",
"https://nvd.nist.gov/vuln/detail/CVE-2022-26520",
"https://www.debian.org/security/2022/dsa-5196"
],
"provider_metadata": {
"isDisputed": true,
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/26xxx/CVE-2022-26520.json"
}
},
"related_cves": [
{
"value": "CVE-2022-26520",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 517835,
"published_at": "2022-03-07T17:00:37+00:00"
}