Skip to content
Fencer Vulns
high 8.1

CVE-2025-1094 in the critical feed json

PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation

published 2025-02-13 20 mo ago modified 2026-11-03 5 d ago also BIT-postgresql-2025-1094 , EUVD-2025-1999

cvss
8.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
90.0%
EPSS 90.0% chance of exploitation in 30 days, percentile 99.7%
public exploits
1
Metasploit

Summary

Improper neutralization of quoting syntax in PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() allows a database input provider to achieve SQL injection in certain usage patterns. Specifically, SQL injection requires the application to use the function result to construct input to psql, the PostgreSQL interactive terminal. Similarly, improper neutralization of quoting syntax in PostgreSQL command line utility programs allows a source of command line arguments to achieve SQL injection when client_encoding is BIG5 and server_encoding is one of EUC_TW or MULE_INTERNAL. Versions before PostgreSQL 17.3, 16.7, 15.11, 14.16, and 13.19 are affected.

Patch / fix

  • bitnami postgresql 13.19.0, 14.16.0, 15.11.0, 16.7.0, 17.3.0
  • n/a PostgreSQL 13.19, 14.16, 15.11, 16.7, 17.3
  • postgresql-15 Debian 12 15.11-0+deb12u1
  • postgresql-17 Debian 13 17.3-1

debian advisories DEBIAN-CVE-2025-1094

  • postgresql-12 Ubuntu 20.04 LTS 12.22-0ubuntu0.20.04.2
  • postgresql-14 Ubuntu 22.04 LTS 14.17-0ubuntu0.22.04.1
  • postgresql-16 Ubuntu 24.04 LTS 16.8-0ubuntu0.24.04.1
  • postgresql-10 Ubuntu Pro 18.04 LTS 10.23-0ubuntu0.18.04.2+esm3

ubuntu advisories UBUNTU-CVE-2025-1094

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • pgaudit RHEL 8 1.4.0-7.module+el8.10.0+22214+9beb89d6
  • pg_repack RHEL 8 1.4.6-3.module+el8.9.0+19330+c97ddbdf
  • postgresql RHEL 8 12.22-3.module+el8.10.0+22943+b3f02cd1
  • postgresql-test RHEL 8 12.22-3.module+el8.10.0+22943+b3f02cd1
  • postgresql-pltcl RHEL 8 12.22-3.module+el8.10.0+22943+b3f02cd1
  • postgresql-plperl RHEL 8 12.22-3.module+el8.10.0+22943+b3f02cd1
  • postgresql-server RHEL 8 12.22-3.module+el8.10.0+22943+b3f02cd1
  • postgresql-contrib RHEL 8 12.22-3.module+el8.10.0+22943+b3f02cd1

red hat advisories RHSA-2025:3978RHSA-2025:3082RHSA-2025:3062RHSA-2025:3063RHSA-2025:3064RHSA-2025:3050

  • postgresql15 SLE Module for Legacy 15 SP7, SLE Module for Legacy 15 SP6, openSUSE Leap 15.6 15.12-150600.16.14.1
  • postgresql13 openSUSE Leap 15.6 13.20-150600.14.5.2
  • postgresql16 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +11 more 16.8-150200.5.26.1
  • postgresql16 SLE Module for Server Applications 15 SP6, SLE Module for Package Hub 15 SP6, SLE Module for Basesystem 15 SP6 +1 more 16.8-150600.16.15.1
  • postgresql15 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +11 more 15.12-150200.5.38.1
  • postgresql14 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +9 more 14.17-150200.5.55.1
  • postgresql14 SLE Module for Package Hub 15 SP6, SLE Module for Legacy 15 SP6, openSUSE Leap 15.6 14.17-150600.16.14.1
  • postgresql13 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +5 more 13.20-150200.5.69.1

suse advisories SUSE-SU-2025:00614-1SUSE-SU-2025:0737-1SUSE-SU-2025:0655-1SUSE-SU-2025:0637-1SUSE-SU-2025:0636-1SUSE-SU-2025:0635-1

  • postgresql17 openSUSE Tumbleweed 17.3-1.1
  • postgresql13 openSUSE Tumbleweed 13.19-1.1
  • postgresql14 openSUSE Tumbleweed 14.16-1.1
  • postgresql15 openSUSE Tumbleweed 15.11-1.1
  • postgresql16 openSUSE Tumbleweed 16.7-1.1

