CVE catalog

CVE-2026-14676

Heap buffer overflow in PostgreSQL pg_stat_statements allows the query author to execute arbitrary code as the operating system user running the database, via crafted queries containing array constant

[CVE catalog]

Severity
High · CVSS 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.44% · Oct 25, 2026

Heap buffer overflow in PostgreSQL pg_stat_statements allows the query author to execute arbitrary code as the operating system user running the database, via crafted queries containing array constants. Within major version 18, minor versions before PostgreSQL 18.6 are affected. Versions before PostgreSQL 18 are unaffected.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpostgresql-15bookworm15.18-0+deb12u1not affected
Debianpostgresql-15bookworm-security15.19-0+deb12u1not affected
CpepostgresqlNot reported18.5fixed
Ubuntupostgresql-16noble16.15-0ubuntu0.24.04.1fixed
Ubuntulibecpg-compat3noble16.15-0ubuntu0.24.04.1fixed
Ubuntulibecpg-devnoble16.15-0ubuntu0.24.04.1fixed
Ubuntulibecpg6noble16.15-0ubuntu0.24.04.1fixed
Ubuntulibpgtypes3noble16.15-0ubuntu0.24.04.1fixed
Ubuntulibpq-devnoble16.15-0ubuntu0.24.04.1fixed
Ubuntulibpq5noble16.15-0ubuntu0.24.04.1fixed
Ubuntupostgresql-client-16noble16.15-0ubuntu0.24.04.1fixed
Ubuntupostgresql-doc-16noble16.15-0ubuntu0.24.04.1fixed
Ubuntupostgresql-plperl-16noble16.15-0ubuntu0.24.04.1fixed
Ubuntupostgresql-plpython3-16noble16.15-0ubuntu0.24.04.1fixed
Ubuntupostgresql-pltcl-16noble16.15-0ubuntu0.24.04.1fixed
Ubuntupostgresql-server-dev-16noble16.15-0ubuntu0.24.04.1fixed
Alpinepostgresql163.2116.15-r0fixed
Alpinepostgresql163.2216.15-r0fixed
Alpinepostgresql173.2117.11-r0fixed
Alpinepostgresql173.2217.11-r0fixed
Alpinepostgresql173.2317.11-r0fixed
Alpinepostgresql173.2417.11-r0fixed
Alpinepostgresql183.2318.5-r0fixed
Alpinepostgresql183.2418.5-r0fixed
Ubuntupostgresql-9.3pro9.3.1-1vulnerable
Ubuntupostgresql-9.3pro9.3.2-1vulnerable
Ubuntupostgresql-9.3pro9.3.2-1ubuntu1vulnerable
Ubuntupostgresql-9.3pro9.3.2-1ubuntu2vulnerable
Ubuntupostgresql-9.3pro9.3.3-1vulnerable
Ubuntupostgresql-9.3pro9.3.3-1bzr1vulnerable
Ubuntupostgresql-9.3pro9.3.3-1bzr2vulnerable
Ubuntupostgresql-9.3pro9.3.4-1vulnerable
Ubuntupostgresql-9.3pro9.3.5-0ubuntu0.14.04.1vulnerable
Ubuntupostgresql-9.3pro9.3.6-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.7-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.8-0ubuntu0.4.04vulnerable
Ubuntupostgresql-9.3pro9.3.9-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.10-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.11-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.12-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.13-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.14-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.15-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.16-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.17-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.18-0ubuntu0.14.04.1vulnerable
Ubuntupostgresql-9.3pro9.3.19-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.20-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.21-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.22-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.23-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.24-0ubuntu0.14.04vulnerable
Ubuntupostgresql-9.3pro9.3.24-0ubuntu0.14.04+esm1vulnerable
Ubuntupostgresql-1826.0418.0-1vulnerable
Ubuntupostgresql-1826.0418.1-1vulnerable
Ubuntupostgresql-1826.0418.1-1ubuntu1vulnerable
Ubuntupostgresql-1826.0418.1-1ubuntu2vulnerable
Ubuntupostgresql-1826.0418.1-2vulnerable
Ubuntupostgresql-1826.0418.3-1vulnerable
Ubuntupostgresql-1826.0418.4-0ubuntu0.26.04.1vulnerable
Ubuntupostgresql-1826.0418.6-0ubuntu0.26.04.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpostgresql-15sourcebookwormNot affectedunimportantNot reportedNot reported
CpepostgresqlcpeNot reported18.5Not reportedNVD-CVE-2026-14676Not reported
Ubuntupostgresql-16debnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntulibecpg-compat3debnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntulibecpg-devdebnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntulibecpg6debnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntulibpgtypes3debnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntulibpq-devdebnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntulibpq5debnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntupostgresql-client-16debnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntupostgresql-doc-16debnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntupostgresql-plperl-16debnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntupostgresql-plpython3-16debnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntupostgresql-pltcl-16debnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntupostgresql-server-dev-16debnoble16.15-0ubuntu0.24.04.1Not reportedNot reportedNot reported
Alpinepostgresql16apk3.2116.15-r0Not reportedALPINE-CVE-2026-14676Not reported
Alpinepostgresql16apk3.2216.15-r0Not reportedALPINE-CVE-2026-14676Not reported
Alpinepostgresql17apk3.2117.11-r0Not reportedALPINE-CVE-2026-14676Not reported
Alpinepostgresql17apk3.2217.11-r0Not reportedALPINE-CVE-2026-14676Not reported
Alpinepostgresql17apk3.2317.11-r0Not reportedALPINE-CVE-2026-14676Not reported
Alpinepostgresql17apk3.2417.11-r0Not reportedALPINE-CVE-2026-14676Not reported
Alpinepostgresql18apk3.2318.5-r0Not reportedALPINE-CVE-2026-14676Not reported
Alpinepostgresql18apk3.2418.5-r0Not reportedALPINE-CVE-2026-14676Not reported
Ubuntupostgresql-18deb26.0418.6-0ubuntu0.26.04.1Not reportedUBUNTU-CVE-2026-14676Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libecpg6]Not affected

    Source package: [postgresql-15]

    Details (4)
    • 15.18-0+deb12u1 · amd64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · arm64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

  • [libecpg-compat3]Not affected

    Source package: [postgresql-15]

    Details (4)
    • 15.18-0+deb12u1 · amd64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · arm64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

  • [libecpg-dev]Not affected

    Source package: [postgresql-15]

    Details (4)
    • 15.18-0+deb12u1 · amd64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · arm64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

  • [libpgtypes3]Not affected

    Source package: [postgresql-15]

    Details (4)
    • 15.18-0+deb12u1 · amd64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · arm64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

  • [libpq5]Not affected

    Source package: [postgresql-15]

    Details (4)
    • 15.18-0+deb12u1 · amd64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · arm64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

  • [libpq-dev]Not affected

    Source package: [postgresql-15]

    Details (4)
    • 15.18-0+deb12u1 · amd64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · arm64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

  • [postgresql-15]Not affected
    Details (4)
    • 15.18-0+deb12u1 · amd64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · arm64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

  • [postgresql-client-15]Not affected

    Source package: [postgresql-15]

    Details (4)
    • 15.18-0+deb12u1 · amd64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · arm64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

  • [postgresql-doc-15]Not affected

    Source package: [postgresql-15]

    Details (4)
    • 15.18-0+deb12u1 · all · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · all · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · all · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · all · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

  • [postgresql-plperl-15]Not affected

    Source package: [postgresql-15]

    Details (4)
    • 15.18-0+deb12u1 · amd64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · arm64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

  • Source package: [postgresql-15]

    Details (4)
    • 15.18-0+deb12u1 · amd64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · arm64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

  • [postgresql-pltcl-15]Not affected

    Source package: [postgresql-15]

    Details (4)
    • 15.18-0+deb12u1 · amd64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · arm64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

  • Source package: [postgresql-15]

    Details (4)
    • 15.18-0+deb12u1 · amd64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.18-0+deb12u1 · arm64 · bookworm

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

    • 15.19-0+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · postgresql-15 · debian · bookworm

Observed:

References