CVE-2022-26520
highPriorität · verfolgen · 40EPSS 0.030 · 87. PerzentilDEEURUUSEPSS · bewertet 2026-10-27
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
cvss
Technischer Schweregrad, 0–10. Eine Zeile je Quelle.
Basiswert 0–10 · höher = schwerwiegender · Vektor überfahren zum Auflösen⚠ Quellen uneinig · high–critical · 7.5–9.8
schwächen
Die CWE-Schwächeklassen, zu denen dies gehört.
betroffene Produkte (37)
Betroffene Produkte und Versionsbereiche.
- NetApp ActiveIQ Unified Manageralle Versionencert_bundDEcpe:/a:netapp:active_iq_unified_manager:-::~~~vmware_vsphere~~
Advisories (4)
Hersteller- und Ökosystem-Meldungen dazu.
- WID-SEC-W-2022-0607Red Hat FUSE: Mehrere SchwachstellenDeutsch2022-07-07csaf · cert_bundDE
Ein entfernter, anonymer, authentisierter oder lokaler Angreifer kann mehrere Schwachstellen in Red Hat FUSE ausnutzen, um vertrauliche Informationen offenzulegen, beliebigen Code auszuführen, einen Denial of Service Zustand herbeizuführen, Sicherheitsmaßnahmen zu umgehen, Daten und Informationen zu manipulieren und seine Privilegien zu erweitern.
- GHSA-673j-qm5f-xpv8pgjdbc Arbitrary File Write Vulnerability2022-02-16ghsa · osvUS
### Overview The connection properties for configuring a pgjdbc connection are not meant to be exposed to an unauthenticated attacker. While allowing an attacker to specify arbitrary connection properties could lead to a compromise of a system, that's a defect of an application that allows unauthenticated attackers that level of control. It's not the job of the pgjdbc driver to decide whether a given log file location is acceptable. End user applications that use the pgjdbc driver must ensure that filenames are valid and restrict unauthenticated attackers from being able to supply arbitrary values. That's not specific to the pgjdbc driver either, it would be true for any library that can write to the application's local file system. While we do not consider this a security issue with the driver, we have decided to remove the loggerFile and loggerLevel connection properties in the next release of the driver. Removal of those properties does not make exposing the JDBC URL or connection properties to an attacker safe and we continue to suggest that applications do not allow untrusted users to specify arbitrary connection properties. We are removing them to prevent misuse and their functionality can be delegated to java.util.logging. If you identify an application that allows remote users to specify a complete JDBC URL or properties without validating it's contents, we encourage you to notify the application owner as that may be a security defect in that specific application. ### Impact It is possible to specify an arbitrary filename in the loggerFileName connection parameter "jdbc:postgresql://localhost:5432/test?user=test&password=test&loggerLevel=DEBUG&loggerFile=./blah.jsp&<%Runtime.getRuntime().exec(request.getParameter(\"i\"));%>" This creates a valid JSP file which could lead to a Remote Code Execution ### Patches LoggerFile implementation has been removed and will be ignored by the driver, fixed in 42.3.3 ### Workarounds sanitize the inputs to the driver Reported by Allan Lou v3ged0ge@gmail.com
- GHSA-727h-hrw8-jg8qPath traversal in org.postgresql:postgresql2022-03-11ghsa · osvUS
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.
- BIT-postgresql-jdbc-driver-2022-265202024-03-06vendor · osvUS
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
auch bekannt als (7)
Weitere Namen und Kennungen dieser Entität.
- CNNVD-202203-1022cnnvd
- EUVD-2022-1351enisa_euvd
- BDU:2024-06539fstec_bdu
- GHSA-727h-hrw8-jg8qenisa_euvd
- BIT-postgresql-jdbc-driver-2022-26520osv
- GHSA-673j-qm5f-xpv8osv
- GHSA-727h-hrw8-jg8qosv
quellen
Welche Quellen diesen Datensatz belegen und wann.
Referenzen (21)
Externe Belege — Patches, Meldungen, Analysen.
- https://github.com/pgjdbc/pgjdbc/pull/2454/commits/017b929977b4f85795f9ad2fa5de6e80978b8ccccnnvd
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8cnnvd
- https://jdbc.postgresql.org/documentation/changelog.html#version_42.3.3cnnvd
- https://jdbc.postgresql.org/documentation/head/tomcat.htmlcnnvd
- https://packetstormsecurity.com/files/169242/Debian-Security-Advisory-5196-1.htmlcnnvd
- https://vigilance.fr/vulnerability/pgjdbc-file-write-via-FileHandler-38960cnnvd
- https://www.auscert.org.au/bulletins/ESB-2022.3025cnnvd
- https://www.auscert.org.au/bulletins/ESB-2022.3734cnnvd
Angreifer nutzen Schwachstellen wie diese gegen im Internet exponierte Dienste aus. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan