Postgresql: extension script @substitutions@ within quoting allow sql injection
IN THE EXTENSION SCRIPT, a SQL Injection vulnerability was found in PostgreSQL if it uses @extowner@, @extschema@, or @extschema:...@ inside a quoting construct (dollar quoting, '', or ""). If an administrator has installed files of a vulnerable, trusted, non-bundled extension, an attacker with database-level CREATE privilege can execute arbitrary code as the bootstrap superuser.
- BDU:2023-04767
- ALSA-2023:7581
- ALSA-2023:7714
- ALSA-2023:7784
- ALSA-2023:7785
- ALSA-2023:7884
- DLA-3600-1
- DSA-5553-1
- DSA-5554-1
- openSUSE-SU-2024:13118-1
- openSUSE-SU-2024:13119-1
- openSUSE-SU-2024:13120-1
- openSUSE-SU-2024:13134-1
- openSUSE-SU-2024:13358-1
- RHSA-2023:7545
- RHSA-2023:7579
- RHSA-2023:7580
- RHSA-2023:7581
- RHSA-2023:7616
- RHSA-2023:7656
- Yayın
- 11 Ağu 2023
- Güncelleme
- 30 Eyl 2026
- EPSS
- %1,7 · 76. yüzdelik
- CWE
- CWE-89
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
36
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 35 / 40 · 8.8 / 10
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 1 / 30 · %1,7
CISA SSVC kararı
- Sömürü
- yok
- Otomatikleştirilebilir
- hayır
- Teknik etki
- tam
Vulnrichment: CISA'nın karar ağacı girdileri.
CNA ile NVD puanı
- NVD
- 8,8
- CNA · redhat
- 7,5
- 1,3 puan fark
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Kaydı açan otoritenin puanı ile NVD’nin bağımsız puanı. İki puan arasındaki fark ciddiyetin tartışmalı olduğunu gösterir.
Noroxi analizi
Bu kayıt için henüz Noroxi analizi yok
Veritabanındaki yüz binlerce 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 isteyinEtkilenen sistemler
| Üretici | Ürün | CPE |
|---|---|---|
| postgresql | postgresql | cpe:2.3:a:postgresql:postgresql |
| redhat | software collections | cpe:2.3:a:redhat:software_collections |
| redhat | enterprise linux | cpe:2.3:o:redhat:enterprise_linux |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
postgresql mu kullanıyorsun? Stack’ine ekle, bunun gibi CVE’lerde ilk sen haberdar ol. (PostgreSQL)
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 linux11.0
- debian debian linux12.0
- debian debian linux8.0
- postgresql postgresql14.0 ve sonrası · 14.9 öncesi
- postgresql postgresql15.0 ve sonrası · 15.4 öncesi
- postgresql postgresql11.0 ve sonrası · 11.21 öncesi
- postgresql postgresql12.0 ve sonrası · 12.16 öncesi
- postgresql postgresql13.0 ve sonrası · 13.12 öncesi
- redhat enterprise linux8.0
- redhat enterprise linux9.0
- redhat software collectionstüm sürümler
Üreticinin bildirdiği sürümler
Kaydı açan otorite (redhat) tarafından bildirilen etkilenen sürüm aralıkları. NVD'nin CPE analizinden bağımsızdır ve genellikle ondan önce gelir.
Red Hat Red Hat Advanced Cluster Security 4.2
- 4.2.4-6 ve sonrasıetkilenmez · rpm
- 4.2.4-6 ve sonrasıetkilenmez · rpm
- 4.2.4-7 ve sonrasıetkilenmez · rpm
- 4.2.4-6 ve sonrasıetkilenmez · rpm
- 4.2.4-7 ve sonrasıetkilenmez · rpm
Red Hat Red Hat Enterprise Linux 6
- tüm sürümlerbilinmiyor
Red Hat Red Hat Enterprise Linux 7
- tüm sürümlerbilinmiyor
Red Hat Red Hat Enterprise Linux 8
- 8090020231114113712.a75119d5 ve sonrasıetkilenmez · rpm
- 8090020231128173330.a75119d5 ve sonrasıetkilenmez · rpm
- 8090020231114113548.a75119d5 ve sonrasıetkilenmez · rpm
- tüm sürümlerbilinmiyor
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support
- 8020020231128165246.4cda2c84 ve sonrasıetkilenmez · rpm
Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service
- 8020020231128165246.4cda2c84 ve sonrasıetkilenmez · rpm
Red Hat Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
- 8020020231128165246.4cda2c84 ve sonrasıetkilenmez · rpm
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- 8040020231127153301.522a0ee4 ve sonrasıetkilenmez · rpm
- 8040020231127154806.522a0ee4 ve sonrasıetkilenmez · rpm
Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service
- 8040020231127153301.522a0ee4 ve sonrasıetkilenmez · rpm
- 8040020231127154806.522a0ee4 ve sonrasıetkilenmez · rpm
Red Hat Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
- 8040020231127153301.522a0ee4 ve sonrasıetkilenmez · rpm
- 8040020231127154806.522a0ee4 ve sonrasıetkilenmez · rpm
Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support
- 8060020231114115246.ad008a3a ve sonrasıetkilenmez · rpm
- 8060020231128165328.ad008a3a ve sonrasıetkilenmez · rpm
Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support
- 8080020231114105206.63b34585 ve sonrasıetkilenmez · rpm
- 8080020231128165335.63b34585 ve sonrasıetkilenmez · rpm
- 8080020231113134015.63b34585 ve sonrasıetkilenmez · rpm
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 | pg_repack | 1.4.6-3.module_el8.6.0+3095+ee60d910 öncesi | 1.4.6-3.module_el8.6.0+3095+ee60d910 |
| AlmaLinux:8 | pg_repack | 1.4.6-3.module_el8.6.0+2760+1746ec94 öncesi | 1.4.6-3.module_el8.6.0+2760+1746ec94 |
| AlmaLinux:8 | pg_repack | 1.4.6-3.module_el8.6.0+3094+eb237fb8 öncesi | 1.4.6-3.module_el8.6.0+3094+eb237fb8 |
| AlmaLinux:8 | pg_repack | 1.4.6-3.module_el8.6.0+2758+4f4474df öncesi | 1.4.6-3.module_el8.6.0+2758+4f4474df |
| AlmaLinux:8 | pg_repack | 1.4.8-1.module_el8.8.0+3487+43ec1b9f öncesi | 1.4.8-1.module_el8.8.0+3487+43ec1b9f |
| AlmaLinux:8 | pgaudit | 1.4.0-5.module_el8.6.0+2758+4f4474df öncesi | 1.4.0-5.module_el8.6.0+2758+4f4474df |
| AlmaLinux:8 | pgaudit | 1.5.0-1.module_el8.6.0+2760+1746ec94 öncesi | 1.5.0-1.module_el8.6.0+2760+1746ec94 |
| AlmaLinux:8 | pgaudit | 1.5.0-1.module_el8.6.0+3095+ee60d910 öncesi | 1.5.0-1.module_el8.6.0+3095+ee60d910 |
| AlmaLinux:8 | pgaudit | 1.4.0-5.module_el8.6.0+3094+eb237fb8 öncesi | 1.4.0-5.module_el8.6.0+3094+eb237fb8 |
| AlmaLinux:8 | pgaudit | 1.7.0-1.module_el8.8.0+3487+43ec1b9f öncesi | 1.7.0-1.module_el8.8.0+3487+43ec1b9f |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+3095+ee60d910 öncesi | 0.10.0-2.module_el8.6.0+3095+ee60d910 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2758+4f4474df öncesi | 0.10.0-2.module_el8.6.0+2758+4f4474df |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+3094+eb237fb8 öncesi | 0.10.0-2.module_el8.6.0+3094+eb237fb8 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2760+1746ec94 öncesi | 0.10.0-2.module_el8.6.0+2760+1746ec94 |
| AlmaLinux:8 | postgres-decoderbufs | 1.9.7-1.Final.module_el8.8.0+3487+43ec1b9f öncesi | 1.9.7-1.Final.module_el8.8.0+3487+43ec1b9f |
| AlmaLinux:8 | postgresql | 13.13-1.module_el8.9.0+3692+8714f643 öncesi | 13.13-1.module_el8.9.0+3692+8714f643 |
| AlmaLinux:8 | postgresql | 15.5-1.module_el8.9.0+3706+885c732e öncesi | 15.5-1.module_el8.9.0+3706+885c732e |
| AlmaLinux:8 | postgresql | 12.17-1.module_el8.9.0+3704+f1f917ce öncesi | 12.17-1.module_el8.9.0+3704+f1f917ce |
| AlmaLinux:8 | postgresql-contrib | 13.13-1.module_el8.9.0+3692+8714f643 öncesi | 13.13-1.module_el8.9.0+3692+8714f643 |
| AlmaLinux:8 | postgresql-contrib | 12.17-1.module_el8.9.0+3704+f1f917ce öncesi | 12.17-1.module_el8.9.0+3704+f1f917ce |
| AlmaLinux:8 | postgresql-contrib | 15.5-1.module_el8.9.0+3706+885c732e öncesi | 15.5-1.module_el8.9.0+3706+885c732e |
| AlmaLinux:8 | postgresql-docs | 12.17-1.module_el8.9.0+3704+f1f917ce öncesi | 12.17-1.module_el8.9.0+3704+f1f917ce |
| AlmaLinux:8 | postgresql-docs | 15.5-1.module_el8.9.0+3706+885c732e öncesi | 15.5-1.module_el8.9.0+3706+885c732e |
| AlmaLinux:8 | postgresql-docs | 13.13-1.module_el8.9.0+3692+8714f643 öncesi | 13.13-1.module_el8.9.0+3692+8714f643 |
+96
Aynı üründe
postgresql: tüm kayıtlarAynı birincil ürünün en yüksek skorlu diğer kayıtları.
- CVE-2017-7546PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allowing remote attackers57Planlayın
- CVE-2019-9193In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group to 55Planlayın
- CVE-2020-25695A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24.49Planlayın
- CVE-2007-3280The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE statements that map to arbitrary libraries based on the44Planlayın
- CVE-2013-1899Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows remote attackers to ca42Planlayın
- CVE-2018-16850postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ...41Planlayın
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 |
|---|---|---|
| almalinux:pg_repack | 1.4.6-3.module_el8.6.0+2760+1746ec94 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:pgaudit | 1.5.0-1.module_el8.6.0+2760+1746ec94 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2760+1746ec94 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:postgresql | 13.13-1.module_el8.9.0+3692+8714f643 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:postgresql-contrib | 13.13-1.module_el8.9.0+3692+8714f643 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:postgresql-docs | 13.13-1.module_el8.9.0+3692+8714f643 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:postgresql-plperl | 13.13-1.module_el8.9.0+3692+8714f643 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:postgresql-plpython3 | 13.13-1.module_el8.9.0+3692+8714f643 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:postgresql-pltcl | 13.13-1.module_el8.9.0+3692+8714f643 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:postgresql-server | 13.13-1.module_el8.9.0+3692+8714f643 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:postgresql-server-devel | 13.13-1.module_el8.9.0+3692+8714f643 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:postgresql-static | 13.13-1.module_el8.9.0+3692+8714f643 · AlmaLinux:8 | Paket deposu (OSV) |
| alpine:postgresql | 13.12-r0 · Alpine:v3.13 | Paket deposu (OSV) |
| alpine:postgresql13 | 13.12-r0 · Alpine:v3.15 | Paket deposu (OSV) |
| alpine:postgresql14 | 14.9-r0 · Alpine:v3.15 | Paket deposu (OSV) |
| alpine:postgresql15 | 15.4-r0 · Alpine:v3.17 | Paket deposu (OSV) |
| debian:pgextwlist | 1.15-2+deb12u1 · Debian:12 | Paket deposu (OSV) |
| debian:pgextwlist | 1.19-1+deb13u1 · Debian:13 | Paket deposu (OSV) |
| debian:postgresql-11 | 11.21-0+deb10u2 · Debian:10 | Paket deposu (OSV) |
| debian:postgresql-13 | 13.13-0+deb11u1 · Debian:11 | Paket deposu (OSV) |
| debian:postgresql-15 | 15.5-0+deb12u1 · Debian:12 | Paket deposu (OSV) |
| opensuse:postgresql11 | 11.21-1.1 · openSUSE:Tumbleweed | Paket deposu (OSV) |
| opensuse:postgresql12 | 12.16-150200.8.47.1 · openSUSE:Leap 15.4 | Paket deposu (OSV) |
| opensuse:postgresql13 | 13.12-150200.5.43.1 · openSUSE:Leap 15.4 | Paket deposu (OSV) |
| opensuse:postgresql14 | 14.9-150200.5.29.1 · openSUSE:Leap 15.4 | Paket deposu (OSV) |
| opensuse:postgresql15 | 15.4-150200.5.12.1 · openSUSE:Leap 15.4 | Paket deposu (OSV) |
| red hat:postgresql | 0:13.13-1.el9_0 · Red Hat:rhel_eus:9.0::appstream | Paket deposu (OSV) |
| red hat:postgresql-contrib | 0:13.13-1.el9_0 · Red Hat:rhel_eus:9.0::appstream | Paket deposu (OSV) |
| red hat:postgresql-contrib-debuginfo | 0:13.13-1.el9_0 · Red Hat:rhel_eus:9.0::appstream | Paket deposu (OSV) |
| red hat:postgresql-debuginfo | 0:13.13-1.el9_0 · Red Hat:rhel_eus:9.0::appstream | Paket deposu (OSV) |
+18
İ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.
Referanslarda commit ya da PR bağlantısı yok.
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ı
- İnternetten erişebilen herkes 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
- yüksek · veri ya da yapılandırma değiştirilebilir
- Erişilebilirlik
- yüksek · hizmet durdurulabilir
- Saldırı vektörü
- Ağ
- 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
- Yüksek
- Erişilebilirlik etkisi
- Yüksek
Zayıflık sınıfı (CWE)
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')CVSS vektörü
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Kök neden
Sorgu metni, kullanıcı girdisiyle birleştirilerek oluşturuluyor. Veritabanı, verinin nerede bitip komutun nerede başladığını ayırt edemez.
Hatanın kod karşılığı
CWE-89 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ı
const owner = req.query.owner;const rows = await db.query( "SELECT * FROM files WHERE owner = '" + owner + "'");Düzeltilmiş
const owner = req.query.owner;const rows = await db.query( "SELECT * FROM files WHERE owner = $1", [owner]);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)
- Command Line Execution through SQL InjectionCAPEC-108olasılık: Low · Very High
- Object Relational Mapping InjectionCAPEC-109olasılık: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110olasılık: High · Very High
- Expanding Control over the Operating System from the DatabaseCAPEC-470Very High
- SQL InjectionCAPEC-66olasılık: High · High
- Blind SQL InjectionCAPEC-7olasılık: High · High
ATT&CK teknikleri
—
Değişiklik günlüğü
- Düzeltme✗ → ✓
Takip ettiğiniz kayıtlarda bu değişiklikler bildirim olarak da gelir. →
Referanslar
- access.redhat.com/errata/RHSA-2023:7545
- access.redhat.com/errata/RHSA-2023:7579
- access.redhat.com/errata/RHSA-2023:7580
- access.redhat.com/errata/RHSA-2023:7581
- access.redhat.com/errata/RHSA-2023:7616
- access.redhat.com/errata/RHSA-2023:7656
- access.redhat.com/errata/RHSA-2023:7666
- access.redhat.com/errata/RHSA-2023:7667
- access.redhat.com/errata/RHSA-2023:7694
- access.redhat.com/errata/RHSA-2023:7695
- access.redhat.com/errata/RHSA-2023:7714
- access.redhat.com/errata/RHSA-2023:7770
- access.redhat.com/errata/RHSA-2023:7772
- access.redhat.com/errata/RHSA-2023:7784
- access.redhat.com/errata/RHSA-2023:7785
- access.redhat.com/errata/RHSA-2023:7883
- access.redhat.com/errata/RHSA-2023:7884
- access.redhat.com/errata/RHSA-2023:7885
- access.redhat.com/errata/RHSA-2024:0304
- access.redhat.com/errata/RHSA-2024:0332
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.