Local data disclosure via readable temporary files
Published Nov 23, 2022 · Updated Nov 3, 2025
Information disclosure in PostgreSQL JDBC Driver allows local users to read prepared-statement data from shared temporary files. For inputs larger than 51 KB, StreamWrapper spills setText or setBytea content with File.createTempFile, which applies default Unix-readable permissions. Exploitation requires another untrusted account on the same Unix-like client host; macOS is unaffected, and the flaw permits reading but not modifying the spilled data.
Summary
What happened
Information disclosure in PostgreSQL JDBC Driver allows local users to read prepared-statement data from shared temporary files. For inputs larger than 51 KB, StreamWrapper spills setText or setBytea content with File.createTempFile, which applies default Unix-readable permissions. Exploitation requires another untrusted account on the same Unix-like client host; macOS is unaffected, and the flaw permits reading but not modifying the spilled data.
The record
- CVE
- CVE-2022-41946
- Published
- Nov 23, 2022
- Updated
- Nov 3, 2025
- Vendor
- PostgreSQL Global Development Group
- Product
- PostgreSQL JDBC Driver
- Classifications
- CWE-200, T1005
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Nov 23, 2022CVE publishedPublication date reported by the CVE source.
- Nov 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 42.2.0, < 42.2.27
- Affected versionversion=> 42.3.0, < 42.3.8
- Affected versionversion=>= 42.4.0, < 42.4.3
- Affected versionversion=>= 42.5.0, < 42.5.1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo