PreparedStatement.setText(int, InputStream) and PreparedStatemet.setBytea(int, InputStream) will create a temporary file if the InputStream is larger than 51k In affected versions a prepared statement using either `PreparedStatement.setText(int, InputStream)` or `PreparedStatemet.setBytea(int, InputStream)` will create a temporary file if the InputStream is larger than 2k. This will create a temporary file which is readable by other users on Unix like systems, but not MacOS.
Created openas2 tracking bugs for this issue: Affects: fedora-all [bug 2153420]
pgjdbc is an open source postgresql JDBC Driver. In affected versions a prepared statement using either `PreparedStatement.setText(int, InputStream)` or `PreparedStatemet.setBytea(int, InputStream)` will create a temporary file if the InputStream is larger than 2k. This will create a temporary file which is readable by other users on Unix like systems, but not MacOS. On Unix like systems, the system's temporary directory is shared between all users on that system. Because of this, when files and directories are written into this directory they are, by default, readable by other users on that same system. This vulnerability does not allow other users to overwrite the contents of these directories or files. This is purely an information disclosure vulnerability. Because certain JDK file system APIs were only added in JDK 1.7, this this fix is dependent upon the version of the JDK you are using. Java 1.7 and higher users: this vulnerability is fixed in 4.5.0. Java 1.6 and lower users: no patch is available. If you are unable to patch, or are stuck running on Java 1.6, specifying the java.io.tmpdir system environment variable to a directory that is exclusively owned by the executing user will mitigate this vulnerability. https://github.com/pgjdbc/pgjdbc/commit/9008dc9aade6dbfe4efafcd6872ebc55f4699cf5 https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-562r-vg33-8x8h https://lists.debian.org/debian-lts-announce/2022/12/msg00003.html
Created postgresql-jdbc tracking bugs for this issue: Affects: fedora-all [bug 2153433]
This issue has been addressed in the following products: Red Hat build of Quarkus Via RHSA-2023:0758 https://access.redhat.com/errata/RHSA-2023:0758
This issue has been addressed in the following products: Red Hat Virtualization Engine 4.4 Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 Red Hat Virtualization 4 Tools for Red Hat Enterprise Linux 8 Via RHSA-2023:0759 https://access.redhat.com/errata/RHSA-2023:0759
This issue has been addressed in the following products: CEQ 2.13.2-1 Via RHSA-2023:0888 https://access.redhat.com/errata/RHSA-2023:0888
This issue has been addressed in the following products: Red Hat build of Quarkus 2.7.7 Via RHSA-2023:1006 https://access.redhat.com/errata/RHSA-2023:1006
This issue has been addressed in the following products: RHINT Camel-Q 2.7-1 Via RHSA-2023:1177 https://access.redhat.com/errata/RHSA-2023:1177
This issue has been addressed in the following products: Red Hat Satellite 6.12 for RHEL 8 Via RHSA-2023:1630 https://access.redhat.com/errata/RHSA-2023:1630
This issue has been addressed in the following products: RHINT Debezium 2.1.4 Via RHSA-2023:1815 https://access.redhat.com/errata/RHSA-2023:1815
This issue has been addressed in the following products: Red Hat Satellite 6.13 for RHEL 8 Via RHSA-2023:2097 https://access.redhat.com/errata/RHSA-2023:2097
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2023:2378 https://access.redhat.com/errata/RHSA-2023:2378
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2023:2867 https://access.redhat.com/errata/RHSA-2023:2867
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2022-41946
This issue has been addressed in the following products: RHINT Camel-K-1.10.1 Via RHSA-2023:3906 https://access.redhat.com/errata/RHSA-2023:3906
This issue has been addressed in the following products: Red Hat Fuse 7.12 Via RHSA-2023:3954 https://access.redhat.com/errata/RHSA-2023:3954