CWE
89
Advisory Published
Updated

REDHAT-BUG-2345548: SQL Injection

First published: Thu Feb 13 2025(Updated: )

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.

Affected SoftwareAffected VersionHow to fix
PostgreSQL Common<17.3<16.7<15.11<14.16<13.19

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-2345548?

    The severity of REDHAT-BUG-2345548 is high due to the potential for SQL injection vulnerabilities.

  • How do I fix REDHAT-BUG-2345548?

    To fix REDHAT-BUG-2345548, upgrade to the latest version of PostgreSQL that addresses the quoting syntax vulnerabilities.

  • Which versions of PostgreSQL are affected by REDHAT-BUG-2345548?

    PostgreSQL versions 13.19, 14.16, 15.11, 16.7, and 17.3 are affected by REDHAT-BUG-2345548.

  • What type of vulnerability is REDHAT-BUG-2345548?

    REDHAT-BUG-2345548 represents an SQL injection vulnerability caused by improper neutralization of quoting syntax in PostgreSQL libpq functions.

  • Can REDHAT-BUG-2345548 be exploited remotely?

    Yes, REDHAT-BUG-2345548 can potentially be exploited remotely if the vulnerable PostgreSQL functions are utilized in insecure application patterns.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203