QID 356204

Date Published: 2023-09-28

QID 356204: Amazon Linux Security Advisory for postgresql : ALASPOSTGRESQL14-2023-003

In the extension script, a sql injection vulnerability was found in postgresql if it uses @extowner@, @extschema@, or @extschema:...@ inside a quoting construct (dollar quoting, ', or "").
If an administrator has installed files of a vulnerable, trusted, non-bundled extension, an attacker with database-level create privilege can execute arbitrary code as the bootstrap superuser. (
( CVE-2023-39417)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

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: ALASPOSTGRESQL14-2023-003 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 356204

    Software Advisories
    Advisory ID Software Component Link
    ALASPOSTGRESQL14-2023-003 amazon linux 2 URL Logo alas.aws.amazon.com/AL2/ALASPOSTGRESQL14-2023-003.html