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.
Overview
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.
- Published
- 11/23/2022
- Last modified
- 6/17/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
postgresql jdbc driver postgresql | ≥ 42.2.0, < 42.2.27 | Verify advisory | Source |
postgresql jdbc driver postgresql | ≥ 42.3.0, < 42.3.8 | Verify advisory | Source |
postgresql jdbc driver postgresql | ≥ 42.4.0, < 42.4.3 | Verify advisory | Source |
postgresql jdbc driver postgresql | 42.5.0 | Verify advisory | Source |
postgresql jdbc driver postgresql | 42.5.0 | Verify advisory The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory. | Source |
debian linux debian | 10.0 | Verify advisory | Source |
pgjdbc pgjdbc | >= 42.2.0, < 42.2.27 | Verify advisory | Source |
pgjdbc pgjdbc | > 42.3.0, < 42.3.8 | Verify advisory | Source |
pgjdbc pgjdbc | >= 42.4.0, < 42.4.3 | Verify advisory | Source |
pgjdbc pgjdbc | >= 42.5.0, < 42.5.1 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.