opensuse advisories openSUSE-SU-2025:14810-1openSUSE-SU-2025:14805-1openSUSE-SU-2025:14806-1openSUSE-SU-2025:14807-1openSUSE-SU-2025:14808-1

  • pgaudit AlmaLinux 8 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1
  • pgaudit AlmaLinux 8 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1
  • pg_repack AlmaLinux 8 1.4.6-3.module_el8.9.0+3704+f1f917ce
  • postgresql AlmaLinux 8 12.22-3.module_el8.10.0+3971+15b81305
  • postgresql-test AlmaLinux 8 12.22-3.module_el8.10.0+3971+15b81305
  • postgresql-pltcl AlmaLinux 8 12.22-3.module_el8.10.0+3971+15b81305
  • postgresql-plperl AlmaLinux 8 12.22-3.module_el8.10.0+3971+15b81305
  • postgresql-server AlmaLinux 8 12.22-3.module_el8.10.0+3971+15b81305

almalinux advisories ALSA-2025:3082ALSA-2025:1736ALSA-2025:1737ALSA-2025:1738ALSA-2025:1739ALSA-2025:1740

  • pgaudit Rocky Linux 8 1.4.0-7.module+el8.9.0+1735+a332307b
  • pg_repack Rocky Linux 8 1.4.6-3.module+el8.10.0+1862+29bef648
  • pg_repack Rocky Linux 8 1.4.6-3.module+el8.9.0+1594+4a6adae9
  • pg_repack Rocky Linux 8 1.4.6-3.module+el8.9.0+1603+444d1b54
  • postgresql Rocky Linux 8 12.22-3.module+el8.10.0+1942+05740481
  • postgres-decoderbufs Rocky Linux 8 0.10.0-2.module+el8.10.0+1862+29bef648
  • postgres-decoderbufs Rocky Linux 8 0.10.0-2.module+el8.9.0+1594+4a6adae9
  • postgres-decoderbufs Rocky Linux 8 0.10.0-2.module+el8.9.0+1603+444d1b54

rocky linux advisories RLSA-2025:3082RLSA-2025:1739RLSA-2025:1740RLSA-2025:1738RLSA-2025:1742RLSA-2025:1741

  • postgresql13 Alpine 3.19, Alpine 3.18 13.20-r0
  • postgresql14 Alpine 3.20, Alpine 3.19, Alpine 3.18 14.17-r0
  • postgresql15 Alpine 3.22, Alpine 3.21, Alpine 3.20 +2 more 15.11-r0
  • postgresql16 Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 16.8-r0
  • postgresql17 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 17.4-r0

alpine advisories ALPINE-CVE-2025-1094

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • postgresql Azure Linux 3.0 16.7-1
  • postgresql CBL-Mariner 2.0 14.16-1

azure linux advisories AZL-56732AZL-56791

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-1094 updated cvss 8.1

postgresql: PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation

  • Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 more
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat CodeReady Linux Builder (v. 9) postgresql-test 13.20-1.el9_5, postgresql-test-rpm-macros 13.20-1.el9_5
    fixed: vendor fix RHSA-2025:1742
  • Red Hat CodeReady Linux Builder EUS (v.9.2) postgresql-test 13.20-1.el9_2
    fixed: vendor fix RHSA-2025:1727
  • Red Hat CodeReady Linux Builder EUS (v.9.4) postgresql-test 13.20-1.el9_4
    fixed: vendor fix RHSA-2025:1726
  • Red Hat Enterprise Linux AppStream (v. 8) libpq 13.20-1.el8_10, pgaudit 1.5.0-1.module+el8.9.0+20664+9c30cf7f, pgaudit 1.7.0-1.module+el8.9.0+19797+c4ce5969, pgaudit 16.0-1.module+el8.10.0+20413+d8116364, pgaudit 1.4.0-7.module+el8.10.0+22214+9beb89d6, pg_repack 1.4.6-3.module+el8.9.0+19330+c97ddbdf, +45 more
    fixed: vendor fix RHSA-2025:1737
  • Red Hat Enterprise Linux AppStream (v. 9) libpq 13.20-1.el9_5, postgresql 13.20-1.el9_5, postgresql-pltcl 13.20-1.el9_5, postgresql-plperl 13.20-1.el9_5, postgresql-server 13.20-1.el9_5, postgresql-contrib 13.20-1.el9_5, +30 more
    fixed: vendor fix RHSA-2025:1738
  • Red Hat Enterprise Linux AppStream AUS (v. 8.2) libpq 12.7-1.el8_2.2, pgaudit 1.4.0-4.module+el8.2.0+9043+1dbb5661, postgresql 12.22-1.module+el8.2.0+22934+603b1645.1, postgresql-test 12.22-1.module+el8.2.0+22934+603b1645.1, postgresql-pltcl 12.22-1.module+el8.2.0+22934+603b1645.1, postgresql-plperl 12.22-1.module+el8.2.0+22934+603b1645.1, +6 more
    fixed: vendor fix RHSA-2025:1720
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) libpq 13.20-1.el8_4, pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 13.20-1.module+el8.4.0+22875+28eac7c6, postgresql 12.22-1.module+el8.4.0+22939+ae879ac2.1, postgresql-test 13.20-1.module+el8.4.0+22875+28eac7c6, +17 more
    fixed: vendor fix RHSA-2025:1735
