Name | CVE-2022-26520 |
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 |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-5196-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
libpgjava (PTS) | jessie | 9.2-1002-1 | vulnerable |
stretch (security), stretch (lts), stretch | 9.4.1212-1+deb9u1 | vulnerable | |
buster (security), buster, buster (lts) | 42.2.5-2+deb10u4 | fixed | |
bullseye (security), bullseye | 42.2.15-1+deb11u1 | fixed | |
bookworm | 42.5.4-1 | fixed | |
sid, trixie | 42.7.3-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
libpgjava | source | jessie | (unfixed) | end-of-life | ||
libpgjava | source | buster | 42.2.5-2+deb10u1 | DSA-5196-1 | ||
libpgjava | source | bullseye | 42.2.15-1+deb11u1 | DSA-5196-1 | ||
libpgjava | source | (unstable) | 42.3.3-1 |
[stretch] - libpgjava <no-dsa> (Requires control over connection properties)
https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8
https://github.com/pgjdbc/pgjdbc/commit/f6d47034a4ce292e1a659fa00963f6f713117064 (REL42.3.3-rc1)