Skip to content
OpenAdvisories
High ALAS2-2025-2866 1 CVE

Important: postgresql security update (Amazon Linux 2)

Published May 21, 2025 · Updated May 29, 2025

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2025-1094: 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.

Fixed packages 13

ReleasePackageFixed in
Amazon Linux · 2 postgresql 0:9.2.24-8.amzn2.0.6
Amazon Linux · 2 postgresql-contrib 0:9.2.24-8.amzn2.0.6
Amazon Linux · 2 postgresql-debuginfo 0:9.2.24-8.amzn2.0.6
Amazon Linux · 2 postgresql-devel 0:9.2.24-8.amzn2.0.6
Amazon Linux · 2 postgresql-docs 0:9.2.24-8.amzn2.0.6
Amazon Linux · 2 postgresql-libs 0:9.2.24-8.amzn2.0.6
Amazon Linux · 2 postgresql-plperl 0:9.2.24-8.amzn2.0.6
Amazon Linux · 2 postgresql-plpython 0:9.2.24-8.amzn2.0.6
Amazon Linux · 2 postgresql-pltcl 0:9.2.24-8.amzn2.0.6
Amazon Linux · 2 postgresql-server 0:9.2.24-8.amzn2.0.6
Amazon Linux · 2 postgresql-static 0:9.2.24-8.amzn2.0.6
Amazon Linux · 2 postgresql-test 0:9.2.24-8.amzn2.0.6
Amazon Linux · 2 postgresql-upgrade 0:9.2.24-8.amzn2.0.6

Vulnerabilities 1

  • High 8.1
    CVE-2025-1094 Public exploit EPSS 90%

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

    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 …

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2025-1094.html