Bug 2345548 (CVE-2025-1094)

Summary: CVE-2025-1094 postgresql: PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: bojan, mhhall3
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in PostgreSQL. Due to improper neutralization of quoting syntax, affected versions potentially allow a database input provider to achieve SQL injection in certain usage patterns. Specifically, SQL injection requires the application to use the affected function's 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`.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2345571, 2345572, 2345573, 2345706, 2345568, 2345569, 2345570, 2345705    
Bug Blocks:    

Description OSIDB Bzimport 2025-02-13 14:01:01 UTC
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.

Comment 4 Bojan Smojver 2025-02-20 01:19:24 UTC
No patches yet? Not even Fedora rebuilds?

Comment 5 errata-xmlrpc 2025-02-20 14:47:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2025:1720 https://access.redhat.com/errata/RHSA-2025:1720

Comment 6 errata-xmlrpc 2025-02-20 14:53:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:1725 https://access.redhat.com/errata/RHSA-2025:1725

Comment 7 errata-xmlrpc 2025-02-20 14:58:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2025:1722 https://access.redhat.com/errata/RHSA-2025:1722

Comment 8 errata-xmlrpc 2025-02-20 15:00:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2025:1721 https://access.redhat.com/errata/RHSA-2025:1721

Comment 9 errata-xmlrpc 2025-02-20 15:02:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:1728 https://access.redhat.com/errata/RHSA-2025:1728

Comment 10 errata-xmlrpc 2025-02-20 15:04:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2025:1723 https://access.redhat.com/errata/RHSA-2025:1723

Comment 11 errata-xmlrpc 2025-02-20 15:05:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service

Via RHSA-2025:1724 https://access.redhat.com/errata/RHSA-2025:1724

Comment 12 errata-xmlrpc 2025-02-20 15:41:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2025:1733 https://access.redhat.com/errata/RHSA-2025:1733

Comment 13 errata-xmlrpc 2025-02-20 15:42:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2025:1729 https://access.redhat.com/errata/RHSA-2025:1729

Comment 14 errata-xmlrpc 2025-02-20 15:43:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:1732 https://access.redhat.com/errata/RHSA-2025:1732

Comment 15 errata-xmlrpc 2025-02-20 15:43:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:1726 https://access.redhat.com/errata/RHSA-2025:1726

Comment 16 errata-xmlrpc 2025-02-20 15:43:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2025:1727 https://access.redhat.com/errata/RHSA-2025:1727

Comment 17 errata-xmlrpc 2025-02-20 15:44:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:1730 https://access.redhat.com/errata/RHSA-2025:1730

Comment 18 errata-xmlrpc 2025-02-20 15:44:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:1731 https://access.redhat.com/errata/RHSA-2025:1731

Comment 19 errata-xmlrpc 2025-02-20 16:19:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions

Via RHSA-2025:1735 https://access.redhat.com/errata/RHSA-2025:1735

Comment 20 errata-xmlrpc 2025-02-20 16:26:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:1738 https://access.redhat.com/errata/RHSA-2025:1738

Comment 21 errata-xmlrpc 2025-02-20 16:56:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:1736 https://access.redhat.com/errata/RHSA-2025:1736

Comment 22 errata-xmlrpc 2025-02-20 16:57:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:1737 https://access.redhat.com/errata/RHSA-2025:1737

Comment 23 errata-xmlrpc 2025-02-20 16:59:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:1742 https://access.redhat.com/errata/RHSA-2025:1742

Comment 24 errata-xmlrpc 2025-02-20 17:03:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:1743 https://access.redhat.com/errata/RHSA-2025:1743

Comment 25 errata-xmlrpc 2025-02-20 17:07:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:1741 https://access.redhat.com/errata/RHSA-2025:1741

Comment 26 errata-xmlrpc 2025-02-20 17:08:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:1740 https://access.redhat.com/errata/RHSA-2025:1740

Comment 27 errata-xmlrpc 2025-02-20 17:22:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2025:1744 https://access.redhat.com/errata/RHSA-2025:1744

Comment 28 errata-xmlrpc 2025-02-20 17:25:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:1739 https://access.redhat.com/errata/RHSA-2025:1739

Comment 29 errata-xmlrpc 2025-02-20 17:45:47 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2025:1745 https://access.redhat.com/errata/RHSA-2025:1745

Comment 30 errata-xmlrpc 2025-03-20 04:33:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2025:3050 https://access.redhat.com/errata/RHSA-2025:3050

Comment 31 errata-xmlrpc 2025-03-20 07:24:53 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service

Via RHSA-2025:3062 https://access.redhat.com/errata/RHSA-2025:3062

Comment 32 errata-xmlrpc 2025-03-20 07:31:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2025:3063 https://access.redhat.com/errata/RHSA-2025:3063

Comment 33 errata-xmlrpc 2025-03-20 07:47:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2025:3064 https://access.redhat.com/errata/RHSA-2025:3064

Comment 34 errata-xmlrpc 2025-03-20 14:54:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:3082 https://access.redhat.com/errata/RHSA-2025:3082

Comment 37 errata-xmlrpc 2025-04-17 07:13:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2025:3978 https://access.redhat.com/errata/RHSA-2025:3978