{"api_version":"1","generated_at":"2026-04-23T01:19:41+00:00","cve":"CVE-2022-41946","urls":{"html":"https://cve.report/CVE-2022-41946","api":"https://cve.report/api/cve/CVE-2022-41946.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-41946","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-41946"},"summary":{"title":"CVE-2022-41946","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-11-23 20:15:00","updated_at":"2024-03-29 13:15:00"},"problem_types":["CWE-668"],"metrics":[],"references":[{"url":"https://github.com/pgjdbc/pgjdbc/commit/9008dc9aade6dbfe4efafcd6872ebc55f4699cf5","name":"https://github.com/pgjdbc/pgjdbc/commit/9008dc9aade6dbfe4efafcd6872ebc55f4699cf5","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-562r-vg33-8x8h · pgjdbc/pgjdbc@9008dc9 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25TY2L3RMVNOC7VAHJEAO7PTT6M6JJAD/","name":"FEDORA-2023-42d6ba9bd6","refsource":"","tags":[],"title":"[SECURITY] Fedora 37 Update: postgresql-jdbc-42.4.3-1.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00003.html","name":"[debian-lts-announce] 20221202 [SECURITY] [DLA 3218-1] libpgjava security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3218-1] libpgjava security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-562r-vg33-8x8h","name":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-562r-vg33-8x8h","refsource":"CONFIRM","tags":[],"title":"TemporaryFolder on unix-like systems does not limit access to created files · Advisory · pgjdbc/pgjdbc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/25TY2L3RMVNOC7VAHJEAO7PTT6M6JJAD/","name":"FEDORA-2023-42d6ba9bd6","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 37 Update: postgresql-jdbc-42.4.3-1.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.netapp.com/advisory/ntap-20240329-0003/","name":"https://security.netapp.com/advisory/ntap-20240329-0003/","refsource":"","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-41946","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41946","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"41946","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"41946","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql_jdbc_driver","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"41946","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql_jdbc_driver","cpe6":"42.5.0","cpe7":"-","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"41946","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql_jdbc_driver","cpe6":"42.5.0","cpe7":"rc1","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"41946","vulnerable":"1","versionEndIncluding":"42.3.8","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql_jdbc_driver","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"41946","vulnerable":"1","versionEndIncluding":"42.4.3","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql_jdbc_driver","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-41946","qid":"160607","title":"Oracle Enterprise Linux Security Update for postgresql-jdbc (ELSA-2023-2378)"},{"cve":"CVE-2022-41946","qid":"160662","title":"Oracle Enterprise Linux Security Update for postgresql-jdbc (ELSA-2023-2867)"},{"cve":"CVE-2022-41946","qid":"181285","title":"Debian Security Update for libpgjava (DLA 3218-1)"},{"cve":"CVE-2022-41946","qid":"182879","title":"Debian Security Update for libpgjava (CVE-2022-41946)"},{"cve":"CVE-2022-41946","qid":"241184","title":"Red Hat Update for red hat virtualization (RHSA-2023:0759)"},{"cve":"CVE-2022-41946","qid":"241321","title":"Red Hat Update for Satellite 6.12.3 (RHSA-2023:1630)"},{"cve":"CVE-2022-41946","qid":"241405","title":"Red Hat Update for Satellite 6.13 (RHSA-2023:2097)"},{"cve":"CVE-2022-41946","qid":"241439","title":"Red Hat Update for postgresql-jdbc (RHSA-2023:2378)"},{"cve":"CVE-2022-41946","qid":"241512","title":"Red Hat Update for postgresql-jdbc (RHSA-2023:2867)"},{"cve":"CVE-2022-41946","qid":"283608","title":"Fedora Security Update for postgresql (FEDORA-2023-42d6ba9bd6)"},{"cve":"CVE-2022-41946","qid":"378645","title":"Alibaba Cloud Linux Security Update for postgresql-jdbc (ALINUX3-SA-2023:0065)"},{"cve":"CVE-2022-41946","qid":"502872","title":"Alpine Linux Security Update for java-postgresql-jdbc"},{"cve":"CVE-2022-41946","qid":"753540","title":"SUSE Enterprise Linux Security Update for postgresql-jdbc (SUSE-SU-2023:0104-1)"},{"cve":"CVE-2022-41946","qid":"753541","title":"SUSE Enterprise Linux Security Update for postgresql-jdbc (SUSE-SU-2023:0103-1)"},{"cve":"CVE-2022-41946","qid":"941026","title":"AlmaLinux Security Update for postgresql-jdbc (ALSA-2023:2378)"},{"cve":"CVE-2022-41946","qid":"941088","title":"AlmaLinux Security Update for postgresql-jdbc (ALSA-2023:2867)"},{"cve":"CVE-2022-41946","qid":"960924","title":"Rocky Linux Security Update for Satellite (RLSA-2023:2097)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-41946","STATE":"PUBLIC","TITLE":"TemporaryFolder on unix-like systems does not limit access to created files in pgjdbc"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"pgjdbc","version":{"version_data":[{"version_value":">= 42.2.0, < 42.2.27"},{"version_value":"> 42.3.0, < 42.3.8"},{"version_value":">= 42.4.0, < 42.4.3"},{"version_value":">= 42.5.0, < 42.5.1"}]}}]},"vendor_name":"pgjdbc"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":4.7,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor"}]},{"description":[{"lang":"eng","value":"CWE-377: Insecure Temporary File"}]}]},"references":{"reference_data":[{"name":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-562r-vg33-8x8h","refsource":"CONFIRM","url":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-562r-vg33-8x8h"},{"name":"https://github.com/pgjdbc/pgjdbc/commit/9008dc9aade6dbfe4efafcd6872ebc55f4699cf5","refsource":"MISC","url":"https://github.com/pgjdbc/pgjdbc/commit/9008dc9aade6dbfe4efafcd6872ebc55f4699cf5"},{"refsource":"MLIST","name":"[debian-lts-announce] 20221202 [SECURITY] [DLA 3218-1] libpgjava security update","url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00003.html"},{"refsource":"FEDORA","name":"FEDORA-2023-42d6ba9bd6","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/25TY2L3RMVNOC7VAHJEAO7PTT6M6JJAD/"}]},"source":{"advisory":"GHSA-562r-vg33-8x8h","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-11-23 20:15:00","lastModifiedDate":"2024-03-29 13:15:00","problem_types":["CWE-668"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql_jdbc_driver:42.5.0:rc1:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql_jdbc_driver:42.5.0:-:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:*","versionStartIncluding":"42.2.0","versionEndExcluding":"42.2.27","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:*","versionStartIncluding":"42.4.0","versionEndExcluding":"42.4.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:*","versionStartIncluding":"42.3.0","versionEndExcluding":"42.3.8","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}