TemporaryFolder on unix-like systems does not limit access to created files in pgjdbc
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.
- Yayın
- 23 Kas 2022
- Güncelleme
- 17 Haz 2026
- EPSS
- %0,5 · 40. yüzdelik
- CWE
- CWE-200
Takip etmek için giriş yap · Takip ettiğin kayıt KEV’e girer, istismarı çıkar ya da güncellenirse bildirim alırsın.
Rapor araçları
Aksiyon skoru
22
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 0 / 30 · %0,5
CNA ile NVD puanı
- NVD
- 5,5
- CNA · GitHub_M
- 4,7
- 0,8 puan fark
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Kaydı açan otoritenin puanı ile NVD’nin bağımsız puanı. İki puan arasındaki fark ciddiyetin tartışmalı olduğunu gösterir.
Etkilenen sistemler
| Üretici | Ürün | CPE |
|---|---|---|
| postgresql | postgresql jdbc driver | cpe:2.3:a:postgresql:postgresql_jdbc_driver |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Etkilenen sürümler
NVD sürüm aralıkları (katalogdaki ürünler için). Stack’ine sürümle eklersen eşleşme bunlarla yapılır.
- debian debian linux10.0
- postgresql postgresql jdbc driver42.2.0 ve sonrası · 42.2.27 öncesi
- postgresql postgresql jdbc driver42.3.0 ve sonrası · 42.3.8 öncesi
- postgresql postgresql jdbc driver42.4.0 ve sonrası · 42.4.3 öncesi
- postgresql postgresql jdbc driver42.5.0
Üreticinin bildirdiği sürümler
Kaydı açan otorite (GitHub_M) tarafından bildirilen etkilenen sürüm aralıkları. NVD'nin CPE analizinden bağımsızdır ve genellikle ondan önce gelir.
pgjdbc pgjdbc
- >= 42.2.0, < 42.2.27, > 42.3.0, < 42.3.8, >= 42.4.0, < 42.4.3, >= 42.5.0, < 42.5.1etkilenir
Paket düzeyi etkilenme
OSV ve GitHub Advisory verisi: ekosistem, paket ve aralık. SBOM eşleşmesi bu tabloyu kullanır.
| Ekosistem | Paket | Etkilenen aralık | Düzeltme |
|---|---|---|---|
| AlmaLinux:8 | postgresql-jdbc | 42.2.14-2.el8 öncesi | 42.2.14-2.el8 |
| AlmaLinux:8 | postgresql-jdbc-javadoc | 42.2.14-2.el8 öncesi | 42.2.14-2.el8 |
| AlmaLinux:9 | postgresql-jdbc | 42.2.27-1.el9 öncesi | 42.2.27-1.el9 |
| Debian:10 | libpgjava | 42.2.5-2+deb10u3 öncesi | 42.2.5-2+deb10u3 |
| Debian:11 | libpgjava | 42.2.15-1+deb11u2 öncesi | 42.2.15-1+deb11u2 |
| Debian:12 | libpgjava | 42.5.1-1 öncesi | 42.5.1-1 |
| Maven | org.postgresql:postgresql | 42.2.0 itibarıyla · 42.2.27 öncesi | 42.2.27 |
| Maven | org.postgresql:postgresql | 42.3.0 itibarıyla · 42.3.8 öncesi | 42.3.8 |
| Maven | org.postgresql:postgresql | 42.4.0 itibarıyla · 42.4.3 öncesi | 42.4.3 |
| Maven | org.postgresql:postgresql | 42.5.0 itibarıyla · 42.5.1 öncesi | 42.5.1 |
| Red Hat:enterprise_linux:8::appstream | postgresql-jdbc | 0:42.2.14-2.el8 öncesi | 0:42.2.14-2.el8 |
| Red Hat:enterprise_linux:8::appstream | postgresql-jdbc-javadoc | 0:42.2.14-2.el8 öncesi | 0:42.2.14-2.el8 |
| Red Hat:enterprise_linux:9::appstream | postgresql-jdbc | 0:42.2.27-1.el9 öncesi | 0:42.2.27-1.el9 |
| Red Hat:rhev_hypervisor:4.4::el8 | ovirt-ansible-collection | 0:2.4.2-1.el8ev öncesi | 0:2.4.2-1.el8ev |
| Red Hat:rhev_manager:4.4:el8 | ovirt-engine | 0:4.5.3.7-1.el8ev öncesi | 0:4.5.3.7-1.el8ev |
| Red Hat:rhev_manager:4.4:el8 | ovirt-engine-backend | 0:4.5.3.7-1.el8ev öncesi | 0:4.5.3.7-1.el8ev |
| Red Hat:rhev_manager:4.4:el8 | ovirt-engine-dbscripts | 0:4.5.3.7-1.el8ev öncesi | 0:4.5.3.7-1.el8ev |
| Red Hat:rhev_manager:4.4:el8 | ovirt-engine-health-check-bundler | 0:4.5.3.7-1.el8ev öncesi | 0:4.5.3.7-1.el8ev |
| Red Hat:rhev_manager:4.4:el8 | ovirt-engine-restapi | 0:4.5.3.7-1.el8ev öncesi | 0:4.5.3.7-1.el8ev |
| Red Hat:rhev_manager:4.4:el8 | ovirt-engine-setup | 0:4.5.3.7-1.el8ev öncesi | 0:4.5.3.7-1.el8ev |
| Red Hat:rhev_manager:4.4:el8 | ovirt-engine-setup-base | 0:4.5.3.7-1.el8ev öncesi | 0:4.5.3.7-1.el8ev |
| Red Hat:rhev_manager:4.4:el8 | ovirt-engine-setup-plugin-cinderlib | 0:4.5.3.7-1.el8ev öncesi | 0:4.5.3.7-1.el8ev |
| Red Hat:rhev_manager:4.4:el8 | ovirt-engine-setup-plugin-imageio | 0:4.5.3.7-1.el8ev öncesi | 0:4.5.3.7-1.el8ev |
| Red Hat:rhev_manager:4.4:el8 | ovirt-engine-setup-plugin-ovirt-engine | 0:4.5.3.7-1.el8ev öncesi | 0:4.5.3.7-1.el8ev |
+18
Aynı üründe
postgresql: tüm kayıtlarAynı birincil ürünün en yüksek skorlu diğer kayıtları.
- CVE-2024-1597pgjdbc SQL Injection via line comment generation40Planlayın
- CVE-2022-26520In pgjdbc before 42.3.3, an attacker (who controls the jdbc URL or properties) can call java.util.logging.FileHandler to write to arbitrary 40Planlayın
- CVE-2022-21724Unchecked Class Instantiation when providing Plugin Classes40Planlayın
- CVE-2022-31197SQL Injection in ResultSet.refreshRow() with malicious column names in pgjdbc33İzleyin
- CVE-2018-10936A weakness was found in postgresql-jdbc before version 42.2.5.33İzleyin
- CVE-2026-54291Silent channel-binding authentication downgrade via unsupported certificate algorithms32İzleyin
Düzeltme
Hangi sürüme geçmeli
Üretici, paket deposu ve Microsoft kayıtlarından derlenen düzeltme sürümleri. Yükseltmeden önce üreticinin notunu doğrulayın.
| Ürün / paket | Düzeltilmiş sürüm | Kaynak |
|---|---|---|
| pgjdbc pgjdbc | 4.5.0 · description | Üretici (CNA) |
| almalinux:postgresql-jdbc | 42.2.27-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:postgresql-jdbc-javadoc | 42.2.14-2.el8 · AlmaLinux:8 | Paket deposu (OSV) |
| debian:libpgjava | 42.5.1-1 · Debian:12 | Paket deposu (OSV) |
| Maven:org.postgresql:postgresql | 42.2.27 | Paket deposu (OSV) |
| Maven:org.postgresql:postgresql | 42.3.8 | Paket deposu (OSV) |
| Maven:org.postgresql:postgresql | 42.4.3 | Paket deposu (OSV) |
| Maven:org.postgresql:postgresql | 42.5.1 | Paket deposu (OSV) |
| opensuse:postgresql-jdbc | 42.2.25-150400.3.9.2 · openSUSE:Leap 15.4 | Paket deposu (OSV) |
| red hat:ovirt-ansible-collection | 0:2.4.2-1.el8ev · Red Hat:rhev_hypervisor:4.4::el8 | Paket deposu (OSV) |
| red hat:ovirt-engine | 0:4.5.3.7-1.el8ev · Red Hat:rhev_manager:4.4:el8 | Paket deposu (OSV) |
| red hat:ovirt-engine-backend | 0:4.5.3.7-1.el8ev · Red Hat:rhev_manager:4.4:el8 | Paket deposu (OSV) |
| red hat:ovirt-engine-dbscripts | 0:4.5.3.7-1.el8ev · Red Hat:rhev_manager:4.4:el8 | Paket deposu (OSV) |
| red hat:ovirt-engine-health-check-bundler | 0:4.5.3.7-1.el8ev · Red Hat:rhev_manager:4.4:el8 | Paket deposu (OSV) |
| red hat:ovirt-engine-restapi | 0:4.5.3.7-1.el8ev · Red Hat:rhev_manager:4.4:el8 | Paket deposu (OSV) |
| red hat:ovirt-engine-setup | 0:4.5.3.7-1.el8ev · Red Hat:rhev_manager:4.4:el8 | Paket deposu (OSV) |
| red hat:ovirt-engine-setup-base | 0:4.5.3.7-1.el8ev · Red Hat:rhev_manager:4.4:el8 | Paket deposu (OSV) |
| red hat:ovirt-engine-setup-plugin-cinderlib | 0:4.5.3.7-1.el8ev · Red Hat:rhev_manager:4.4:el8 | Paket deposu (OSV) |
| red hat:ovirt-engine-setup-plugin-imageio | 0:4.5.3.7-1.el8ev · Red Hat:rhev_manager:4.4:el8 | Paket deposu (OSV) |
| red hat:ovirt-engine-setup-plugin-ovirt-engine | 0:4.5.3.7-1.el8ev · Red Hat:rhev_manager:4.4:el8 | Paket deposu (OSV) |
| red hat:ovirt-engine-setup-plugin-ovirt-engine-common | 0:4.5.3.7-1.el8ev · Red Hat:rhev_manager:4.4:el8 | Paket deposu (OSV) |
| suse:postgresql-jdbc | 42.2.25-150400.3.9.2 · SUSE:Linux Enterprise Module for Server Applications 15 SP4 | Paket deposu (OSV) |
İstismar durumu
Bilinen kamuya açık istismar yok
Şu an kamuya açık bir istismar görülmedi. Bu, güvende olduğunuz anlamına gelmez; yalnızca eşiğin biraz daha yüksek olduğunu gösterir.
Araştırma bağlamı
Pentester ve araştırmacı için: saldırı profili, puan anlaşmazlığı, zaman çizelgesi, yama commit’leri, kredi, varyant ve zincir adayları, bug bounty kapsamı. Hepsi mevcut veriden türetilir; istismar kodu içermez.
Zaman çizelgesi
Yayından bugüne: kavram kanıtı, Metasploit modülü, CISA KEV ve düzeltme kaydı. Tarihler kaynakların bildirdiği tarihlerdir.
Yayın dışında tarihli olay yok.
FIRST EPSS günlük puanı; yalnızca 0,01 ve üstü değişimler kaydedilir (adım grafiği).
Yama ve commit bağlantıları
Referanslardaki commit, PR ve diff adresleri. Patch-diff ve varyant avı için başlangıç noktası; istismar değil, düzeltmedir.
Kredi
Tüm araştırmacılarCNA kaydında adı geçen bulan, bildiren ve analistler. Ada tıkla, aynı araştırmacının diğer kayıtlarını gör.
CNA kaydında kredi yok.
Varyant adayları
Aynı üründe aynı zafiyet sınıfı, 18 ay içinde. Yama kök nedeni kapatmadıysa kardeş hata burada olur.
Gece hesaplanan ilişki yok.
Zincir adayları
Aynı üründe kimlik doğrulama atlatma ile yetki isteyen bir açık kısa aralıkla yayımlanmış: birlikte kimlik doğrulamasız bir yola dönüşebilir.
—
Bug bounty kapsamı
Bilinen herkese açık program yok.
Kaynak: bounty-targets-data (HackerOne, Bugcrowd, Intigriti, YesWeHack herkese açık listeleri).
Teknik detay
Saldırı koşulları
- Sisteme yerel erişimi olan biri tetikleyebilir.
- Düşük yetkili bir hesap yeterli.
- Kullanıcının bir şey yapması gerekmez.
- Özel bir koşul gerekmez; tekrarlanabilir.
Başarılı olursa
- Gizlilik
- yüksek · veriler okunabilir
- Bütünlük
- yok
- Erişilebilirlik
- yok
- Saldırı vektörü
- Yerel
- Karmaşıklık
- Düşük
- Gereken yetki
- Düşük
- Kullanıcı etkileşimi
- Gerekmez
- Kapsam
- Değişmez
- Gizlilik etkisi
- Yüksek
- Bütünlük etkisi
- Yok
- Erişilebilirlik etkisi
- Yok
Zayıflık sınıfı (CWE)
CWE-200 · Exposure of Sensitive Information to an Unauthorized ActorCVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
nvd-primary
Kök neden
Eklenti işlevi için gerekenden geniş izin istiyor ve topladığı veriyi amacı dışında dışarı gönderiyor.
Hatanın kod karşılığı
CWE-200 sınıfının tamamıBu zafiyet sınıfının temsili örneği. Üreticinin kaynak kodu değildir; hatalı kalıbı ve düzeltmesini gösterir.
Hatalı
{ "permissions": ["tabs", "<all_urls>"], "background": { "service_worker": "analytics.js" }}Düzeltilmiş
{ "permissions": ["activeTab"], "host_permissions": ["https://yildiz.example/*"]}Saldırı bağlamı
Bu zafiyet sınıfının (CWE) MITRE CAPEC saldırı desenleri ve ATT&CK teknikleri. Tespit kuralı ve tehdit avı için başlangıç noktası.
Saldırı desenleri (CAPEC)
- ExcavationCAPEC-116olasılık: High · Medium
- Subverting Environment Variable ValuesCAPEC-13olasılık: High · Very High
- FootprintingCAPEC-169olasılık: High · Very Low
- Exploiting Trust in ClientCAPEC-22olasılık: High · High
- FingerprintingCAPEC-224olasılık: High · Very Low
- ICMP Echo Request PingCAPEC-285olasılık: Medium · Low
- TCP SYN ScanCAPEC-287Low
- Enumerate Mail Exchange (MX) RecordsCAPEC-290Low
ATT&CK teknikleri
- System Service DiscoveryT1007
- System Network Configuration DiscoveryT1016
- Remote System DiscoveryT1018
- System Owner/User DiscoveryT1033
- Masquerading: Match Legitimate Name or LocationT1036.005
- Network Service ScanningT1046
- System Network Connections DiscoveryT1049
- Process DiscoveryT1057
- Permission Groups DiscoveryT1069
- System Information DiscoveryT1082
- File and Directory DiscoveryT1083
- Account DiscoveryT1087
- Multi-Factor Authentication InterceptionT1111
- Peripheral Device DiscoveryT1120
- System Time DiscoveryT1124
- Access Token Manipulation:Token Impersonation/TheftT1134.001
Noroxi analizi
Bu kayıt için henüz Noroxi analizi yok
385 binden fazla zafiyetin tamamına elle analiz yazmıyoruz; bu dürüst olmazdı. Öne çıkan ve sahada etkisi olan zafiyetler için mekanizma, tespit ve kapatma adımlarını ekibimiz yazıyor.
Bu ürünü kullanıyoruz, yardım isteyinDeğişiklik günlüğü
- Düzeltme✗ → ✓
Takip ettiğiniz kayıtlarda bu değişiklikler bildirim olarak da gelir. →
Referanslar
- github.com/pgjdbc/pgjdbc/commit/9008dc9aade6dbfe4efafcd6872ebc55f4699cf5
- lists.debian.org/debian-lts-announce/2022/12/msg00003.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25TY2L3RMVNOC7VAHJEAO7PTT6M6JJAD/
- security.netapp.com/advisory/ntap-20240329-0003/
- lists.debian.org/debian-lts-announce/2024/12/msg00017.html
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.