CVEfocus › CVE database › CVE-2024-10977

CVE-2024-10977PostgreSQL libpq retains an error message from man-in-the-middle

CVSS 3.1 LowEPSS 0.4% (higher than 25% of CVEs)Published 2024-11-14Updated 2025-11-03Assigner: PostgreSQL

Client use of server error message in PostgreSQL allows a server not trusted under current SSL or GSS settings to furnish arbitrary non-NUL bytes to the libpq application. For example, a man-in-the-middle attacker could send a long error message that a human or screen-scraper user of psql mistakes for valid query results. This is probably not a concern for clients where the user interface unambiguously indicates the boundary between one error message and other text. Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.

CWE-348

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

28Fixed
36Fix pending
12Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10postgresql-17Not affected
vulnerable_code_not_present
Ubuntu 24.04postgresql-16Fixed16.6-0ubuntu0.24.04.1UBUNTU-CVE-2024-10977
Ubuntu 22.04postgresql-14Fixed14.15-0ubuntu0.22.04.1UBUNTU-CVE-2024-10977
Ubuntu 20.04postgresql-12Fixed12.22-0ubuntu0.20.04.1UBUNTU-CVE-2024-10977
Ubuntu 18.04postgresql-10Fix pendingUBUNTU-CVE-2024-10977
Ubuntu 16.04postgresql-9.5Fix pending9.5.25-0ubuntu0.16.04.1+esm10 (Ubuntu Pro)UBUNTU-CVE-2024-10977
Ubuntu 14.04postgresql-9.3Fix pendingUBUNTU-CVE-2024-10977
Debian 13postgresql-17Fixed17.1-1DEBIAN-CVE-2024-10977
Debian 12postgresql-15Fixed15.9-0+deb12u1DEBIAN-CVE-2024-10977
Red Hat Enterprise Linux 9postgresqlFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-contribFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-docsFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-plpython3Fix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-pltclFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-private-develFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-private-libsFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-serverFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-server-develFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-staticFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-testFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-test-rpm-macrosFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-upgrade-develFix pending
Fix deferred
Red Hat Enterprise Linux 8pg_repackFix pending
Fix deferred
Red Hat Enterprise Linux 8pgauditFix pending
Fix deferred
Red Hat Enterprise Linux 8postgres-decoderbufsFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresqlFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-contribFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-docsFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-plpython3Fix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-pltclFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-private-develFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-private-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-serverFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-server-develFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-staticFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-testFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-upgrade-develFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-testWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-upgradeWill not fix
Out of support scope
Alpine Linux 3.24postgresql16Fixed16.5-r0ALPINE-CVE-2024-10977
Alpine Linux 3.24postgresql17Fixed17.1-r0ALPINE-CVE-2024-10977
Alpine Linux 3.23postgresql16Fixed16.5-r0ALPINE-CVE-2024-10977
Alpine Linux 3.23postgresql17Fixed17.1-r0ALPINE-CVE-2024-10977
Alpine Linux 3.22postgresql15Fixed15.9-r0ALPINE-CVE-2024-10977
Alpine Linux 3.22postgresql16Fixed16.5-r0ALPINE-CVE-2024-10977
Alpine Linux 3.22postgresql17Fixed17.1-r0ALPINE-CVE-2024-10977
Alpine Linux 3.21postgresql15Fixed15.9-r0ALPINE-CVE-2024-10977
Alpine Linux 3.21postgresql16Fixed16.5-r0ALPINE-CVE-2024-10977
Alpine Linux 3.21postgresql17Fixed17.1-r0ALPINE-CVE-2024-10977
Alpine Linux 3.20postgresql14Fixed14.14-r0ALPINE-CVE-2024-10977
Alpine Linux 3.20postgresql15Fixed15.9-r0ALPINE-CVE-2024-10977
Alpine Linux 3.20postgresql16Fixed16.5-r0ALPINE-CVE-2024-10977
Alpine Linux 3.19postgresql13Fixed13.17-r0ALPINE-CVE-2024-10977
Alpine Linux 3.19postgresql14Fixed14.14-r0ALPINE-CVE-2024-10977
Alpine Linux 3.19postgresql15Fixed15.9-r0ALPINE-CVE-2024-10977
Alpine Linux 3.19postgresql16Fixed16.5-r0ALPINE-CVE-2024-10977
Alpine Linux 3.18postgresql13Fixed13.17-r0ALPINE-CVE-2024-10977
Alpine Linux 3.18postgresql14Fixed14.14-r0ALPINE-CVE-2024-10977
Alpine Linux 3.18postgresql15Fixed15.9-r0ALPINE-CVE-2024-10977
Alpine Linux 3.17postgresql13Fixed13.17-r0ALPINE-CVE-2024-10977
Alpine Linux 3.17postgresql14Fixed14.14-r0ALPINE-CVE-2024-10977
Alpine Linux 3.17postgresql15Fixed15.9-r0ALPINE-CVE-2024-10977

What the vendor says

As published in the CVE record by PostgreSQL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.