CVE-2022-26520
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
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | libpgjava | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | libpgjava | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | libpgjava | Fix pending | ||
| Ubuntu 14.04 | libpgjava | Fix pending | ||
| Debian 14 | libpgjava | Fixed | 42.3.3-1 | DEBIAN-CVE-2022-26520 |
| Debian 13 | libpgjava | Fixed | 42.3.3-1 | DEBIAN-CVE-2022-26520 |
| Debian 12 | libpgjava | Fixed | 42.3.3-1 | DEBIAN-CVE-2022-26520 |
| Red Hat Enterprise Linux 9 | postgresql-jdbc | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-jdbc | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-jdbc-javadoc | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-jdbc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-jdbc-javadoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-jdbc | Will not fix Out of support scope | ||
| Maven library | org.postgresql:postgresql | Fixed | 42.3.3 | GHSA-673j-qm5f-xpv8 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://www.debian.org/security/2022/dsa-5196 (vendor-advisory)
References
- https://jdbc.postgresql.org/documentation/changelog.html#version_42.3.3
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8
- https://github.com/pgjdbc/pgjdbc/pull/2454/commits/017b929977b4f85795f9ad2fa5de6e80978b8ccc
- https://jdbc.postgresql.org/documentation/head/tomcat.html
- https://www.debian.org/security/2022/dsa-5196
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.