CVE-2022-26520
publishedpostgresql-jdbc: Arbitrary File Write Vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | bullseye | libpgjava | Advisory build | 42.2.15-1+deb11u1 | DSA-5196-1 |
| SUSE / openSUSE | SLE-15-SP4 | postgresql-jdbcnoarch | Advisory build | 42.2.25-150400.3.3.2 | SUSE-SU-2022:2655-1 |
| Debian | buster | libpgjava | Advisory build | 42.2.5-2+deb10u1 | DSA-5196-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | postgresql-jdbcnoarch | Advisory build | 42.2.25-150400.3.3.2 | SUSE-SU-2022:2655-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | postgresql-jdbc-javadocnoarch | Advisory build | 42.2.25-150400.3.3.2 | SUSE-SU-2022:2655-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | postgresql-jdbcaarch64 | Advisory build | 42.2.25-2.1 | OPENSUSE-SU-2024:12126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | postgresql-jdbcppc64le | Advisory build | 42.2.25-2.1 | OPENSUSE-SU-2024:12126-1 |
Show 6 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | postgresql-jdbcs390x | Advisory build | 42.2.25-2.1 | OPENSUSE-SU-2024:12126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | postgresql-jdbcx86_64 | Advisory build | 42.2.25-2.1 | OPENSUSE-SU-2024:12126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | postgresql-jdbc-javadocaarch64 | Advisory build | 42.2.25-2.1 | OPENSUSE-SU-2024:12126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | postgresql-jdbc-javadocppc64le | Advisory build | 42.2.25-2.1 | OPENSUSE-SU-2024:12126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | postgresql-jdbc-javadocs390x | Advisory build | 42.2.25-2.1 | OPENSUSE-SU-2024:12126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | postgresql-jdbc-javadocx86_64 | Advisory build | 42.2.25-2.1 | OPENSUSE-SU-2024:12126-1 |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
5- https://github.com/pgjdbc/pgjdbc/pull/2454/commits/017b929977b4f85795f9ad2fa5de6e80978b8ccc
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8
- https://jdbc.postgresql.org/documentation/changelog.html#version_42.3.3
- https://jdbc.postgresql.org/documentation/head/tomcat.html
- DSA-5196 https://www.debian.org/security/2022/dsa-5196
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- fbbb8294df99fbfecf2f3e9bdb4253db36d2173fb4daf4086f2a972b1011f93f
- Ingested
- 23 Sep 2026, 07:59:13 UTC
- Source record
- Official CVE record