> CVE-2022-41946 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2022-11-23 20:15
MODIFIED
2024-11-21 07:24
CVSS_SCORE V3
4.7
EPSS (Prob. Exploit)
0.55%
Top 53.7%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-03 OSV 🔗 2026-11-15

> 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.

> AFFECTED_PRODUCTS

Debian - Debian Linux
Version: 10.0
PostgreSQL - Postgresql Jdbc Driver
>= 42.2.0 < 42.2.27
PostgreSQL - Postgresql Jdbc Driver
>= 42.3.0 < 42.3.8
PostgreSQL - Postgresql Jdbc Driver
>= 42.4.0 < 42.4.3
PostgreSQL - Postgresql Jdbc Driver
Version: 42.5.0

> CVSS V3 METRICS

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

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Local (L)
Exploit nécessite un accès local au système
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
None
Aucune interruption de service

> GITHUB SECURITY ADVISORY

GHSA-562r-vg33-8x8h MODERATE

TemporaryFolder on unix-like systems does not limit access to created files

AFFECTED PACKAGES:
MAVEN / org.postgresql:postgresql
>= 42.3.0, < 42.3.8
Fixed in: 42.3.8
MAVEN / org.postgresql:postgresql
>= 42.5.0, < 42.5.1
Fixed in: 42.5.1
MAVEN / org.postgresql:postgresql
>= 42.4.0, < 42.4.3
Fixed in: 42.4.3
MAVEN / org.postgresql:postgresql
>= 42.2.0, < 42.2.27
Fixed in: 42.2.27

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

TemporaryFolder on unix-like systems does not limit access to created files in pgjdbc

AFFECTED PACKAGES:
Unknown / Unknown
77 versions affected
ALIASES:
BIT-postgresql-jdbc-driver-2022-41946, GHSA-562r-vg33-8x8h

> HISTORIQUE DES MODIFICATIONS

Première apparition
23/11/2022 20:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:36
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME