Skip to content
OpenAdvisories
High ALAS2-2026-3344 2 CVEs

Important: postgresql security update (Amazon Linux 2)

Published Jun 8, 2026 · Updated Jun 8, 2026

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2026-6637: Stack buffer overflow in PostgreSQL module "refint" allows an unprivileged database user to execute arbitrary code as the operating system user running the database. A distinct attack is possible if the application declares a user-controlled column as a "refint" cascade primary key and facilitates user-controlled updates to that column. In that case, a SQL injection allows a primary key update value provider to execute arbitrary SQL as the database user performing the primary key update. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected. CVE-2026-6477: Use of inherently dangerous function PQfn(..., result_is_int=0, ...) in PostgreSQL libpq lo_export(), lo_read(), lo_lseek64(), and lo_tell64() functions allows the server superuser to overwrite a client stack buffer with an arbitrarily-large response. Like gets(), PQfn(..., result_is_int=0, ...) stores arbitrary-length, server-determined data into a buffer of unspecified size. Because both the \lo_export command in psql and pg_dump call lo_read(), the server superuser can overwrite pg_dump or psql stack memory. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

Fixed packages 13

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

Vulnerabilities 2

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-6477.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-6637.html