Amazon Linux 2023 Security Advisory: ALAS2023-2025-1165
Advisory Released Date: 2025-09-08
Advisory Updated Date: 2025-09-08
PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access. Separately, statistics allow a user to read sampled data that a row security policy intended to hide. PostgreSQL maintains statistics for tables by sampling data available in columns; this data is consulted during the query planning process. Prior to this release, a user could craft a leaky operator that bypassed view access control lists (ACLs) and bypassed row security policies in partitioning or table inheritance hierarchies. Reachable statistics data notably included histograms and most-common-values lists. CVE-2017-7484 and CVE-2019-10130 intended to close this class of vulnerability, but this gap remained. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected. (CVE-2025-8713)
Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql meta-commands. pg_dumpall is also affected. pg_restore is affected when used to generate a plain-format dump. This is similar to MySQL CVE-2024-21096. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected. (CVE-2025-8714)
Improper neutralization of newlines in pg_dump in PostgreSQL allows a user of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql meta-commands inside a purpose-crafted object name. The same attacks can achieve SQL injection as a superuser of the restore target server. pg_dumpall, pg_restore, and pg_upgrade are also affected. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected. Versions before 11.20 are unaffected. CVE-2012-0868 had fixed this class of problem, but version 11.20 reintroduced it. (CVE-2025-8715)
Affected Packages:
postgresql15
Issue Correction:
Run dnf update postgresql15 --releasever 2023.8.20250908 or dnf update --advisory ALAS2023-2025-1165 --releasever 2023.8.20250908 to update your system.
More information on how to update your system can be found on this page: Amazon Linux 2023 documentation
aarch64:
postgresql15-plpython3-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-private-libs-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-plperl-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-plperl-15.14-1.amzn2023.0.1.aarch64
postgresql15-server-devel-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-upgrade-devel-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-private-devel-15.14-1.amzn2023.0.1.aarch64
postgresql15-server-15.14-1.amzn2023.0.1.aarch64
postgresql15-static-15.14-1.amzn2023.0.1.aarch64
postgresql15-upgrade-devel-15.14-1.amzn2023.0.1.aarch64
postgresql15-contrib-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-docs-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-llvmjit-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-test-15.14-1.amzn2023.0.1.aarch64
postgresql15-contrib-15.14-1.amzn2023.0.1.aarch64
postgresql15-upgrade-15.14-1.amzn2023.0.1.aarch64
postgresql15-upgrade-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-15.14-1.amzn2023.0.1.aarch64
postgresql15-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-test-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-llvmjit-15.14-1.amzn2023.0.1.aarch64
postgresql15-plpython3-15.14-1.amzn2023.0.1.aarch64
postgresql15-pltcl-15.14-1.amzn2023.0.1.aarch64
postgresql15-private-libs-15.14-1.amzn2023.0.1.aarch64
postgresql15-server-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-pltcl-debuginfo-15.14-1.amzn2023.0.1.aarch64
postgresql15-docs-15.14-1.amzn2023.0.1.aarch64
postgresql15-server-devel-15.14-1.amzn2023.0.1.aarch64
postgresql15-debugsource-15.14-1.amzn2023.0.1.aarch64
noarch:
postgresql15-test-rpm-macros-15.14-1.amzn2023.0.1.noarch
src:
postgresql15-15.14-1.amzn2023.0.1.src
x86_64:
postgresql15-plperl-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-server-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-private-libs-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-plpython3-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-plpython3-15.14-1.amzn2023.0.1.x86_64
postgresql15-private-devel-15.14-1.amzn2023.0.1.x86_64
postgresql15-pltcl-15.14-1.amzn2023.0.1.x86_64
postgresql15-static-15.14-1.amzn2023.0.1.x86_64
postgresql15-docs-15.14-1.amzn2023.0.1.x86_64
postgresql15-docs-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-llvmjit-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-server-15.14-1.amzn2023.0.1.x86_64
postgresql15-plperl-15.14-1.amzn2023.0.1.x86_64
postgresql15-test-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-server-devel-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-upgrade-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-pltcl-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-contrib-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-upgrade-devel-debuginfo-15.14-1.amzn2023.0.1.x86_64
postgresql15-private-libs-15.14-1.amzn2023.0.1.x86_64
postgresql15-test-15.14-1.amzn2023.0.1.x86_64
postgresql15-15.14-1.amzn2023.0.1.x86_64
postgresql15-upgrade-15.14-1.amzn2023.0.1.x86_64
postgresql15-upgrade-devel-15.14-1.amzn2023.0.1.x86_64
postgresql15-contrib-15.14-1.amzn2023.0.1.x86_64
postgresql15-debugsource-15.14-1.amzn2023.0.1.x86_64
postgresql15-server-devel-15.14-1.amzn2023.0.1.x86_64
postgresql15-llvmjit-15.14-1.amzn2023.0.1.x86_64