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.
CVSS Details
- CVSS 3.1 Base Score: 4.7
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade postgresql-jdbc-javadocUpgrade postgresql-jdbc | May 15, 2023 | Nov 23, 2022 |
| Alpine Linux | — | Upgrade java-postgresql-jdbc | Aug 22, 2024 | Nov 23, 2022 |
| Centos_linux | — | Upgrade rubygem-hammer_cli_foreman_ansibleUpgrade rubygem-hammer_cli_foreman_bootdiskUpgrade rubygem-hashieUpgrade rubygem-hammer_cli_foreman_discoveryUpgrade rubygem-version_gemUpgrade foreman-cliUpgrade rubygem-ffi-debuginfoUpgrade rubygem-hammer_cli_foreman_azure_rmUpgrade rubygem-clampUpgrade rubygem-hammer_cli_foreman_virt_who_configureUpgrade rubygem-hammer_cliUpgrade rubygem-domain_nameUpgrade rubygem-gssapiUpgrade rubygem-hammer_cli_foreman_tasksUpgrade rubygem-mime-typesUpgrade rubygem-powerbarUpgrade rubygem-http-acceptUpgrade rubygem-fast_gettextUpgrade satellite-cliUpgrade postgresql-jdbcUpgrade rubygem-unf_extUpgrade rubygem-amazing_printUpgrade rubygem-hammer_cli_foreman_webhooksUpgrade rubygem-ffi-debugsourceUpgrade python39-pulp_manifestUpgrade rubygem-ffiUpgrade rubygem-localeUpgrade rubygem-http-cookieUpgrade rubygem-highlineUpgrade rubygem-loggingUpgrade rubygem-unf_ext-debuginfoUpgrade rubygem-unf_ext-debugsourceUpgrade rubygem-hammer_cli_foreman_openscapUpgrade rubygem-oauthUpgrade rubygem-hammer_cli_foreman_adminUpgrade rubygem-unicode-debuginfoUpgrade rubygem-netrcUpgrade rubygem-hammer_cli_foreman_remote_executionUpgrade rubygem-snaky_hashUpgrade rubygem-multi_jsonUpgrade rubygem-hammer_cli_foremanUpgrade rubygem-unicode-display_widthUpgrade rubygem-hammer_cli_katelloUpgrade ovirt-ansible-collectionUpgrade postgresql-jdbc-javadocUpgrade rubygem-unfUpgrade rubygem-oauth-ttyUpgrade rubygem-hammer_cli_foreman_templatesUpgrade rubygem-unicode-debugsourceUpgrade rubygem-little-pluggerUpgrade rubygem-hammer_cli_foreman_googleUpgrade satellite-maintainUpgrade satellite-cloneUpgrade rubygem-jwtUpgrade rubygem-mime-types-dataUpgrade rubygem-unicodeUpgrade rubygem-rest-clientUpgrade rubygem-foreman_maintainUpgrade rubygem-apipie-bindings | Feb 17, 2023 | Nov 23, 2022 |
| Debian | — | Upgrade libpgjava | Dec 5, 2022 | Nov 23, 2022 |
| Dell Powerstore Dsa2024225 | — | Upgrade Dell PowerStoreOS to the latest version | Oct 23, 2025 | May 29, 2024 |
| Oracle_linux | — | Upgrade postgresql-jdbcUpgrade postgresql-jdbc-javadoc | May 17, 2023 | Nov 23, 2022 |
| Redhat_linux | — | Upgrade postgresql-jdbcUpgrade postgresql-jdbc-javadocNo solution exists | Feb 17, 2023 | Nov 23, 2022 |
| Rocky_linux | — | Upgrade libdb-sql-devel-debuginfoUpgrade libdb-cxx-debuginfoUpgrade libdb-sql-debuginfoUpgrade libdb-utils-debuginfoUpgrade libdb-debugsourceUpgrade libdb-debuginfoUpgrade libdb-cxx | Mar 12, 2024 | Nov 23, 2022 |
| Suse | — | Upgrade postgresql-jdbcUpgrade postgresql-jdbc-javadoc | Jan 20, 2023 | Nov 23, 2022 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub