Bug 2064007 (CVE-2022-26520) - CVE-2022-26520 postgresql-jdbc: Arbitrary File Write Vulnerability
Summary: CVE-2022-26520 postgresql-jdbc: Arbitrary File Write Vulnerability
Alias: CVE-2022-26520
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 2068614 2073360 2073361 2073362 2073363 2073367 2073368
Blocks: 2064008
TreeView+ depends on / blocked
Reported: 2022-03-14 21:17 UTC by Patrick Del Bello
Modified: 2022-10-05 10:45 UTC (History)
58 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Postgres JDBC. This flaw allows an attacker to use a method to write arbitrary files through the connection properties settings. For example, an attacker can create an executable file under the server the application is running and make it a new part of the application or server.
Clone Of:
Last Closed: 2022-07-07 20:24:10 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:5532 0 None None None 2022-07-07 14:22:47 UTC
Red Hat Product Errata RHSA-2022:6813 0 None None None 2022-10-05 10:45:42 UTC

Description Patrick Del Bello 2022-03-14 21:17:45 UTC
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.


Comment 1 Patrick Del Bello 2022-03-25 19:31:08 UTC
Created postgresql-jdbc tracking bugs for this issue:

Affects: fedora-all [bug 2068614]

Comment 10 errata-xmlrpc 2022-07-07 14:22:43 UTC
This issue has been addressed in the following products:

  Red Hat Fuse 7.11

Via RHSA-2022:5532 https://access.redhat.com/errata/RHSA-2022:5532

Comment 11 Product Security DevOps Team 2022-07-07 20:24:06 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):


Comment 12 errata-xmlrpc 2022-10-05 10:45:39 UTC
This issue has been addressed in the following products:

  RHPAM 7.13.1 async

Via RHSA-2022:6813 https://access.redhat.com/errata/RHSA-2022:6813

Note You need to log in before you can comment on or make changes to this bug.