QID 357052

Date Published: 2024-02-05

QID 357052: Amazon Linux Security Advisory for postgresql : ALAS2POSTGRESQL12-2024-007

Certain aggregate function calls receiving "unknown"-type arguments could disclose bytes of server memory from the end of the "unknown"-type value to the next zero byte.
One typically gets an "unknown"-type value via a string literal having no type designation.
We have not confirmed or ruled out viability of attacks that arrange for presence of notable, confidential information in disclosed bytes. (
( CVE-2023-5868) while modifying certain sql array values, missing overflow checks let authenticated database users write arbitrary bytes to a memory area that facilitates arbitrary code execution.
Missing overflow checks also let authenticated database users read a wide area of server memory.
The( CVE-2021-32027 fix covered some attacks of this description, but it missed others. (
( CVE-2023-5869) the documentation says the pg_cancel_backend role cannot signal "a backend owned by a superuser".
On the contrary, it can signal background workers, including the logical replication launcher.
It can signal autovacuum workers and the autovacuum launcher.
Signaling autovacuum workers and those two launchers provides no meaningful exploit, so exploiting this vulnerability requires a non-core extension with a less-resilient background worker.
For example, a non-core background worker that does not auto-restart would experience a denial of service with respect to that particular background worker. (
( CVE-2023-5870)


Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Critical - 8.8 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2POSTGRESQL12-2024-007 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 357052

    Software Advisories
    Advisory ID Software Component Link
    ALAS2POSTGRESQL12-2024-007 amazon linux 2 URL Logo alas.aws.amazon.com/AL2/ALASPOSTGRESQL12-2024-007.html