CVE-2022-41946

Published on: Not Yet Published

Last Modified on: 12/03/2022 01:06:38 AM UTC

CVE-2022-41946 - advisory for GHSA-562r-vg33-8x8h

Source: Mitre Source: NIST CVE.ORG Print: PDF PDF
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Certain versions of Postgresql Jdbc Driver from Postgresql contain the following vulnerability:

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.

  • CVE-2022-41946 has been assigned by URL Logo [email protected] to track the vulnerability - currently rated as MEDIUM severity.
  • Affected Vendor/Software: URL Logo pgjdbc - pgjdbc version >= 42.2.0, < 42.2.27
  • Affected Vendor/Software: URL Logo pgjdbc - pgjdbc version > 42.3.0, < 42.3.8
  • Affected Vendor/Software: URL Logo pgjdbc - pgjdbc version >= 42.4.0, < 42.4.3
  • Affected Vendor/Software: URL Logo pgjdbc - pgjdbc version >= 42.5.0, < 42.5.1

CVSS3 Score: 5.5 - MEDIUM

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
LOCAL LOW LOW NONE
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
UNCHANGED HIGH NONE NONE

CVE References

Description Tags Link
Merge pull request from GHSA-562r-vg33-8x8h · pgjdbc/[email protected] · GitHub github.com
text/html
URL Logo MISC github.com/pgjdbc/pgjdbc/commit/9008dc9aade6dbfe4efafcd6872ebc55f4699cf5
TemporaryFolder on unix-like systems does not limit access to created files · Advisory · pgjdbc/pgjdbc · GitHub github.com
text/html
URL Logo CONFIRM github.com/pgjdbc/pgjdbc/security/advisories/GHSA-562r-vg33-8x8h
[SECURITY] [DLA 3218-1] libpgjava security update lists.debian.org
text/html
URL Logo MLIST [debian-lts-announce] 20221202 [SECURITY] [DLA 3218-1] libpgjava security update

Related QID Numbers

  • 181285 Debian Security Update for libpgjava (DLA 3218-1)

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
ApplicationPostgresqlPostgresql Jdbc DriverAllAllAllAll
ApplicationPostgresqlPostgresql Jdbc Driver42.5.0-AllAll
ApplicationPostgresqlPostgresql Jdbc Driver42.5.0rc1AllAll
ApplicationPostgresqlPostgresql Jdbc DriverAllAllAllAll
ApplicationPostgresqlPostgresql Jdbc DriverAllAllAllAll
  • cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:*:
  • cpe:2.3:a:postgresql:postgresql_jdbc_driver:42.5.0:-:*:*:*:*:*:*:
  • cpe:2.3:a:postgresql:postgresql_jdbc_driver:42.5.0:rc1:*:*:*:*:*:*:
  • cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:*:
  • cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:*:

Social Mentions

Source Title Posted (UTC)
Twitter Icon @PostgreSQL News: PostgreSQL JDBC 42.5.1, 42.4.3, 42.3.8, 42.2.27.jre7 Security update for CVE-2022-41946 postgresql.org/about/news/pos… 2022-11-23 17:30:03
Twitter Icon @dev_talk PostgreSQL JDBC 42.5.1, 42.4.3, 42.3.8, 42.2.27.jre7 Security update for CVE-2022-41946 forum.devtalk.com/t/84177twitter.com/i/web/status/1… 2022-11-23 18:05:34
Twitter Icon @CVEreport CVE-2022-41946 : pgjdbc is an open source postgresql JDBC Driver. In affected versions a prepared statement using e… twitter.com/i/web/status/1… 2022-11-23 20:04:25
Reddit Logo Icon /r/netcve CVE-2022-41946 2022-11-23 20:38:42
© CVE.report 2022 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report