show 11 more
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) libpq 13.20-1.el8_6, pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+22933+051d2e53.1, +19 more
    fixed: vendor fix RHSA-2025:1745
  • Red Hat Enterprise Linux AppStream E4S (v.8.4) libpq 13.20-1.el8_4, pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 13.20-1.module+el8.4.0+22875+28eac7c6, postgresql 12.22-1.module+el8.4.0+22939+ae879ac2.1, postgresql-test 13.20-1.module+el8.4.0+22875+28eac7c6, +17 more
    fixed: vendor fix RHSA-2025:1735
  • Red Hat Enterprise Linux AppStream E4S (v.8.6) libpq 13.20-1.el8_6, pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+22933+051d2e53.1, +19 more
    fixed: vendor fix RHSA-2025:1745
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) libpq 13.20-1.el9_0, postgresql 13.20-1.el9_0, postgresql-pltcl 13.20-1.el9_0, postgresql-plperl 13.20-1.el9_0, postgresql-server 13.20-1.el9_0, postgresql-contrib 13.20-1.el9_0, +3 more
    fixed: vendor fix RHSA-2025:1725
  • Red Hat Enterprise Linux AppStream EUS (v.8.8) libpq 13.20-1.el8_8, pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, +32 more
    fixed: vendor fix RHSA-2025:1744
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) libpq 13.20-1.el9_2, postgresql 13.20-1.el9_2, postgresql-pltcl 13.20-1.el9_2, postgresql-plperl 13.20-1.el9_2, postgresql-server 13.20-1.el9_2, postgresql-contrib 13.20-1.el9_2, +16 more
    fixed: vendor fix RHSA-2025:1733
  • Red Hat Enterprise Linux AppStream EUS (v.9.4) libpq 13.20-1.el9_4, postgresql 13.20-1.el9_4, postgresql-pltcl 13.20-1.el9_4, postgresql-plperl 13.20-1.el9_4, postgresql-server 13.20-1.el9_4, postgresql-contrib 13.20-1.el9_4, +29 more
    fixed: vendor fix RHSA-2025:1732
  • Red Hat Enterprise Linux AppStream TUS (v.8.4) libpq 13.20-1.el8_4, pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 13.20-1.module+el8.4.0+22875+28eac7c6, postgresql 12.22-1.module+el8.4.0+22939+ae879ac2.1, postgresql-test 13.20-1.module+el8.4.0+22875+28eac7c6, +17 more
    fixed: vendor fix RHSA-2025:1735
  • Red Hat Enterprise Linux AppStream TUS (v.8.6) libpq 13.20-1.el8_6, pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+22933+051d2e53.1, +19 more
    fixed: vendor fix RHSA-2025:1745
  • Red Hat Enterprise Linux Server (v. 7 ELS) postgresql 9.2.24-9.el7_9.3, postgresql-libs 9.2.24-9.el7_9.3, postgresql-test 9.2.24-9.el7_9.3, postgresql-pltcl 9.2.24-9.el7_9.3, postgresql-plperl 9.2.24-9.el7_9.3, postgresql-server 9.2.24-9.el7_9.3, +2 more Red Hat Enterprise Linux Server Optional (v. 7 ELS) postgresql-upgrade 9.2.24-9.el7_9.3
    fixed: vendor fix RHSA-2025:3978
  • Red Hat Enterprise Linux 10 libpq, postgresql16
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. First public exploit (Metasploit exploit/linux/http/beyondtrust_pra_rs_unauth_rce)
  2. Published

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
12 mo ago

Exploit prediction

90.03% chance of exploitation in the next 30 days, higher than 99.7% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

CVSS scores

assigned by version score vector
CNA 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
bitnami postgresql
<13.19.0
>=14.0.0, <14.16.0
>=15.0.0, <15.11.0
>=16.0.0, <16.7.0
>=17.0.0, <17.3.0
13.19.0
14.16.0
15.11.0
16.7.0
17.3.0

Affected products

  • n/a PostgreSQL

Classification

Weakness
  • CWE-149 Improper Neutralization of Quoting Syntax
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.