Vulnerability Details : 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
Products affected by CVE-2022-26520
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
- Postgresql » Postgresql Jdbc DriverVersions from including (>=) 42.1.0 and up to, including, (<=) 42.1.4cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:*
- cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-26520
0.31%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 69 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-26520
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
References for CVE-2022-26520
-
https://www.debian.org/security/2022/dsa-5196
Debian -- Security Information -- DSA-5196-1 libpgjavaThird Party Advisory
-
https://jdbc.postgresql.org/documentation/changelog.html#version_42.3.3
PostgreSQL JDBC ChangelogRelease Notes;Vendor Advisory
-
https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8
Arbitrary File Write Vulnerability · Advisory · pgjdbc/pgjdbc · GitHubThird Party Advisory
-
https://github.com/pgjdbc/pgjdbc/pull/2454/commits/017b929977b4f85795f9ad2fa5de6e80978b8ccc
fix javadocs by davecramer · Pull Request #2454 · pgjdbc/pgjdbc · GitHubPatch;Third Party Advisory
-
https://jdbc.postgresql.org/documentation/head/tomcat.html
Tomcat setupVendor Advisory
Jump to