CVE & CISA-KEV Catalog

CVE-2022-41946

MEDIUM
4.7
CVSS v3
NVD

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.

How to fix

Remediation Available
libpgjavaDebian
Fixed in:42.2.15-1+deb11u2CVE-2022-41946
Fixed in:42.5.1-1CVE-2022-41946
Fixed in:42.5.1-1CVE-2022-41946
Fixed in:42.5.1-1CVE-2022-41946
postgresql-jdbcRocky
Fixed in:0:42.2.14-2.el8RHSA-2023:2867
Fixed in:0:42.2.14-2.el8RHSA-2023:2867
Fixed in:0:42.2.27-1.el9RHSA-2023:2378
Fixed in:0:42.2.27-1.el9RHSA-2023:2378
postgresql-jdbcRed Hat / RHEL
Fixed in:0:42.2.14-2.el8RHSA-2023:2867
Fixed in:0:42.2.14-2.el8RHSA-2023:2867
Fixed in:0:42.2.27-1.el9RHSA-2023:2378
Fixed in:0:42.2.27-1.el9RHSA-2023:2378
postgresql-jdbc-javadocRocky
Fixed in:0:42.2.14-2.el8RHSA-2023:2867
postgresql-jdbc-javadocRed Hat / RHEL
Fixed in:0:42.2.14-2.el8RHSA-2023:2867

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityNone
AvailabilityNone

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Exploit Intelligence

0.48%probability of exploitation in 30 days
39thpercentile

Low risk: more likely to be exploited than 39% of all known CVEs.

References

Related Vulnerabilities

Other CWE-200 (Information Exposure) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-24919High8.6100%KEV + Ransom-
CVE-2020-14181Medium5.3100%-Fix
CVE-2021-34429Medium5.399%-Fix
CVE-2018-11409Medium5.398%--
CVE-2021-41277Critical10.097%KEV-
CVE-2016-2183High7.596%-Fix

Common questions

How do I fix CVE-2022-41946?

Published advisories record a fix for 5 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2022-41946 being actively exploited?

Not that we know of. CVE-2022-41946 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.48% is the estimated probability that it will be exploited in the next 30 days. That is higher than 39% of all scored CVEs.

How severe is CVE-2022-41946?

CVE-2022-41946 has a CVSS v3 base score of 4.7, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2022-41946 affect?

Published advisories record a fix for libpgjava (Debian), postgresql-jdbc (Rocky), postgresql-jdbc (Red Hat / RHEL), postgresql-jdbc-javadoc (Rocky), and 1 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2022-41946
CVE-2022-41946 severity badge

Markdown

[![CVE-2022-41946](https://tridentstack.com/cve/badge/CVE-2022-41946.svg)](https://tridentstack.com/cve/CVE-2022-41946)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-41946"><img src="https://tridentstack.com/cve/badge/CVE-2022-41946.svg" alt="CVE-2022-41946"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-03.